Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
A simple aggregate type to bind a key string and and objects value. More...
#include <Teuchos_StringIndexedOrderedValueObjectContainer.hpp>
Public Member Functions | |
KeyObjectPair () | |
KeyObjectPair (const std::string &key_in, const ObjType &obj_in, bool isActive_in=true) | |
KeyObjectPair (const KeyObjectPair< ObjType > &kop) | |
KeyObjectPair< ObjType > & | operator= (const KeyObjectPair< ObjType > &kop) |
bool | isActive () const |
Static Public Member Functions | |
static KeyObjectPair< ObjType > | makeInvalid () |
Public Attributes | |
const std::string & | first |
ObjType | second |
std::string | key |
Private Attributes | |
bool | isActive_ |
A simple aggregate type to bind a key string and and objects value.
This is meant to be a drop-in replacement for std::pair<std::string, ObjType>. That is why the key and the object are called 'first' and 'second'.
Note that there is no invariant on the key and the object value so there is no need to encapsulate them. This is good because we can't since we need to provide 'first' and 'second' as raw data members to match std::pair. However, we don't want to allow users to be able to change the 'first' key string (like you can't with the std::map::value_type returned in the iterator) so we use a const reference for 'first'.
Definition at line 106 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
|
inline |
Definition at line 115 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
|
inline |
Definition at line 117 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
|
inline |
Definition at line 120 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
|
inline |
Definition at line 123 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
|
inlinestatic |
Definition at line 131 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
|
inline |
Definition at line 134 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
const std::string& Teuchos::StringIndexedOrderedValueObjectContainerBase::KeyObjectPair< ObjType >::first |
Definition at line 109 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
ObjType Teuchos::StringIndexedOrderedValueObjectContainerBase::KeyObjectPair< ObjType >::second |
Definition at line 111 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
std::string Teuchos::StringIndexedOrderedValueObjectContainerBase::KeyObjectPair< ObjType >::key |
Definition at line 113 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.
|
private |
Definition at line 136 of file Teuchos_StringIndexedOrderedValueObjectContainer.hpp.