|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Modified boost::any class, which is a container for a templated value. More...
#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 | |
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::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. | |
Modified boost::any class, which is a container for a templated value.
Definition at line 86 of file Teuchos_any.hpp.
| Teuchos::any::any | ( | ) | [inline] |
Empty constructor.
Definition at line 90 of file Teuchos_any.hpp.
| Teuchos::any::any | ( | const ValueType & | value | ) | [inline, explicit] |
Templated constructor.
Definition at line 96 of file Teuchos_any.hpp.
| Teuchos::any::any | ( | const any & | other | ) | [inline] |
Copy constructor.
Definition at line 101 of file Teuchos_any.hpp.
| Teuchos::any::~any | ( | ) | [inline] |
Destructor.
Definition at line 106 of file Teuchos_any.hpp.
| any& Teuchos::any::swap | ( | any & | rhs | ) | [inline] |
Method for swapping the contents of two any classes.
Definition at line 112 of file Teuchos_any.hpp.
| any& Teuchos::any::operator= | ( | const ValueType & | rhs | ) | [inline] |
Copy the value rhs
Definition at line 120 of file Teuchos_any.hpp.
Copy the value held in rhs
Definition at line 127 of file Teuchos_any.hpp.
| bool Teuchos::any::empty | ( | ) | const [inline] |
Return true if nothing is being stored.
Definition at line 134 of file Teuchos_any.hpp.
| const std::type_info& Teuchos::any::type | ( | ) | const [inline] |
Return the type of value being stored.
Definition at line 140 of file Teuchos_any.hpp.
| std::string Teuchos::any::typeName | ( | ) | const [inline] |
Return the name of the type.
Definition at line 146 of file Teuchos_any.hpp.
| bool Teuchos::any::same | ( | const any & | other | ) | const [inline] |
Return if two any objects are the same or not.
Definition at line 152 of file Teuchos_any.hpp.
| void Teuchos::any::print | ( | std::ostream & | os | ) | const [inline] |
Print this value to the output stream os
Definition at line 165 of file Teuchos_any.hpp.
Used to extract the templated value held in Teuchos::any to a given value type.
Definition at line 265 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 301 of file Teuchos_any.hpp.
Converts the value in any to a std::string.
Definition at line 309 of file Teuchos_any.hpp.
Returns true if two any objects have the same value.
Definition at line 319 of file Teuchos_any.hpp.
Returns true if two any objects do not have the same value.
Definition at line 327 of file Teuchos_any.hpp.
| std::ostream & operator<< | ( | std::ostream & | os, |
| const any & | rhs | ||
| ) | [related] |
Writes "any" input rhs to the output stream os.
Definition at line 335 of file Teuchos_any.hpp.
placeholder* Teuchos::any::content [private] |
Definition at line 243 of file Teuchos_any.hpp.
1.7.6.1