PrimitiveVariant< AronTypeT, DerivedT, ValueT > Class Template Reference

#include <RobotAPI/libraries/aron/core/type/variant/detail/PrimitiveVariant.h>

+ Inheritance diagram for PrimitiveVariant< AronTypeT, DerivedT, ValueT >:

Public Types

using Base = SpecializedVariantBase< AronTypeT, DerivedT >
 
using ValueType = ValueT
 
- Public Types inherited from Variant
using PointerType = VariantPtr
 

Public Member Functions

size_t childrenSize () const override
 
std::vector< VariantPtrgetChildren () const override
 get all child elements More...
 
std::optional< ValueTypegetDefaultValue () const
 
VariantPtr navigateAbsolute (const Path &path) const override
 naviate absolute More...
 
void setDefaultValue (const std::optional< ValueType > &v)
 
 SpecializedVariantBase (const AronTypeT &o, const type::Descriptor &descriptor, const Path &path)
 
 SpecializedVariantBase (const type::Descriptor &descriptor, const Path &path)
 
virtual ~PrimitiveVariant ()=default
 
- Public Member Functions inherited from SpecializedVariantBase< AronTypeT, DerivedT >
type::Maybe getMaybe () const override
 get the maybe type More...
 
VariantPtr navigateRelative (const Path &path) const override
 navigate relative More...
 
 operator AronTypeT ()
 
bool operator== (const DerivedT &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 AronTypeT &o, const type::Descriptor &descriptor, const Path &path)
 
 SpecializedVariantBase (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 std::string getFullName () const =0
 get the full name of this specific type More...
 
Path getPath () const
 
virtual std::string getShortName () const =0
 get a short name of this specific type More...
 
bool operator== (const VariantPtr &other) const
 
std::string pathToString () const
 
 Variant (const type::Descriptor &descriptor, const Path &path=Path())
 
virtual ~Variant ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from SpecializedVariantBase< AronTypeT, DerivedT >
static const DerivedT & DynamicCast (const Variant &n)
 
static std::shared_ptr< DerivedT > DynamicCast (const VariantPtr &n)
 
static DerivedT & DynamicCast (Variant &n)
 
static std::shared_ptr< DerivedT > 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...
 
- Protected Attributes inherited from SpecializedVariantBase< AronTypeT, DerivedT >
AronTypeT::PointerType aron
 
- Protected Attributes inherited from Variant
const type::Descriptor descriptor
 
const Path path
 

Detailed Description

template<typename AronTypeT, typename DerivedT, typename ValueT>
class armarx::aron::type::detail::PrimitiveVariant< AronTypeT, DerivedT, ValueT >

Definition at line 39 of file PrimitiveVariant.h.

Member Typedef Documentation

◆ Base

using Base = SpecializedVariantBase<AronTypeT, DerivedT>

Definition at line 42 of file PrimitiveVariant.h.

◆ ValueType

using ValueType = ValueT

Definition at line 44 of file PrimitiveVariant.h.

Constructor & Destructor Documentation

◆ ~PrimitiveVariant()

virtual ~PrimitiveVariant ( )
virtualdefault

Member Function Documentation

◆ childrenSize()

size_t childrenSize ( ) const
inlineoverridevirtual

Implements Variant.

Definition at line 68 of file PrimitiveVariant.h.

◆ getChildren()

std::vector<VariantPtr> getChildren ( ) const
inlineoverridevirtual

get all child elements

Implements Variant.

Definition at line 62 of file PrimitiveVariant.h.

◆ getDefaultValue()

std::optional<ValueType> getDefaultValue ( ) const
inline

Definition at line 74 of file PrimitiveVariant.h.

+ Here is the caller graph for this function:

◆ navigateAbsolute()

VariantPtr navigateAbsolute ( const Path path) const
inlineoverridevirtual

naviate absolute

Implements Variant.

Definition at line 52 of file PrimitiveVariant.h.

◆ setDefaultValue()

void setDefaultValue ( const std::optional< ValueType > &  v)
inline

Definition at line 84 of file PrimitiveVariant.h.

◆ SpecializedVariantBase() [1/2]

Definition at line 49 of file SpecializedVariant.h.

◆ SpecializedVariantBase() [2/2]

Definition at line 44 of file SpecializedVariant.h.


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