|
Urbi SDK Remote for C++
2.7.3
|
#include <libport/preproc.hh>#include <boost/foreach.hpp>#include <boost/lexical_cast.hpp>#include <libport/cassert>

Go to the source code of this file.
Definition in file uvalue.hxx.
| #define CONTAINER_TO_UVALUE_DECLARE | ( | Type | ) |
template <typename T> \ inline \ UValue& \ operator, (UValue &b, const Type<T> &v) \ { \ b.type = DATA_LIST; \ b.list = new UList(); \ for (typename Type<T>::const_iterator i = v.begin(), \ i_end = v.end(); \ i != i_end; ++i) \ { \ UValue r; \ r, *i; \ b.list->array.push_back(new UValue(r)); \ } \ return b; \ }
Definition at line 143 of file uvalue.hxx.
| #define OP_COMMA | ( | Type | ) |
inline \ UValue& UValue::operator, (Type rhs) \ { \ return *this = rhs; \ }
Definition at line 168 of file uvalue.hxx.
| #define ULIST_NTH | ( | Const | ) |
inline \
Const UValue& \
UList::operator[](size_t i) Const \
{ \
i += offset; \
if (i < size()) \
return *array[i]; \
else \
return UValue::error(); \
}
Definition at line 26 of file uvalue.hxx.
| #define UVALUE_CASTER_DECLARE | ( | Type | ) |
template <> \ struct URBI_SDK_API uvalue_caster<Type> \ { \ Type operator () (UValue& v); \ }
Definition at line 287 of file uvalue.hxx.
| #define UVALUE_CASTER_DEFINE | ( | Type | ) |
template <> \
struct uvalue_caster <Type> \
{ \
Type operator() (UValue& v) \
{ \
return v; \
} \
};
Definition at line 261 of file uvalue.hxx.
| #define UVALUE_CASTER_DEFINE | ( | Type | ) |
template <> \
struct uvalue_caster<Type> \
{ \
const UValue& operator()(UValue& v) \
{ \
return v; \
} \
}
Definition at line 261 of file uvalue.hxx.
| #define UVALUE_CONTAINER_CASTER_DECLARE | ( | Type | ) |
template <typename T> \ struct uvalue_caster< Type<T> > \ { \ Type<T> \ operator()(UValue& v) \ { \ Type<T> res; \ if (v.type != DATA_LIST) \ /* Cast just the element. */ \ res.push_back(uvalue_cast<T>(v)); \ else \ for (size_t i = 0; i < v.list->size(); ++i) \ res.push_back(uvalue_cast<T>(*v.list->array[i])); \ return res; \ } \ }
Definition at line 304 of file uvalue.hxx.
| #define UVALUE_INTEGRAL_CAST | ( | Type | ) |
inline \
UValue::operator Type() const \
{ \
return static_cast<Type>(static_cast<ufloat>((*this))); \
}
Definition at line 183 of file uvalue.hxx.