DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <IdGenerators.hh>
Public Types | |
using | IdGen = IdGenerator< IncrementableType > |
Public Member Functions | |
IncrementGenerator ()=default | |
IncrementGenerator (IncrementGenerator const &other)=default | |
IncrementGenerator & | operator= (IncrementGenerator const &other)=default |
IncrementGenerator (IncrementGenerator &&other)=default | |
IncrementGenerator & | operator= (IncrementGenerator &&other)=default |
virtual | ~IncrementGenerator ()=default |
IncrementGenerator (IncrementableType initialValue) | |
virtual void | init () |
virtual IncrementableType | another () |
Private Attributes | |
IncrementableType | _initial |
IncrementableType | _current |
Generator identifiers by simply incrementing the last generated one (IncrementableType requires the postfix ++ operator)
Definition at line 140 of file IdGenerators.hh.
using Diades::Utils::IncrementGenerator< IncrementableType >::IdGen = IdGenerator<IncrementableType> |
Definition at line 145 of file IdGenerators.hh.
|
default |
Default constructor
|
default |
Copy constructor (default)
other |
|
default |
Move constructor (default)
other |
|
virtualdefault |
Destructor
|
inline |
Parametrised constructor
initialValue | the initial value By using init() the first generated identifier will be 'initialValue' |
Definition at line 193 of file IdGenerators.hh.
|
inlinevirtual |
Implements Diades::Utils::IdGenerator< IncrementableType >.
Definition at line 213 of file IdGenerators.hh.
|
inlinevirtual |
Reinitialise the generator
Implements Diades::Utils::IdGenerator< IncrementableType >.
Definition at line 202 of file IdGenerators.hh.
|
default |
|
default |
|
private |
Definition at line 149 of file IdGenerators.hh.
|
private |
Definition at line 148 of file IdGenerators.hh.