#include <Teuchos_any.hpp>
Public Member Functions | |
any () | |
Empty constructor. | |
template<typename ValueType > | |
any (const ValueType &value) | |
Templated constructor. | |
any (const any &other) | |
Copy constructor. | |
~any () | |
Destructor. | |
any & | swap (any &rhs) |
Method for swapping the contents of two any classes. | |
template<typename ValueType > | |
any & | operator= (const ValueType &rhs) |
Copy the value rhs . | |
any & | operator= (const any &rhs) |
Copy the value held in rhs . | |
bool | empty () const |
Return true if nothing is being stored. | |
const std::type_info & | type () const |
Return the type of value being stored. | |
std::string | typeName () const |
Return the name of the type. | |
bool | same (const any &other) const |
Return if two any objects are the same or not. | |
void | print (std::ostream &os) const |
Print this value to the output stream os . | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename ValueType > | |
ValueType & | any_cast (any &operand) |
Used to extract the templated value held in Teuchos::any to a given value type. | |
template<typename ValueType > | |
const ValueType & | any_cast (const any &operand) |
Used to extract the const templated value held in Teuchos::any to a given const value type. | |
std::string | toString (const any &rhs) |
Converts the value in any to a std::string. | |
bool | operator== (const any &a, const any &b) |
Returns true if two any objects have the same value. | |
bool | operator!= (const any &a, const any &b) |
Returns true if two any objects do not have the same value. | |
std::ostream & | operator<< (std::ostream &os, const any &rhs) |
Writes "any" input rhs to the output stream os . |
Definition at line 43 of file Teuchos_any.hpp.
Teuchos::any::any | ( | ) | [inline] |
Teuchos::any::any | ( | const ValueType & | value | ) | [inline, explicit] |
Teuchos::any::any | ( | const any & | other | ) | [inline] |
Teuchos::any::~any | ( | ) | [inline] |
bool Teuchos::any::empty | ( | ) | const [inline] |
any& Teuchos::any::operator= | ( | const ValueType & | rhs | ) | [inline] |
void Teuchos::any::print | ( | std::ostream & | os | ) | const [inline] |
bool Teuchos::any::same | ( | const any & | other | ) | const [inline] |
const std::type_info& Teuchos::any::type | ( | ) | const [inline] |
std::string Teuchos::any::typeName | ( | ) | const [inline] |
const ValueType & any_cast | ( | const any & | operand | ) | [related] |
Used to extract the const templated value held in Teuchos::any to a given const value type.
Definition at line 258 of file Teuchos_any.hpp.
ValueType & any_cast | ( | any & | operand | ) | [related] |
Used to extract the templated value held in Teuchos::any to a given value type.
Definition at line 222 of file Teuchos_any.hpp.
Returns true if two any objects do not have the same value.
Definition at line 284 of file Teuchos_any.hpp.
std::ostream & operator<< | ( | std::ostream & | os, | |
const any & | rhs | |||
) | [related] |
Returns true if two any objects have the same value.
Definition at line 276 of file Teuchos_any.hpp.
std::string toString | ( | const any & | rhs | ) | [related] |
Converts the value in any
to a std::string.
Definition at line 266 of file Teuchos_any.hpp.