List Class Reference

The List class. More...

#include <RobotAPI/libraries/aron/core/type/variant/container/List.h>

+ Inheritance diagram for List:

Public Member Functions

size_t childrenSize () const override
 
VariantPtr getAcceptedType () const
 
std::vector< VariantPtrgetChildren () 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...
 
 List (const Path &path=Path())
 
 List (const type::dto::List &, const Path &path=Path())
 
VariantPtr navigateAbsolute (const Path &path) const override
 naviate absolute More...
 
void setAcceptedType (const VariantPtr &)
 
type::dto::ListPtr toListDTO () const
 
- Public Member Functions inherited from ContainerVariant< type::dto::List, List >
virtual ~ContainerVariant ()=default
 
- Public Member Functions inherited from SpecializedVariantBase< type::dto::List, List >
type::Maybe getMaybe () const override
 get the maybe type More...
 
VariantPtr navigateRelative (const Path &path) const override
 navigate relative More...
 
 operator type::dto::List ()
 
bool operator== (const List &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::List &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::List, List >
static const ListDynamicCast (const Variant &n)
 
static std::shared_ptr< ListDynamicCast (const VariantPtr &n)
 
static ListDynamicCast (Variant &n)
 
static std::shared_ptr< ListDynamicCastAndCheck (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::List, List >
type::dto::List ::PointerType aron
 
- Protected Attributes inherited from Variant
const type::Descriptor descriptor
 
const Path path
 

Detailed Description

The List class.

It represents the list type It only has an accepted type (a variant)

Definition at line 39 of file List.h.

Constructor & Destructor Documentation

◆ List() [1/2]

List ( const Path path = Path())

Definition at line 30 of file List.cpp.

◆ List() [2/2]

List ( const type::dto::List &  o,
const Path path = Path() 
)

Definition at line 35 of file List.cpp.

Member Function Documentation

◆ childrenSize()

size_t childrenSize ( ) const
overridevirtual

Implements Variant.

Definition at line 71 of file List.cpp.

◆ getAcceptedType()

VariantPtr getAcceptedType ( ) const

Definition at line 43 of file List.cpp.

+ Here is the caller graph for this function:

◆ getChildren()

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

get all child elements

Implements Variant.

Definition at line 65 of file List.cpp.

◆ getFullName()

std::string getFullName ( ) const
overridevirtual

get the full name of this specific type

Implements Variant.

Definition at line 83 of file List.cpp.

◆ GetFullNamePrefix()

std::string GetFullNamePrefix ( )
static

Definition at line 89 of file List.cpp.

◆ GetNamePrefix()

std::string GetNamePrefix ( )
static

Definition at line 95 of file List.cpp.

◆ getShortName()

std::string getShortName ( ) const
overridevirtual

get a short name of this specific type

Implements Variant.

Definition at line 77 of file List.cpp.

◆ navigateAbsolute()

VariantPtr navigateAbsolute ( const Path path) const
overridevirtual

naviate absolute

Implements Variant.

Definition at line 101 of file List.cpp.

+ Here is the call graph for this function:

◆ setAcceptedType()

void setAcceptedType ( const VariantPtr a)

Definition at line 49 of file List.cpp.

+ Here is the call graph for this function:

◆ toListDTO()

type::dto::ListPtr toListDTO ( ) const

Definition at line 58 of file List.cpp.


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