#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 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.
|
|
Empty constructor.
Definition at line 47 of file Teuchos_any.hpp. |
|
||||||||||
|
Templated constructor.
Definition at line 53 of file Teuchos_any.hpp. |
|
|
Copy constructor.
Definition at line 58 of file Teuchos_any.hpp. |
|
|
Destructor.
Definition at line 63 of file Teuchos_any.hpp. |
|
|
Method for swapping the contents of two any classes.
Definition at line 69 of file Teuchos_any.hpp. |
|
||||||||||
|
Copy the value
Definition at line 77 of file Teuchos_any.hpp. |
|
|
Copy the value held in
Definition at line 84 of file Teuchos_any.hpp. |
|
|
Return true if nothing is being stored.
Definition at line 91 of file Teuchos_any.hpp. |
|
|
Return the type of value being stored.
Definition at line 97 of file Teuchos_any.hpp. |
|
|
Return the name of the type.
Definition at line 103 of file Teuchos_any.hpp. |
|
|
Return if two any objects are the same or not.
Definition at line 109 of file Teuchos_any.hpp. |
|
|
Print this value to the output stream
Definition at line 122 of file Teuchos_any.hpp. |
|
||||||||||
|
Used to extract the templated value held in Teuchos::any to a given value type.
Definition at line 222 of file Teuchos_any.hpp. |
|
||||||||||
|
Used to extract the const templated value held in Teuchos::any to a given const value type.
Definition at line 257 of file Teuchos_any.hpp. |
|
|
Converts the value in
Definition at line 265 of file Teuchos_any.hpp. |
|
||||||||||||
|
Returns true if two any objects have the same value.
Definition at line 275 of file Teuchos_any.hpp. |
|
||||||||||||
|
Returns true if two any objects do not have the same value.
Definition at line 283 of file Teuchos_any.hpp. |
|
||||||||||||
|
Writes "any" input
Definition at line 291 of file Teuchos_any.hpp. |
1.3.9.1