Bool Class Reference

The Bool class. More...

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

+ Inheritance diagram for Bool:

Public Types

using Base = detail::PrimitiveVariant< type::dto::AronBool, Bool, bool >
 
- Public Types inherited from PrimitiveVariant< type::dto::AronBool, Bool, bool >
using Base = SpecializedVariantBase< type::dto::AronBool, Bool >
 
using ValueType = bool
 
- Public Types inherited from Variant
using PointerType = VariantPtr
 

Public Member Functions

 Bool (const Path &=Path())
 
 Bool (const type::dto::AronBool &, const Path &=Path())
 
virtual std::string getFullName () const override
 get the full name of this specific type More...
 
virtual std::string getShortName () const override
 get a short name of this specific type More...
 
type::dto::AronBoolPtr toBoolDTO () const
 
- Public Member Functions inherited from PrimitiveVariant< type::dto::AronBool, Bool, bool >
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 type::Descriptor &descriptor, const Path &path)
 
 SpecializedVariantBase (const type::dto::AronBool &o, const type::Descriptor &descriptor, const Path &path)
 
virtual ~PrimitiveVariant ()=default
 
- Public Member Functions inherited from SpecializedVariantBase< type::dto::AronBool, Bool >
type::Maybe getMaybe () const override
 get the maybe type More...
 
VariantPtr navigateRelative (const Path &path) const override
 navigate relative More...
 
 operator type::dto::AronBool ()
 
bool operator== (const Bool &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::AronBool &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
virtual size_t childrenSize () const =0
 
virtual std::vector< VariantPtrgetChildren () const =0
 get all child elements More...
 
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
 

Additional Inherited Members

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

Detailed Description

The Bool class.

It represents the bool type

Definition at line 37 of file Bool.h.

Member Typedef Documentation

◆ Base

using Base = detail::PrimitiveVariant<type::dto::AronBool, Bool, bool>

Definition at line 40 of file Bool.h.

Constructor & Destructor Documentation

◆ Bool() [1/2]

Bool ( const Path path = Path())

Definition at line 35 of file Bool.cpp.

◆ Bool() [2/2]

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

Definition at line 39 of file Bool.cpp.

Member Function Documentation

◆ getFullName()

std::string getFullName ( ) const
overridevirtual

get the full name of this specific type

Implements Variant.

Definition at line 58 of file Bool.cpp.

◆ getShortName()

std::string getShortName ( ) const
overridevirtual

get a short name of this specific type

Implements Variant.

Definition at line 52 of file Bool.cpp.

◆ toBoolDTO()

type::dto::AronBoolPtr toBoolDTO ( ) const

Definition at line 45 of file Bool.cpp.


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