Long Class Reference

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

+ Inheritance diagram for Long:

Public Member Functions

void fromString (const std::string &setter) override
 set a primitive from a std string
 
bool fullfillsType (const type::VariantPtr &) const override
 checks, if the current data variant fullfills the given type
 
std::string getFullName () const override
 get the full str representation of this variant
 
std::string getShortName () const override
 get a short str representation of this variant
 
 Long (const data::dto::AronLongPtr &, const Path &=Path())
 
 Long (const long, const Path &=Path())
 
 Long (const Path &=Path())
 
bool operator== (const Long &) const override
 
bool operator== (const LongPtr &) 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
 
data::dto::AronLongPtr toAronLongDTO () const
 
- Public Member Functions inherited from PrimitiveVariant< data::dto::AronLong, long, Long >
size_t childrenSize () const override
 get the children size of a data variant
 
virtual PointerType clone () const
 
virtual PointerType clone () const
 
PointerType clone (const Path &newPath) const override
 
DictPtr getAsDict () const
 
std::vector< VariantPtrgetChildren () const override
 get the children of a data variant
 
long & getValue ()
 
long getValue () const
 
VariantPtr navigateAbsolute (const Path &path) const override
 naviate absolute
 
 operator long () const
 
Longoperator= (const long &x)
 
 PrimitiveVariant (const long &v, const data::Descriptor descriptor, const Path &path=Path())
 
void setValue (const long &x)
 
 SpecializedVariantBase ()=delete
 
 SpecializedVariantBase ()=delete
 
 SpecializedVariantBase (const data::Descriptor descriptor, const Path &path=Path())
 
 SpecializedVariantBase (const data::Descriptor descriptor, const Path &path=Path())
 
 SpecializedVariantBase (const typename AronDataType::PointerType &o, 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::AronLong, Long >
VariantPtr cloneAsVariant () const override
 get a pointer to a copy of this variant
 
VariantPtr cloneAsVariant (const Path &newPath) const override
 
VariantPtr navigateRelative (const Path &path) const override
 navigate relative
 
 operator typename AronDataType::PointerType ()
 
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
 
virtual ~SpecializedVariantBase ()=default
 
- Public Member Functions inherited from Variant
data::Descriptor getDescriptor () const
 getter for the descriptor enum
 
Path getPath () const
 get the path
 
bool operator== (const VariantPtr &other) const
 
std::string pathToString () const
 get the path as string
 
 Variant ()=delete
 
 Variant (const data::Descriptor &descriptor, const Path &path)
 
virtual ~Variant ()=default
 

Static Public Member Functions

static LongPtr FromAronLongDTO (const data::dto::AronLongPtr &aron)
 
static data::dto::AronLongPtr ToAronLongDTO (const LongPtr &navigator)
 
- Static Public Member Functions inherited from SpecializedVariantBase< data::dto::AronLong, Long >
static const LongDynamicCast (const Variant &n)
 
static PointerType DynamicCast (const VariantPtr &n)
 
static LongDynamicCast (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
 
static std::vector< VariantPtrFromAronDTO (const std::vector< data::dto::GenericDataPtr > &, const Path &=Path())
 create a list of variants from a list of dto objects
 
static std::vector< data::dto::GenericDataPtr > ToAronDTO (const std::vector< VariantPtr > &)
 return a list of dto objects from a list of variant objects
 

Additional Inherited Members

- Public Types inherited from PrimitiveVariant< data::dto::AronLong, long, Long >
using Base
 
using PointerType
 
using ValueType
 
- Public Types inherited from SpecializedVariantBase< data::dto::AronLong, Long >
using AronDataType
 
using Base
 
using PointerType
 
- Public Types inherited from Variant
using PointerType = VariantPtr
 
- Protected Attributes inherited from SpecializedVariantBase< data::dto::AronLong, Long >
AronDataType::PointerType aron
 
- Protected Attributes inherited from Variant
const data::Descriptor descriptor
 
const Path path
 

Detailed Description

Definition at line 41 of file Long.h.

Constructor & Destructor Documentation

◆ Long() [1/3]

Long ( const Path & path = Path())

Definition at line 43 of file Long.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Long() [2/3]

Long ( const data::dto::AronLongPtr & o,
const Path & path = Path() )

Definition at line 35 of file Long.cpp.

+ Here is the call graph for this function:

◆ Long() [3/3]

Long ( const long d,
const Path & path = Path() )

Definition at line 50 of file Long.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ FromAronLongDTO()

LongPtr FromAronLongDTO ( const data::dto::AronLongPtr & aron)
static

Definition at line 82 of file Long.cpp.

◆ fromString()

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

set a primitive from a std string

Implements PrimitiveVariant< data::dto::AronLong, long, Long >.

Definition at line 106 of file Long.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 124 of file Long.cpp.

◆ getFullName()

std::string getFullName ( ) const
overridevirtual

get the full str representation of this variant

Implements Variant.

Definition at line 118 of file Long.cpp.

◆ getShortName()

std::string getShortName ( ) const
overridevirtual

get a short str representation of this variant

Implements Variant.

Definition at line 112 of file Long.cpp.

◆ operator==() [1/2]

bool operator== ( const Long & other) const
overridevirtual

Implements SpecializedVariantBase< data::dto::AronLong, Long >.

Definition at line 60 of file Long.cpp.

+ Here is the call graph for this function:

◆ operator==() [2/2]

bool operator== ( const LongPtr & other) const
overridevirtual

Implements SpecializedVariantBase< data::dto::AronLong, Long >.

Definition at line 71 of file Long.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 132 of file Long.cpp.

◆ ToAronLongDTO()

data::dto::AronLongPtr ToAronLongDTO ( const LongPtr & navigator)
static

Definition at line 92 of file Long.cpp.

◆ toAronLongDTO()

data::dto::AronLongPtr toAronLongDTO ( ) const

Definition at line 99 of file Long.cpp.

+ Here is the caller graph for this function:

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