#include <Incarnation.h>
Public Member Functions | |
Incarnation () | |
Default constructor. | |
Incarnation (int incarnation) | |
Alternative constructor. | |
Incarnation & | operator= (const Incarnation &rhs) |
Asignment operator. | |
Incarnation & | operator= (int incarnation) |
Asignment operator. | |
bool | operator== (const Incarnation &rhs) |
Comparison operator. | |
bool | operator!= (const Incarnation &rhs) |
Comparison operator. | |
Incarnation & | operator++ () |
Preincrement operator. | |
const Incarnation | operator++ (int) |
Postincrement operator. |
The main feature is that the embedded counter will always be initialized to a defined value. This class also provides convenient assignment, comparison and incrementation of the embedded counter.
|
Default constructor. The embedded counter will be initialized to -1. |
|
Alternative constructor. The embedded counter will be initialized to incarnation. |
|
Asignment operator. Overrides this object's data with that of the Incarnation object referenced by rhs. |
|
Asignment operator. Overrides the value of the embedded counter with incarnation. |
|
Comparison operator.
|
|
Comparison operator.
|
|
Preincrement operator. Increments the embedded counter by one.
|
|
Postincrement operator. Increments the embedded counter by one.
|