#include <any.h>
|
std::ostream & | operator<< (std::ostream &out, const any &any_val) |
|
Definition at line 153 of file any.h.
◆ any_t
◆ any() [1/4]
template<typename T >
rtflann::any::any |
( |
const T & |
x | ) |
|
|
inline |
Initializing constructor.
Definition at line 164 of file any.h.
◆ any() [2/4]
Empty constructor.
Definition at line 171 of file any.h.
◆ any() [3/4]
rtflann::any::any |
( |
const char * |
x | ) |
|
|
inline |
Special initializing constructor for string literals.
Definition at line 176 of file any.h.
◆ any() [4/4]
rtflann::any::any |
( |
const any & |
x | ) |
|
|
inline |
Copy constructor.
Definition at line 183 of file any.h.
◆ ~any()
Destructor.
Definition at line 190 of file any.h.
◆ assign() [1/2]
any& rtflann::any::assign |
( |
const any & |
x | ) |
|
|
inline |
Assignment function from another any.
Definition at line 196 of file any.h.
◆ assign() [2/2]
template<typename T >
any_t& rtflann::any::assign |
( |
const T & |
x | ) |
|
|
inline |
Assignment function.
Definition at line 206 of file any.h.
◆ cast() [1/2]
template<typename T >
T& rtflann::any::cast |
( |
| ) |
|
|
inline |
Cast operator. You can only cast to the original type.
Definition at line 238 of file any.h.
◆ cast() [2/2]
template<typename T >
const T& rtflann::any::cast |
( |
| ) |
const |
|
inline |
Cast operator. You can only cast to the original type.
Definition at line 247 of file any.h.
◆ compatible()
bool rtflann::any::compatible |
( |
const any & |
x | ) |
const |
|
inline |
Returns true if the two types are the same.
Definition at line 268 of file any.h.
◆ empty()
bool rtflann::any::empty |
( |
| ) |
const |
|
inline |
Returns true if the any contains no value.
Definition at line 255 of file any.h.
◆ has_type()
template<typename T >
bool rtflann::any::has_type |
( |
| ) |
|
|
inline |
Returns if the type is compatible with the policy.
Definition at line 275 of file any.h.
◆ operator=() [1/2]
template<typename T >
any_t& rtflann::any::operator= |
( |
const T & |
x | ) |
|
|
inline |
Assignment operator.
Definition at line 216 of file any.h.
◆ operator=() [2/2]
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 223 of file any.h.
◆ reset()
void rtflann::any::reset |
( |
| ) |
|
|
inline |
Frees any allocated memory, and sets the value to NULL.
Definition at line 261 of file any.h.
◆ swap()
any& rtflann::any::swap |
( |
any & |
x | ) |
|
|
inline |
Utility functions.
Definition at line 229 of file any.h.
◆ type()
const std::type_info& rtflann::any::type |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const any & |
any_val |
|
) |
| |
|
friend |
◆ object
void* rtflann::any::object |
|
private |
◆ policy
The documentation for this class was generated from the following file: