Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usAny.h File Reference
#include <algorithm>
#include <typeinfo>
#include <sstream>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <usGlobalConfig.h>
#include <MitkCppMicroServicesExports.h>

Go to the source code of this file.

Classes

class  us::Any
 An Any class represents a general type and is capable of storing any type, supporting type-safe extraction of the internally stored data. More...
 
class  us::BadAnyCastException
 Exception thrown when an any_cast fails due to a type mismatch. More...
 

Namespaces

 us
 

Functions

MITKCPPMICROSERVICES_EXPORT std::string us::any_value_to_string (const Any &any)
 
MITKCPPMICROSERVICES_EXPORT std::string us::any_value_to_json (const Any &val)
 
MITKCPPMICROSERVICES_EXPORT std::string us::any_value_to_json (const std::string &val)
 
MITKCPPMICROSERVICES_EXPORT std::string us::any_value_to_json (bool val)
 
template<class T >
std::string us::any_value_to_string (const T &val)
 
template<class T >
std::string us::any_value_to_json (const T &val)
 
template<typename Iterator >
std::string us::container_to_string (Iterator i1, Iterator i2)
 
template<typename Iterator >
std::string us::container_to_json (Iterator i1, Iterator i2)
 
template<class E >
std::string us::any_value_to_string (const std::vector< E > &vec)
 
template<class E >
std::string us::any_value_to_json (const std::vector< E > &vec)
 
template<class E >
std::string us::any_value_to_string (const std::list< E > &l)
 
template<class E >
std::string us::any_value_to_json (const std::list< E > &l)
 
template<class E >
std::string us::any_value_to_string (const std::set< E > &s)
 
template<class E >
std::string us::any_value_to_json (const std::set< E > &s)
 
template<class M >
std::string us::any_value_to_string (const std::map< M, Any > &m)
 
template<class K , class V >
std::string us::any_value_to_string (const std::map< K, V > &m)
 
template<class M >
std::string us::any_value_to_json (const std::map< M, Any > &m)
 
template<class K , class V >
std::string us::any_value_to_json (const std::map< K, V > &m)
 
template<typename ValueType >
ValueType * us::any_cast (Any *operand)
 any_cast operator used to extract the ValueType from an Any*. Will return a pointer to the stored value. More...
 
template<typename ValueType >
const ValueType * us::any_cast (const Any *operand)
 any_cast operator used to extract a const ValueType pointer from an const Any*. Will return a const pointer to the stored value. More...
 
template<typename ValueType >
ValueType us::any_cast (const Any &operand)
 any_cast operator used to extract a copy of the ValueType from an const Any&. More...
 
template<typename ValueType >
ValueType us::any_cast (Any &operand)
 any_cast operator used to extract a copy of the ValueType from an Any&. More...
 
template<typename ValueType >
const ValueType & us::ref_any_cast (const Any &operand)
 ref_any_cast operator used to return a const reference to the internal data. More...
 
template<typename ValueType >
ValueType & us::ref_any_cast (Any &operand)
 ref_any_cast operator used to return a reference to the internal data. More...
 
template<typename ValueType >
ValueType * us::unsafe_any_cast (Any *operand)
 
template<typename ValueType >
const ValueType * us::unsafe_any_cast (const Any *operand)
 
template<class K >
std::string us::any_value_to_string (const std::map< K, Any > &m)
 
template<class K >
std::string us::any_value_to_json (const std::map< K, Any > &m)