|
#include <RobotAPI/libraries/aron/core/type/variant/container/Tuple.h>
Public Member Functions | |
void | addAcceptedType (const VariantPtr &) |
size_t | childrenSize () const override |
VariantPtr | getAcceptedType (unsigned int i) const |
std::vector< VariantPtr > | getAcceptedTypes () const |
std::vector< VariantPtr > | getChildren () const override |
get all child elements More... | |
std::string | getFullName () const override |
get the full name of this specific type More... | |
std::string | getShortName () const override |
get a short name of this specific type More... | |
bool | hasAcceptedType (unsigned int i) const |
VariantPtr | navigateAbsolute (const Path &path) const override |
naviate absolute More... | |
void | setAcceptedTypes (const std::vector< VariantPtr > &) |
type::dto::TuplePtr | toTupleDTO () const |
Tuple (const Path &path=Path()) | |
Tuple (const type::dto::Tuple &, const Path &path=Path()) | |
Public Member Functions inherited from ContainerVariant< type::dto::Tuple, Tuple > | |
virtual | ~ContainerVariant ()=default |
Public Member Functions inherited from SpecializedVariantBase< type::dto::Tuple, Tuple > | |
type::Maybe | getMaybe () const override |
get the maybe type More... | |
VariantPtr | navigateRelative (const Path &path) const override |
navigate relative More... | |
operator type::dto::Tuple () | |
bool | operator== (const Tuple &other) const |
bool | operator== (const Variant &other) const override |
void | setMaybe (const type::Maybe m) override |
set the maybetype of this type More... | |
SpecializedVariantBase (const type::Descriptor &descriptor, const Path &path) | |
SpecializedVariantBase (const type::dto::Tuple &o, const type::Descriptor &descriptor, const Path &path) | |
type::dto::GenericTypePtr | toAronDTO () const override |
convert this variant to a dto object. More... | |
virtual | ~SpecializedVariantBase ()=default |
Public Member Functions inherited from Variant | |
type::Descriptor | getDescriptor () const |
virtual type::Maybe | getMaybe () const =0 |
get the maybe type More... | |
Path | getPath () const |
bool | operator== (const VariantPtr &other) const |
std::string | pathToString () const |
virtual type::dto::GenericTypePtr | toAronDTO () const =0 |
convert this variant to a dto object. More... | |
Variant (const type::Descriptor &descriptor, const Path &path=Path()) | |
virtual | ~Variant ()=default |
Static Public Member Functions | |
static std::string | GetFullNamePrefix () |
static std::string | GetNamePrefix () |
Static Public Member Functions inherited from SpecializedVariantBase< type::dto::Tuple, Tuple > | |
static const Tuple & | DynamicCast (const Variant &n) |
static std::shared_ptr< Tuple > | DynamicCast (const VariantPtr &n) |
static Tuple & | DynamicCast (Variant &n) |
static std::shared_ptr< Tuple > | DynamicCastAndCheck (const VariantPtr &n) |
Static Public Member Functions inherited from Variant | |
static VariantPtr | FromAronDTO (const type::dto::GenericType &, const Path &=Path()) |
create a variant object from an dto object More... | |
Additional Inherited Members | |
Public Types inherited from Variant | |
using | PointerType = VariantPtr |
Protected Attributes inherited from SpecializedVariantBase< type::dto::Tuple, Tuple > | |
type::dto::Tuple ::PointerType | aron |
Protected Attributes inherited from Variant | |
const type::Descriptor | descriptor |
const Path | path |
The Tuple class.
It represents the tuple type A tuple has a list of accepted types
void addAcceptedType | ( | const VariantPtr & | v | ) |
|
overridevirtual |
VariantPtr getAcceptedType | ( | unsigned int | i | ) | const |
std::vector< VariantPtr > getAcceptedTypes | ( | ) | const |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
void setAcceptedTypes | ( | const std::vector< VariantPtr > & | acceptedTypes | ) |
type::dto::TuplePtr toTupleDTO | ( | ) | const |