Dynamic sequencer handles dynamic sequences in a sequential fashion.
More...
#include <DynSequencer.h>
|
| DynSequencer () |
| Default constructor for the dynamic sequencer.
|
|
virtual vector< shared_ptr< T > > | nextStep () |
| Handle next sequential behavior. More...
|
|
virtual bool | hasNextStep () |
| Check if the dynamic sequencer supports a next step or not. More...
|
|
void | add (shared_ptr< DynSequence< T >> dynseq) |
| Add the dynamic sequence to the sequencer. More...
|
|
void | remove (string const &id) |
| Remove the dynamic sequence with given identifier. More...
|
|
shared_ptr< DynSequence< T > > | get (string const &id) |
| Get the dynamic sequence with given identifier. More...
|
|
bool | has (string const &id) |
| Check if the dynamic sequencer has a dynamic sequence with given identifier. More...
|
|
void | clear () |
| Remove all dynamic sequences composing the dynamic sequencer.
|
|
|
template<typename Archive > |
void | serialize (Archive &ar, const unsigned int version) |
| Serialize a dynamic sequencer to a stream of bytes. More...
|
|
|
class | boost::serialization::access |
|
template<typename T>
class DynSequencer< T >
Dynamic sequencer handles dynamic sequences in a sequential fashion.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
- Template Parameters
-
T | Type of elements composing sequences |
- See also
- DynSequence
◆ add()
Add the dynamic sequence to the sequencer.
NOTICE the first added dynamic sequence will become the start dynamic sequence by default
- Parameters
-
dynseq | Dynamic sequence to be added |
◆ get()
Get the dynamic sequence with given identifier.
- Parameters
-
id | Identifier of dynamic sequence to be retrieved |
- Returns
- Requested dynamic sequence if any, nullptr otherwise
◆ has()
Check if the dynamic sequencer has a dynamic sequence with given identifier.
- Parameters
-
id | Identifier of the dynamic sequence to be checked |
- Returns
- True if there is a dynamic sequence with given identifier, false otherwise
◆ hasNextStep()
Check if the dynamic sequencer supports a next step or not.
- Returns
- True if dynamic sequencer supports a next step, false otherwise
◆ nextStep()
template<typename T >
virtual vector<shared_ptr<T> > DynSequencer< T >::nextStep |
( |
| ) |
|
|
virtual |
Handle next sequential behavior.
- Returns
- Sequence for the step
◆ remove()
Remove the dynamic sequence with given identifier.
- Parameters
-
id | Identifier of dynamic sequence to be removed |
◆ serialize()
template<typename T >
template<typename Archive >
void DynSequencer< T >::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inlineprivate |
Serialize a dynamic sequencer to a stream of bytes.
- Template Parameters
-
- Parameters
-
ar | Specific rendering for the stream of bytes |
version | Version number for the dynamic sequencer |
The documentation for this class was generated from the following file: