|
#include <RobotAPI/libraries/aron/core/data/variant/detail/PrimitiveVariant.h>
Public Types | |
using | Base = SpecializedVariantBase< AronDataT, DerivedT > |
using | PointerType = std::shared_ptr< DerivedT > |
using | ValueType = ValueT |
Public Types inherited from SpecializedVariantBase< AronDataT, DerivedT > | |
using | AronDataType = AronDataT |
using | Base = data::Variant |
using | PointerType = std::shared_ptr< DerivedT > |
Public Types inherited from Variant | |
using | PointerType = VariantPtr |
Public Member Functions | |
size_t | childrenSize () const override |
get the children size of a data variant More... | |
virtual PointerType | clone () const |
PointerType | clone (const Path &newPath) const override |
virtual PointerType | clone (const Path &newPath) const=0 |
virtual void | fromString (const std::string &setter)=0 |
set a primitive from a std string More... | |
DictPtr | getAsDict () const |
std::vector< VariantPtr > | getChildren () const override |
get the children of a data variant More... | |
ValueT & | getValue () |
ValueT | getValue () const |
VariantPtr | navigateAbsolute (const Path &path) const override |
naviate absolute More... | |
operator ValueT () const | |
DerivedT & | operator= (const ValueT &x) |
PrimitiveVariant (const ValueT &v, const data::Descriptor descriptor, const Path &path=Path()) | |
void | setValue (const ValueT &x) |
SpecializedVariantBase ()=delete | |
SpecializedVariantBase (const data::Descriptor descriptor, const Path &path=Path()) | |
SpecializedVariantBase (const typename AronDataType::PointerType &o, const data::Descriptor descriptor, const Path &path=Path()) | |
virtual | ~PrimitiveVariant ()=default |
Public Member Functions inherited from SpecializedVariantBase< AronDataT, DerivedT > | |
virtual PointerType | clone () const |
VariantPtr | cloneAsVariant () const override |
get a pointer to a copy of this variant More... | |
VariantPtr | cloneAsVariant (const Path &newPath) const override |
VariantPtr | navigateRelative (const Path &path) const override |
navigate relative More... | |
operator typename AronDataType::PointerType () | |
virtual bool | operator== (const DerivedT &) const =0 |
virtual bool | operator== (const PointerType &other) const =0 |
bool | operator== (const Variant &other) const override |
SpecializedVariantBase ()=delete | |
SpecializedVariantBase (const data::Descriptor descriptor, const Path &path=Path()) | |
SpecializedVariantBase (const typename AronDataType::PointerType &o, const data::Descriptor descriptor, const Path &path=Path()) | |
data::dto::GenericDataPtr | toAronDTO () const override |
convert the variant to the ice representation More... | |
virtual | ~SpecializedVariantBase ()=default |
Public Member Functions inherited from Variant | |
virtual bool | fullfillsType (const type::VariantPtr &) const =0 |
checks, if the current data variant fullfills the given type More... | |
data::Descriptor | getDescriptor () const |
getter for the descriptor enum More... | |
virtual std::string | getFullName () const =0 |
get the full str representation of this variant More... | |
Path | getPath () const |
get the path More... | |
virtual std::string | getShortName () const =0 |
get a short str representation of this variant More... | |
bool | operator== (const VariantPtr &other) const |
std::string | pathToString () const |
get the path as string More... | |
virtual type::VariantPtr | recalculateType () const =0 |
recalculate the type of a data variant. Please not tha the mapping ist NOT bijective, so the calculated type may be wrong More... | |
Variant ()=delete | |
Variant (const data::Descriptor &descriptor, const Path &path) | |
virtual | ~Variant ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from SpecializedVariantBase< AronDataT, DerivedT > | |
static const DerivedT & | DynamicCast (const Variant &n) |
static PointerType | DynamicCast (const VariantPtr &n) |
static DerivedT & | DynamicCast (Variant &n) |
static PointerType | DynamicCastAndCheck (const VariantPtr &n) |
Static Public Member Functions inherited from Variant | |
static VariantPtr | FromAronDTO (const data::dto::GenericDataPtr &, const Path &=Path()) |
create a variant from a dto object More... | |
static std::vector< VariantPtr > | FromAronDTO (const std::vector< data::dto::GenericDataPtr > &, const Path &=Path()) |
create a list of variants from a list of dto objects More... | |
static std::vector< data::dto::GenericDataPtr > | ToAronDTO (const std::vector< VariantPtr > &) |
return a list of dto objects from a list of variant objects More... | |
Protected Attributes inherited from SpecializedVariantBase< AronDataT, DerivedT > | |
AronDataType::PointerType | aron |
Protected Attributes inherited from Variant | |
const data::Descriptor | descriptor |
const Path | path |
Definition at line 40 of file PrimitiveVariant.h.
using Base = SpecializedVariantBase<AronDataT, DerivedT> |
Definition at line 43 of file PrimitiveVariant.h.
using PointerType = std::shared_ptr<DerivedT> |
Definition at line 44 of file PrimitiveVariant.h.
using ValueType = ValueT |
Definition at line 45 of file PrimitiveVariant.h.
|
inline |
Definition at line 50 of file PrimitiveVariant.h.
|
virtualdefault |
|
inlineoverridevirtual |
get the children size of a data variant
Implements Variant.
Definition at line 108 of file PrimitiveVariant.h.
|
inline |
Definition at line 82 of file SpecializedVariant.h.
|
inlineoverridevirtual |
Implements SpecializedVariantBase< AronDataT, DerivedT >.
Definition at line 95 of file PrimitiveVariant.h.
virtual PointerType clone |
|
pure virtual |
|
inline |
Definition at line 117 of file PrimitiveVariant.h.
|
inlineoverridevirtual |
get the children of a data variant
Implements Variant.
Definition at line 102 of file PrimitiveVariant.h.
|
inline |
Definition at line 138 of file PrimitiveVariant.h.
|
inline |
|
inlineoverridevirtual |
|
inline |
Definition at line 60 of file PrimitiveVariant.h.
|
inline |
Definition at line 66 of file PrimitiveVariant.h.
|
inline |
Definition at line 126 of file PrimitiveVariant.h.
|
delete |
|
inline |
Definition at line 49 of file SpecializedVariant.h.
|
inline |
Definition at line 54 of file SpecializedVariant.h.