| 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.  More... | |
| template<typename ValueType > | |
| any (ValueType &&value) | |
| Templated constructor.  More... | |
| any (const any &other) | |
| Copy constructor.  More... | |
| any (any &&other) | |
| Move constructor.  More... | |
| ~any () | |
| Destructor.  More... | |
| any & | swap (any &rhs) | 
| Method for swapping the contents of two any classes.  More... | |
| template<typename ValueType > | |
| any & | operator= (const ValueType &rhs) | 
| Copy the value rhsMore... | |
| any & | operator= (const any &rhs) | 
| Copy the value held in rhsMore... | |
| any & | operator= (any &&other) | 
| Move-assignment operator.  More... | |
| TEUCHOS_DEPRECATED bool | empty () const | 
| Return true if nothing is being stored.  More... | |
| bool | has_value () const | 
| Checks whether the object contains a value.  More... | |
| const std::type_info & | type () const | 
| Return the type of value being stored.  More... | |
| std::string | typeName () const | 
| Return the name of the type.  More... | |
| bool | same (const any &other) const | 
| Return if two any objects are the same or not.  More... | |
| void | print (std::ostream &os) const | 
| Print this value to the output stream osMore... | |
| 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.  More... | |
| 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.  More... | |
| template<typename ValueType > | |
| ValueType * | any_cast (any *operand) | 
| template<typename ValueType > | |
| ValueType | any_cast (any &&operand) | 
| template<typename ValueType > | |
| ValueType & | any_ref_cast (any &operand) | 
| Keep the convenient behavior of Teuchos::any_cast w.r.t. references, but don't confuse it with the behavior for C++17 std::any_cast.  More... | |
| std::string | toString (const any &rhs) | 
| Converts the value in anyto a std::string.  More... | |
| bool | operator== (const any &a, const any &b) | 
| Returns true if two any objects have the same value.  More... | |
| bool | operator!= (const any &a, const any &b) | 
| Returns true if two any objects do not have the same value.  More... | |
| std::ostream & | operator<< (std::ostream &os, const any &rhs) | 
| Writes "any" input rhsto the output streamos.  More... | |
| void | swap (Teuchos::any &a, Teuchos::any &b) | 
| Special swap for other code to find via Argument Dependent Lookup.  More... | |
| template<typename T > | |
| T & | make_any_ref (any &rhs) | 
| Default constructs a new T value and returns a reference to it.  More... | |
Modified boost::any class, which is a container for a templated value.
Definition at line 122 of file Teuchos_any.hpp.
| 
 | inline | 
Empty constructor.
Definition at line 126 of file Teuchos_any.hpp.
| 
 | inlineexplicit | 
Templated constructor.
Definition at line 132 of file Teuchos_any.hpp.
| 
 | inline | 
Copy constructor.
Definition at line 137 of file Teuchos_any.hpp.
| 
 | inline | 
Move constructor.
Definition at line 142 of file Teuchos_any.hpp.
| 
 | inline | 
Destructor.
Definition at line 147 of file Teuchos_any.hpp.
Method for swapping the contents of two any classes.
Definition at line 153 of file Teuchos_any.hpp.
| 
 | inline | 
Copy the value rhs 
Definition at line 161 of file Teuchos_any.hpp.
Copy the value held in rhs 
Definition at line 168 of file Teuchos_any.hpp.
Move-assignment operator.
Definition at line 175 of file Teuchos_any.hpp.
| 
 | inline | 
Return true if nothing is being stored.
Definition at line 186 of file Teuchos_any.hpp.
| 
 | inline | 
Checks whether the object contains a value.
Definition at line 192 of file Teuchos_any.hpp.
| 
 | inline | 
Return the type of value being stored.
Definition at line 195 of file Teuchos_any.hpp.
| 
 | inline | 
Return the name of the type.
Definition at line 201 of file Teuchos_any.hpp.
| 
 | inline | 
Return if two any objects are the same or not.
Definition at line 210 of file Teuchos_any.hpp.
| 
 | inline | 
Print this value to the output stream os 
Definition at line 226 of file Teuchos_any.hpp.
| 
 | related | 
Used to extract the templated value held in Teuchos::any to a given value type.
Definition at line 327 of file Teuchos_any.hpp.
| 
 | related | 
Used to extract the const templated value held in Teuchos::any to a given const value type.
Definition at line 363 of file Teuchos_any.hpp.
| 
 | related | 
Definition at line 372 of file Teuchos_any.hpp.
| 
 | related | 
Definition at line 381 of file Teuchos_any.hpp.
| 
 | related | 
Keep the convenient behavior of Teuchos::any_cast w.r.t. references, but don't confuse it with the behavior for C++17 std::any_cast.
Definition at line 396 of file Teuchos_any.hpp.
| 
 | related | 
Converts the value in any to a std::string. 
Definition at line 406 of file Teuchos_any.hpp.
Returns true if two any objects have the same value.
Definition at line 418 of file Teuchos_any.hpp.
Returns true if two any objects do not have the same value.
Definition at line 428 of file Teuchos_any.hpp.
| 
 | related | 
Writes "any" input rhs to the output stream os. 
Definition at line 438 of file Teuchos_any.hpp.
| 
 | related | 
Special swap for other code to find via Argument Dependent Lookup.
Definition at line 447 of file Teuchos_any.hpp.
| 
 | related | 
Default constructs a new T value and returns a reference to it.
Definition at line 455 of file Teuchos_any.hpp.
| 
 | private | 
Definition at line 305 of file Teuchos_any.hpp.
 1.8.5
 1.8.5