Variant.h File Reference
#include <map>
#include <string>
#include <type_traits>
#include <IceUtil/Handle.h>
#include <ArmarXCore/interface/observers/VariantBase.h>
#include <ArmarXCore/interface/observers/VariantContainers.h>
#include <ArmarXCore/observers/exceptions/user/NotInitializedException.h>
#include <ArmarXCore/util/CPPUtility/GetTypeString.h>
+ Include dependency graph for Variant.h:

Go to the source code of this file.

Classes

class  Variant
 The Variant class is described here: Variants. More...
 

Namespaces

 armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
 armarx::VariantType
 

Typedefs

using StringVariantMap = std::map< std::string, Variant >
 
using VariantPtr = IceInternal::Handle< Variant >
 
using VariantTypeId = Ice::Int
 

Functions

bool IsBasicType (VariantTypeId id)
 
std::ostream & operator<< (std::ostream &stream, const VariantDataClass &variant)
 
template<>
std::int16_t Variant::get< std::int16_t > () const
 
template<>
std::int32_t Variant::get< std::int32_t > () const
 
template<>
std::int64_t Variant::get< std::int64_t > () const
 
template<>
std::int8_t Variant::get< std::int8_t > () const
 
template<>
std::string Variant::get< std::string > () const
 
template<>
std::uint16_t Variant::get< std::uint16_t > () const
 
template<>
std::uint32_t Variant::get< std::uint32_t > () const
 
template<>
std::uint64_t Variant::get< std::uint64_t > () const
 
template<>
std::uint8_t Variant::get< std::uint8_t > () const
 
template<>
void Variant::set< std::int16_t > (const std::int16_t &value)
 
template<>
void Variant::set< std::int32_t > (const std::int32_t &value)
 
template<>
void Variant::set< std::int64_t > (const std::int64_t &value)
 
template<>
void Variant::set< std::int8_t > (const std::int8_t &value)
 
template<>
void Variant::set< std::string > (const std::string &value)
 
template<>
void Variant::set< std::uint16_t > (const std::uint16_t &value)
 
template<>
void Variant::set< std::uint32_t > (const std::uint32_t &value)
 
template<>
void Variant::set< std::uint64_t > (const std::uint64_t &value)
 
template<>
void Variant::set< std::uint8_t > (const std::uint8_t &value)
 

Variables

template<typename T >
constexpr bool always_false = false
 
const VariantTypeId Bool = Variant::addTypeName("::armarx::BoolVariantData")
 
const VariantTypeId Double = Variant::addTypeName("::armarx::DoubleVariantData")
 
const VariantTypeId Float = Variant::addTypeName("::armarx::FloatVariantData")
 
const VariantTypeId Int = Variant::addTypeName("::armarx::IntVariantData")
 
const VariantTypeId Invalid = Variant::addTypeName("::armarx::InvalidVariantData")
 
const VariantTypeId Long = Variant::addTypeName("::armarx::LongVariantData")
 
const VariantTypeId String = Variant::addTypeName("::armarx::StringVariantData")