|
SUNphi
1.0
|
#include <Sequence.hpp>
Public Member Functions | |
| bool | isDefault () const |
| Returns whether the container is default. | |
| void | putToDefault () |
| Put to default value. | |
| template<typename... TDef> | |
| SerializableSequence (const char *name, TDef &&...def) | |
| Creates a serializable vector with name. More... | |
| const S & | operator() () const |
| Access the value. | |
| template<typename... Ts> | |
| decltype(auto) | operator() (Ts &&...ts) |
| YAML::Node | serialize (YAML::Node &node, const bool &onlyNonDefault=false) const |
| Returns a YAML node after serializing to it. More... | |
| YAML::Node | serialize (const bool &onlyNonDefault=false) const |
| Returns a YAML node. More... | |
| bool | deSerialize (const YAML::Node &node) |
| Convert from a YAML node. More... | |
| SerializableSequence & | operator= (const SerializableSequence &oth) |
| Copy assignment operator. | |
| SerializableSequence< S > & | operator~ () |
| const SerializableSequence< S > & | operator~ () const |
| Binarizer & | binarize (B &&out={}) const |
| Binarize a Serializable. More... | |
| Binarizer & | deBinarize (B &&rhs) |
| DeBinarize a Serializable. More... | |
Public Attributes | |
| const char * | name |
| Name used to refer. | |
| const S | def |
| Default value. | |
Private Types | |
| using | T = decltype((*static_cast< S * >(nullptr))[0]) |
| Fundamental type. | |
Class providing sequence node for the serializer
Provides name and default value
Definition at line 24 of file Sequence.hpp.
|
inline |
Creates a serializable vector with name.
| name | Name of the sequence |
| def | Initializer |
Definition at line 58 of file Sequence.hpp.
|
inlineinherited |
|
inlineinherited |
|
inline |
Convert from a YAML node.
| node | Node from which to convert |
Definition at line 121 of file Sequence.hpp.
|
inline |
Overload the operator() const method passing all args
| ts | Arguments |
Definition at line 74 of file Sequence.hpp.
|
inlineinherited |
Constant cast operator to class T
Definition at line 217 of file Binarize.hpp.
|
inlineinherited |
Cast operator to class T
Definition at line 217 of file Binarize.hpp.
|
inline |
Returns a YAML node after serializing to it.
Create the subnode
Definition at line 77 of file Sequence.hpp.
|
inline |