Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
#include <usAny.h>
Public Member Functions | |
Any () | |
template<typename ValueType > | |
Any (const ValueType &value) | |
Any (const Any &other) | |
~Any () | |
Any & | Swap (Any &rhs) |
template<typename ValueType > | |
Any & | operator= (const ValueType &rhs) |
Any & | operator= (const Any &rhs) |
bool | Empty () const |
std::string | ToString () const |
std::string | ToJSON () const |
const std::type_info & | Type () const |
An Any class represents a general type and is capable of storing any type, supporting type-safe extraction of the internally stored data.
Code taken from the Boost 1.46.1 library. Original copyright by Kevlin Henney. Modified for CppMicroServices.
|
inline |
|
inline |
|
inline |
|
inline |
Swaps the content of the two Anys.
Definition at line 208 of file usAny.h.
References mitk::swap().
Referenced by operator=().
|
inline |
|
inline |
|
inline |
Returns the type information of the stored content. If the Any is empty typeid(void) is returned. It is suggested to always query an Any for its type info before trying to extract data via an any_cast/ref_any_cast.
Definition at line 278 of file usAny.h.
Referenced by us::any_cast().