|
The SingleTypeVariantList class is a subclass of VariantContainer and is comparable to a std::vector<T> containing values of type T. More...
#include <ArmarXCore/observers/variant/SingleTypeVariantList.h>
Public Member Functions | |
void | addElement (const VariantContainerBasePtr &variantContainer, const Ice::Current &c=Ice::emptyCurrent) override |
void | addVariant (const Variant &variant) |
void | clear (const Ice::Current &c=Ice::emptyCurrent) override |
VariantContainerBasePtr | cloneContainer (const Ice::Current &c=Ice::emptyCurrent) const override |
void | deserialize (const ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override |
template<typename ContainerType > | |
IceInternal::Handle< ContainerType > | getElement (int index) const |
VariantContainerBasePtr | getElementBase (int index, const Ice::Current &c=Ice::emptyCurrent) const override |
getElementBase is the slice-interface implementation for getting an Element and only returns a basepointer, so a manual upcast is usually necessary. More... | |
int | getSize (const Ice::Current &c=Ice::emptyCurrent) const override |
Ice::Int | getType (const Ice::Current &c=Ice::emptyCurrent) const override |
VariantPtr | getVariant (int index) const |
Ice::ObjectPtr | ice_clone () const override |
SingleTypeVariantList & | operator= (const SingleTypeVariantList &source) |
void | serialize (const ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override |
SingleTypeVariantList () | |
SingleTypeVariantList (const ContainerType &subType) | |
SingleTypeVariantList (const SingleTypeVariantList &source) | |
SingleTypeVariantList (VariantTypeId subType) | |
template<typename Type > | |
std::vector< Type > | toContainerStdVector () const |
template<typename Type > | |
std::vector< Type > | toStdVector () const |
std::string | toString (const Ice::Current &=Ice::emptyCurrent) const override |
bool | validateElements (const Ice::Current &c=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<typename T1 > | |
static SingleTypeVariantListPtr | FromContainerStdVector (const std::vector< T1 > &vec) |
template<typename T1 > | |
static SingleTypeVariantListPtr | FromStdVector (const std::vector< T1 > &vec) |
static VariantTypeId | getStaticType (const Ice::Current &c=Ice::emptyCurrent) |
static std::string | getTypePrefix () |
template<typename T1 , typename T2 > | |
static std::map< T1, T2 > | MakeMap (SingleTypeVariantListPtr l1, SingleTypeVariantListPtr l2) |
The SingleTypeVariantList class is a subclass of VariantContainer and is comparable to a std::vector<T> containing values of type T.
Definition at line 47 of file SingleTypeVariantList.h.
Definition at line 36 of file SingleTypeVariantList.cpp.
SingleTypeVariantList | ( | const SingleTypeVariantList & | source | ) |
|
explicit |
Definition at line 41 of file SingleTypeVariantList.cpp.
|
explicit |
Definition at line 47 of file SingleTypeVariantList.cpp.
|
override |
Definition at line 84 of file SingleTypeVariantList.cpp.
void addVariant | ( | const Variant & | variant | ) |
Definition at line 100 of file SingleTypeVariantList.cpp.
|
override |
Definition at line 114 of file SingleTypeVariantList.cpp.
|
override |
|
override |
|
inlinestatic |
Definition at line 138 of file SingleTypeVariantList.h.
|
inlinestatic |
Definition at line 125 of file SingleTypeVariantList.h.
|
inline |
Definition at line 86 of file SingleTypeVariantList.h.
|
override |
getElementBase is the slice-interface implementation for getting an Element and only returns a basepointer, so a manual upcast is usually necessary.
This function exists only for completeness and compatibility. Usually you should use the getElement()-function.
index | is the index of the Element in the list |
c | Not needed, leave blank. |
IndexOutOfBoundsException |
Definition at line 143 of file SingleTypeVariantList.cpp.
|
override |
Definition at line 124 of file SingleTypeVariantList.cpp.
|
static |
Definition at line 119 of file SingleTypeVariantList.cpp.
|
override |
|
static |
Definition at line 201 of file SingleTypeVariantList.cpp.
VariantPtr getVariant | ( | int | index | ) | const |
Definition at line 154 of file SingleTypeVariantList.cpp.
|
override |
|
inlinestatic |
Definition at line 106 of file SingleTypeVariantList.h.
SingleTypeVariantList & operator= | ( | const SingleTypeVariantList & | source | ) |
|
override |
Definition at line 166 of file SingleTypeVariantList.cpp.
|
inline |
Definition at line 170 of file SingleTypeVariantList.h.
|
inline |
Definition at line 158 of file SingleTypeVariantList.h.
|
override |
Definition at line 207 of file SingleTypeVariantList.cpp.
|
override |
Definition at line 129 of file SingleTypeVariantList.cpp.