Bool Class Reference

#include <RobotAPI/libraries/aron/core/data/variant/primitive/Bool.h>

+ Inheritance diagram for Bool:

Public Member Functions

 Bool (const bool, const Path &=Path())
 
 Bool (const data::dto::AronBoolPtr &, const Path &=Path())
 
 Bool (const Path &=Path())
 
void fromString (const std::string &setter) override
 set a primitive from a std string More...
 
bool fullfillsType (const type::VariantPtr &) const override
 checks, if the current data variant fullfills the given type More...
 
std::string getFullName () const override
 get the full str representation of this variant More...
 
std::string getShortName () const override
 get a short str representation of this variant More...
 
bool operator== (const Bool &other) const override
 
bool operator== (const BoolPtr &) const override
 
type::VariantPtr recalculateType () const override
 recalculate the type of a data variant. Please not tha the mapping ist NOT bijective, so the calculated type may be wrong More...
 
data::dto::AronBoolPtr toAronBoolDTO () const
 
- Public Member Functions inherited from PrimitiveVariant< data::dto::AronBool, bool, Bool >
size_t childrenSize () const override
 get the children size of a data variant More...
 
virtual PointerType clone () const
 
virtual PointerType clone (const Path &newPath) const =0
 
PointerType clone (const Path &newPath) const override
 
DictPtr getAsDict () const
 
std::vector< VariantPtrgetChildren () const override
 get the children of a data variant More...
 
bool & getValue ()
 
bool getValue () const
 
VariantPtr navigateAbsolute (const Path &path) const override
 naviate absolute More...
 
 operator bool () const
 
Booloperator= (const bool &x)
 
 PrimitiveVariant (const bool &v, const data::Descriptor descriptor, const Path &path=Path())
 
void setValue (const bool &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< data::dto::AronBool, Bool >
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 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 VariantPtr cloneAsVariant () const =0
 get a pointer to a copy of this variant 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...
 
Path getPath () const
 get the path More...
 
bool operator== (const VariantPtr &other) const
 
std::string pathToString () const
 get the path as string More...
 
virtual data::dto::GenericDataPtr toAronDTO () const =0
 convert the variant to the ice representation More...
 
 Variant ()=delete
 
 Variant (const data::Descriptor &descriptor, const Path &path)
 
virtual ~Variant ()=default
 

Static Public Member Functions

static BoolPtr FromAronBoolDTO (const data::dto::AronBoolPtr &aron)
 
static data::dto::AronBoolPtr ToAronBoolDTO (const BoolPtr &navigator)
 
- Static Public Member Functions inherited from SpecializedVariantBase< data::dto::AronBool, Bool >
static const BoolDynamicCast (const Variant &n)
 
static PointerType DynamicCast (const VariantPtr &n)
 
static BoolDynamicCast (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...
 

Additional Inherited Members

- Public Types inherited from PrimitiveVariant< data::dto::AronBool, bool, Bool >
using Base = SpecializedVariantBase< data::dto::AronBool, Bool >
 
using PointerType = std::shared_ptr< Bool >
 
using ValueType = bool
 
- Public Types inherited from SpecializedVariantBase< data::dto::AronBool, Bool >
using AronDataType = data::dto::AronBool
 
using Base = data::Variant
 
using PointerType = std::shared_ptr< Bool >
 
- Public Types inherited from Variant
using PointerType = VariantPtr
 
- Protected Attributes inherited from SpecializedVariantBase< data::dto::AronBool, Bool >
AronDataType::PointerType aron
 
- Protected Attributes inherited from Variant
const data::Descriptor descriptor
 
const Path path
 

Detailed Description

Definition at line 41 of file Bool.h.

Constructor & Destructor Documentation

◆ Bool() [1/3]

Bool ( const Path path = Path())

Definition at line 37 of file Bool.cpp.

◆ Bool() [2/3]

Bool ( const data::dto::AronBoolPtr &  o,
const Path path = Path() 
)

Definition at line 29 of file Bool.cpp.

◆ Bool() [3/3]

Bool ( const bool  d,
const Path path = Path() 
)

Definition at line 44 of file Bool.cpp.

Member Function Documentation

◆ FromAronBoolDTO()

BoolPtr FromAronBoolDTO ( const data::dto::AronBoolPtr &  aron)
static

Definition at line 76 of file Bool.cpp.

◆ fromString()

void fromString ( const std::string &  setter)
overridevirtual

set a primitive from a std string

Implements PrimitiveVariant< data::dto::AronBool, bool, Bool >.

Definition at line 100 of file Bool.cpp.

+ Here is the call graph for this function:

◆ fullfillsType()

bool fullfillsType ( const type::VariantPtr ) const
overridevirtual

checks, if the current data variant fullfills the given type

Implements Variant.

Definition at line 131 of file Bool.cpp.

◆ getFullName()

std::string getFullName ( ) const
overridevirtual

get the full str representation of this variant

Implements Variant.

Definition at line 125 of file Bool.cpp.

◆ getShortName()

std::string getShortName ( ) const
overridevirtual

get a short str representation of this variant

Implements Variant.

Definition at line 119 of file Bool.cpp.

◆ operator==() [1/2]

bool operator== ( const Bool other) const
overridevirtual

Implements SpecializedVariantBase< data::dto::AronBool, Bool >.

Definition at line 54 of file Bool.cpp.

+ Here is the call graph for this function:

◆ operator==() [2/2]

bool operator== ( const BoolPtr other) const
override

Definition at line 65 of file Bool.cpp.

◆ recalculateType()

type::VariantPtr recalculateType ( ) const
overridevirtual

recalculate the type of a data variant. Please not tha the mapping ist NOT bijective, so the calculated type may be wrong

Implements Variant.

Definition at line 139 of file Bool.cpp.

◆ toAronBoolDTO()

data::dto::AronBoolPtr toAronBoolDTO ( ) const

Definition at line 93 of file Bool.cpp.

+ Here is the caller graph for this function:

◆ ToAronBoolDTO()

data::dto::AronBoolPtr ToAronBoolDTO ( const BoolPtr navigator)
static

Definition at line 86 of file Bool.cpp.


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