![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <any.h>
Public Member Functions | |
| 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 () | |
| Destructor. 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 > | |
| any_t & | operator= (const T &x) |
| Assignment operator. More... | |
| any & | operator= (const char *x) |
| any & | swap (any &x) |
| Utility functions. 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 | empty () const |
| Returns true if the any contains no value. More... | |
| void | reset () |
| Frees any allocated memory, and sets the value to NULL. More... | |
| bool | compatible (const any &x) const |
| Returns true if the two types are the same. More... | |
| template<typename T > | |
| bool | has_type () |
| Returns if the type is compatible with the policy. More... | |
| const std::type_info & | type () const |
|
inline |
|
inline |
|
inline |
|
inline |
Destructor.
Definition at line 190 of file any.h.
References flann::anyimpl::base_any_policy::static_delete().
Assignment function from another any.
Definition at line 196 of file any.h.
References flann::anyimpl::base_any_policy::clone(), and reset().
Referenced by any(), and operator=().
|
inline |
Assignment function.
Definition at line 206 of file any.h.
References flann::anyimpl::base_any_policy::copy_from_value(), and reset().
|
inline |
Cast operator. You can only cast to the original type.
Definition at line 238 of file any.h.
References flann::anyimpl::base_any_policy::get_value(), and flann::anyimpl::base_any_policy::type().
|
inline |
Cast operator. You can only cast to the original type.
Definition at line 247 of file any.h.
References flann::anyimpl::base_any_policy::get_value(), and flann::anyimpl::base_any_policy::type().
|
inline |
Returns true if the two types are the same.
Definition at line 268 of file any.h.
References flann::anyimpl::base_any_policy::type().
|
inline |
Returns true if the any contains no value.
Definition at line 255 of file any.h.
References flann::anyimpl::base_any_policy::type().
|
inline |
Returns if the type is compatible with the policy.
Definition at line 275 of file any.h.
References flann::anyimpl::base_any_policy::type().
|
inline |
|
inline |
|
inline |
Frees any allocated memory, and sets the value to NULL.
Definition at line 261 of file any.h.
References flann::anyimpl::base_any_policy::static_delete().
Referenced by assign().
|
inline |
Definition at line 280 of file any.h.
References flann::anyimpl::base_any_policy::type().