#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. | |
|
|
Empty constructor.
|
|
||||||||||
|
Templated constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Method for swapping the contents of two any classes.
|
|
||||||||||
|
Copy the value
|
|
|
Copy the value held in
|
|
|
Return true if nothing is being stored.
|
|
|
Return the type of value being stored.
|
|
|
Return the name of the type.
|
|
|
Return if two any objects are the same or not.
|
|
|
Print this value to the output stream
|
|
||||||||||
|
Used to extract the templated value held in Teuchos::any to a given value type.
|
|
||||||||||
|
Used to extract the const templated value held in Teuchos::any to a given const value type.
|
|
|
Converts the value in
|
|
||||||||||||
|
Returns true if two any objects have the same value.
|
|
||||||||||||
|
Returns true if two any objects do not have the same value.
|
|
||||||||||||
|
Writes "any" input
|
1.3.9.1