#include <any.h>
|
template<typename T > |
| any (const T &x) |
| Initializing constructor. More...
|
|
| any () |
| Empty constructor. More...
|
|
| any (const char *x) |
| Special initializing constructor for string literals. More...
|
|
| any (const any &x) |
| Copy constructor. More...
|
|
any & | assign (const any &x) |
| Assignment function from another any. More...
|
|
template<typename T > |
any_t & | assign (const T &x) |
| Assignment function. More...
|
|
template<typename T > |
T & | cast () |
| Cast operator. You can only cast to the original type. More...
|
|
template<typename T > |
const T & | cast () const |
| Cast operator. You can only cast to the original type. More...
|
|
bool | compatible (const any &x) const |
| Returns true if the two types are the same. More...
|
|
bool | empty () const |
| Returns true if the any contains no value. More...
|
|
template<typename T > |
bool | has_type () |
| Returns if the type is compatible with the policy. More...
|
|
template<typename T > |
any_t & | operator= (const T &x) |
| Assignment operator. More...
|
|
any & | operator= (const char *x) |
|
void | reset () |
| Frees any allocated memory, and sets the value to NULL. More...
|
|
any & | swap (any &x) |
| Utility functions. More...
|
|
const std::type_info & | type () const |
|
| ~any () |
| Destructor. More...
|
|
|
std::ostream & | operator<< (std::ostream &out, const any &any_val) |
|
Definition at line 151 of file any.h.
template<typename T >
rtflann::any::any |
( |
const T & |
x | ) |
|
|
inline |
Initializing constructor.
Definition at line 162 of file any.h.
Empty constructor.
Definition at line 169 of file any.h.
rtflann::any::any |
( |
const char * |
x | ) |
|
|
inline |
Special initializing constructor for string literals.
Definition at line 174 of file any.h.
rtflann::any::any |
( |
const any & |
x | ) |
|
|
inline |
Copy constructor.
Definition at line 181 of file any.h.
Destructor.
Definition at line 188 of file any.h.
any& rtflann::any::assign |
( |
const any & |
x | ) |
|
|
inline |
Assignment function from another any.
Definition at line 194 of file any.h.
template<typename T >
any_t& rtflann::any::assign |
( |
const T & |
x | ) |
|
|
inline |
Assignment function.
Definition at line 204 of file any.h.
template<typename T >
T& rtflann::any::cast |
( |
| ) |
|
|
inline |
Cast operator. You can only cast to the original type.
Definition at line 236 of file any.h.
template<typename T >
const T& rtflann::any::cast |
( |
| ) |
const |
|
inline |
Cast operator. You can only cast to the original type.
Definition at line 245 of file any.h.
bool rtflann::any::compatible |
( |
const any & |
x | ) |
const |
|
inline |
Returns true if the two types are the same.
Definition at line 266 of file any.h.
bool rtflann::any::empty |
( |
| ) |
const |
|
inline |
Returns true if the any contains no value.
Definition at line 253 of file any.h.
template<typename T >
bool rtflann::any::has_type |
( |
| ) |
|
|
inline |
Returns if the type is compatible with the policy.
Definition at line 273 of file any.h.
template<typename T >
any_t& rtflann::any::operator= |
( |
const T & |
x | ) |
|
|
inline |
Assignment operator.
Definition at line 214 of file any.h.
any& rtflann::any::operator= |
( |
const char * |
x | ) |
|
|
inline |
Assignment operator, specialed for literal strings. They have types like const char [6] which don't work as expected.
Definition at line 221 of file any.h.
void rtflann::any::reset |
( |
| ) |
|
|
inline |
Frees any allocated memory, and sets the value to NULL.
Definition at line 259 of file any.h.
any& rtflann::any::swap |
( |
any & |
x | ) |
|
|
inline |
Utility functions.
Definition at line 227 of file any.h.
const std::type_info& rtflann::any::type |
( |
| ) |
const |
|
inline |
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const any & |
any_val |
|
) |
| |
|
friend |
void* rtflann::any::object |
|
private |
The documentation for this class was generated from the following file: