#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. | |
| void | print (std::ostream &os) const |
Print this value to the output stream os. | |
Private Attributes | |
| placeholder * | content |
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::ostream & | operator<< (std::ostream &os, const any &rhs) |
Writes "any" input rhs to the output stream os. | |
Definition at line 47 of file Teuchos_any.hpp.
|
|
Empty constructor.
Definition at line 51 of file Teuchos_any.hpp. |
|
||||||||||
|
Templated constructor.
Definition at line 57 of file Teuchos_any.hpp. |
|
|
Copy constructor.
Definition at line 62 of file Teuchos_any.hpp. |
|
|
Destructor.
Definition at line 67 of file Teuchos_any.hpp. |
|
|
Method for swapping the contents of two any classes.
Definition at line 73 of file Teuchos_any.hpp. |
|
||||||||||
|
Copy the value
Definition at line 81 of file Teuchos_any.hpp. |
|
|
Copy the value held in
Definition at line 88 of file Teuchos_any.hpp. |
|
|
Return true if nothing is being stored.
Definition at line 95 of file Teuchos_any.hpp. |
|
|
Return the type of value being stored.
Definition at line 101 of file Teuchos_any.hpp. |
|
|
Print this value to the output stream
Definition at line 107 of file Teuchos_any.hpp. |
|
||||||||||
|
Used to extract the templated value held in Teuchos::any to a given value type.
Definition at line 189 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 218 of file Teuchos_any.hpp. |
|
||||||||||||
|
Writes "any" input
Definition at line 227 of file Teuchos_any.hpp. |
|
|
Definition at line 167 of file Teuchos_any.hpp. |
1.3.9.1