ContainerVariant< AronDataT, DerivedT > Class Template Reference

#include <RobotAPI/libraries/aron/core/data/variant/detail/ContainerVariant.h>

+ Inheritance diagram for ContainerVariant< AronDataT, DerivedT >:

Public Types

using Base = SpecializedVariantBase< AronDataT, DerivedT >
 
- 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

 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 ~ContainerVariant ()=default
 
- Public Member Functions inherited from SpecializedVariantBase< AronDataT, DerivedT >
virtual PointerType clone () const
 
virtual PointerType clone (const Path &newPath) const =0
 
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 size_t childrenSize () const =0
 get the children size of a data variant More...
 
virtual bool fullfillsType (const type::VariantPtr &) const =0
 checks, if the current data variant fullfills the given type More...
 
virtual std::vector< VariantPtrgetChildren () const =0
 get the children of a data variant 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...
 
virtual VariantPtr navigateAbsolute (const Path &path) const =0
 naviate absolute 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< VariantPtrFromAronDTO (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
 

Detailed Description

template<typename AronDataT, typename DerivedT>
class armarx::aron::data::detail::ContainerVariant< AronDataT, DerivedT >

Definition at line 37 of file ContainerVariant.h.

Member Typedef Documentation

◆ Base

using Base = SpecializedVariantBase<AronDataT, DerivedT>

Definition at line 40 of file ContainerVariant.h.

Constructor & Destructor Documentation

◆ ~ContainerVariant()

virtual ~ContainerVariant ( )
virtualdefault

Member Function Documentation

◆ SpecializedVariantBase() [1/3]

◆ SpecializedVariantBase() [2/3]

Definition at line 49 of file SpecializedVariant.h.

◆ SpecializedVariantBase() [3/3]

Definition at line 54 of file SpecializedVariant.h.


The documentation for this class was generated from the following file: