33 #ifndef __H__UG__LIB_DISC__COMMON__REVISION_COUNTER__
34 #define __H__UG__LIB_DISC__COMMON__REVISION_COUNTER__
71 UG_THROW(
"AdaptState: increasing invalid state not admissible.")
76 UG_THROW(
"AdaptState: counter overflow. Alter implementation.")
96 return !((*this) == rhs);
Class used to identify a state of adaption of a grid, approx-space, ...
Definition: revision_counter.h:56
bool invalid() const
returns if state is invalid
Definition: revision_counter.h:117
RevisionCounter & operator++()
increase state (prefix)
Definition: revision_counter.h:69
RevisionCounter(const T *pObj)
constructor (with valid state initialization)
Definition: revision_counter.h:66
bool operator>(const RevisionCounter &rhs) const
compare two states
Definition: revision_counter.h:107
RevisionCounter operator++(int)
increase state (postfix)
Definition: revision_counter.h:81
RevisionCounter()
constructor (with invalid state initialization)
Definition: revision_counter.h:59
const void * m_pObj
associated object
Definition: revision_counter.h:126
bool operator!=(const RevisionCounter &rhs) const
compare two states
Definition: revision_counter.h:95
const void * obj() const
returns the associated object
Definition: revision_counter.h:123
uint64 m_cnt
state counter (0 = invalid)
Definition: revision_counter.h:127
RevisionCounter(const void *pObj)
constructor (with valid state initialization)
Definition: revision_counter.h:62
bool operator<(const RevisionCounter &rhs) const
compare two states
Definition: revision_counter.h:100
void invalidate()
invalidates state
Definition: revision_counter.h:120
bool valid() const
returns if state is valid
Definition: revision_counter.h:114
bool operator==(const RevisionCounter &rhs) const
compare two states
Definition: revision_counter.h:88
#define UG_THROW(msg)
Definition: error.h:57
ugtypes::uint64_t uint64
Definition: types.h:117