SingleVariant Class Reference

The SingleVariant class is required to store single Variant instances in VariantContainer subclasses. More...

#include <ArmarXCore/observers/variant/VariantContainer.h>

+ Inheritance diagram for SingleVariant:

Public Member Functions

void clear (const ::Ice::Current &=Ice::emptyCurrent) override
 
VariantContainerBasePtr cloneContainer (const ::Ice::Current &=Ice::emptyCurrent) const override
 
void deserialize (const ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
 
VariantPtr get () const
 
ContainerTypePtr getContainerType (const Ice::Current &c=Ice::emptyCurrent) const override
 
VariantBasePtr getElementBase (const Ice::Current &=Ice::emptyCurrent) const override
 
int getSize (const ::Ice::Current &=Ice::emptyCurrent) const override
 
Ice::ObjectPtr ice_clone () const override
 
SingleVariantoperator= (const SingleVariant &source)
 
void serialize (const ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
 
void setContainerType (const ContainerTypePtr &containerType, const Ice::Current &c=Ice::emptyCurrent) override
 
void setVariant (const VariantPtr &variant)
 
 SingleVariant ()
 
 SingleVariant (const SingleVariant &source)
 
 SingleVariant (const Variant &variant)
 
 SingleVariant (Variant &&variant)
 
 SingleVariant (Variant &variant)
 
std::string toString (const Ice::Current &c) const override
 
bool validateElements (const ::Ice::Current &=Ice::emptyCurrent) override
 
- Public Member Functions inherited from VariantContainer
VariantDataClassPtr clone (const Ice::Current &c=Ice::emptyCurrent) const override
 
ContainerTypePtr getContainerType (const Ice::Current &c=Ice::emptyCurrent) const override
 
Ice::Int getType (const Ice::Current &c=Ice::emptyCurrent) const override
 
std::string output (const Ice::Current &c=Ice::emptyCurrent) const override
 
void setContainerType (const ContainerTypePtr &containerType, const Ice::Current &c=Ice::emptyCurrent) override
 
bool validate (const Ice::Current &c=Ice::emptyCurrent) override
 

Static Public Member Functions

template<class T >
static T fromString (const std::string &s)
 
static VariantTypeId getStaticType (const Ice::Current &c=Ice::emptyCurrent)
 
static std::string getTypePrefix ()
 

Detailed Description

The SingleVariant class is required to store single Variant instances in VariantContainer subclasses.

Without this class the compiler would not be able to compile code which is storing single Variants instead of VariantContainers as values inside a VariantContainer instance .

Definition at line 109 of file VariantContainer.h.

Constructor & Destructor Documentation

◆ SingleVariant() [1/5]

Definition at line 44 of file VariantContainer.cpp.

+ Here is the caller graph for this function:

◆ SingleVariant() [2/5]

SingleVariant ( const Variant variant)

Definition at line 52 of file VariantContainer.cpp.

+ Here is the call graph for this function:

◆ SingleVariant() [3/5]

Definition at line 378 of file VariantContainer.cpp.

◆ SingleVariant() [4/5]

SingleVariant ( armarx::Variant &&  variant)

Definition at line 382 of file VariantContainer.cpp.

◆ SingleVariant() [5/5]

SingleVariant ( const SingleVariant source)

Definition at line 60 of file VariantContainer.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ clear()

void clear ( const ::Ice::Current &  = Ice::emptyCurrent)
inlineoverride

Definition at line 131 of file VariantContainer.h.

◆ cloneContainer()

VariantContainerBasePtr cloneContainer ( const ::Ice::Current &  = Ice::emptyCurrent) const
override

Definition at line 79 of file VariantContainer.cpp.

+ Here is the call graph for this function:

◆ deserialize()

void deserialize ( const ObjectSerializerBasePtr &  serializer,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 138 of file VariantContainer.cpp.

+ Here is the call graph for this function:

◆ fromString()

static T fromString ( const std::string &  s)
inlinestatic

Definition at line 139 of file VariantContainer.h.

+ Here is the call graph for this function:

◆ get()

VariantPtr get ( ) const

Definition at line 94 of file VariantContainer.cpp.

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

◆ getContainerType()

ContainerTypePtr getContainerType ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 112 of file VariantContainer.cpp.

◆ getElementBase()

VariantBasePtr getElementBase ( const Ice::Current &  = Ice::emptyCurrent) const
override

Definition at line 89 of file VariantContainer.cpp.

+ Here is the caller graph for this function:

◆ getSize()

int getSize ( const ::Ice::Current &  = Ice::emptyCurrent) const
override

Definition at line 107 of file VariantContainer.cpp.

◆ getStaticType()

VariantTypeId getStaticType ( const Ice::Current &  c = Ice::emptyCurrent)
static

Definition at line 122 of file VariantContainer.cpp.

+ Here is the call graph for this function:

◆ getTypePrefix()

std::string getTypePrefix ( )
static

Definition at line 144 of file VariantContainer.cpp.

+ Here is the caller graph for this function:

◆ ice_clone()

Ice::ObjectPtr ice_clone ( ) const
override

Definition at line 84 of file VariantContainer.cpp.

+ Here is the call graph for this function:

◆ operator=()

SingleVariant & operator= ( const SingleVariant source)

Definition at line 69 of file VariantContainer.cpp.

+ Here is the call graph for this function:

◆ serialize()

void serialize ( const ObjectSerializerBasePtr &  serializer,
const ::Ice::Current &  = Ice::emptyCurrent 
) const
override

Definition at line 132 of file VariantContainer.cpp.

+ Here is the call graph for this function:

◆ setContainerType()

void setContainerType ( const ContainerTypePtr &  containerType,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 117 of file VariantContainer.cpp.

◆ setVariant()

void setVariant ( const VariantPtr variant)

Definition at line 99 of file VariantContainer.cpp.

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

◆ toString()

std::string toString ( const Ice::Current &  c) const
override

Definition at line 149 of file VariantContainer.cpp.

◆ validateElements()

bool validateElements ( const ::Ice::Current &  = Ice::emptyCurrent)
override

Definition at line 127 of file VariantContainer.cpp.


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