Itasca C++ Interface
Loading...
Searching...
No Matches
propertyblock.h
Go to the documentation of this file.
1#pragma once
2
11#include "base/src/base.h"
12
13namespace models {
15
19 public:
21 PropertyBlock() : referenceCount_(0) { }
22
24 void incrementReference() const { ++referenceCount_; }
26 uint64 decrementReference() const { assert(referenceCount_); --referenceCount_; return referenceCount_; }
27
28 private:
29 mutable uint64 referenceCount_;
30 };
31} // namespace models
32
34// EoF
One stop include for all objects defined as part of base interface.
The class provides reference count for model properties.
Definition propertyblock.h:18
PropertyBlock()
Constructor, initialize reference count to zero.
Definition propertyblock.h:21
void incrementReference() const
Increment reference count.
Definition propertyblock.h:24
uint64 decrementReference() const
Decrement reference count.
Definition propertyblock.h:26
The Constitutive Model interface library.
Definition conmodel.cpp:7