Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
Teuchos::IDtoValidatorMap Class Reference

Maps Validators to integers. More...

#include <Teuchos_ValidatorMaps.hpp>

Public Types

typedef std::map
< ParameterEntryValidator::ValidatorID,
RCP< ParameterEntryValidator > > 
ValidatorMap
 
typedef std::pair
< ParameterEntryValidator::ValidatorID,
RCP< ParameterEntryValidator > > 
IDValidatorPair
 
typedef ValidatorMap::iterator iterator
 
typedef
ValidatorMap::const_iterator 
const_iterator
 

Public Member Functions

void insert (IDValidatorPair toInsert)
 inserts an IDValidatorPair into the map. More...
 
const_iterator find (int id) const
 Retrieves and iterator to a validator and id based on the id given. More...
 
const_iterator begin () const
 Returns a const_reference to the beginning of the map. More...
 
const_iterator end () const
 Returns a const_reference to the end of the map. More...
 
size_t erase (const ParameterEntryValidator::ValidatorID &x)
 removes the specified validator from the map. More...
 

Private Attributes

ValidatorMap validatorMap
 

Detailed Description

Maps Validators to integers.

Definition at line 24 of file Teuchos_ValidatorMaps.hpp.

Member Typedef Documentation

Definition at line 29 of file Teuchos_ValidatorMaps.hpp.

Definition at line 33 of file Teuchos_ValidatorMaps.hpp.

typedef ValidatorMap::iterator Teuchos::IDtoValidatorMap::iterator

Definition at line 36 of file Teuchos_ValidatorMaps.hpp.

typedef ValidatorMap::const_iterator Teuchos::IDtoValidatorMap::const_iterator

Definition at line 39 of file Teuchos_ValidatorMaps.hpp.

Member Function Documentation

void Teuchos::IDtoValidatorMap::insert ( IDValidatorPair  toInsert)

inserts an IDValidatorPair into the map.

Definition at line 15 of file Teuchos_ValidatorMaps.cpp.

IDtoValidatorMap::const_iterator Teuchos::IDtoValidatorMap::find ( int  id) const

Retrieves and iterator to a validator and id based on the id given.

If no validator is found that has been mappend to the given id, a reference to the end of the map is returned.

Definition at line 21 of file Teuchos_ValidatorMaps.cpp.

IDtoValidatorMap::const_iterator Teuchos::IDtoValidatorMap::begin ( ) const

Returns a const_reference to the beginning of the map.

Definition at line 27 of file Teuchos_ValidatorMaps.cpp.

IDtoValidatorMap::const_iterator Teuchos::IDtoValidatorMap::end ( ) const

Returns a const_reference to the end of the map.

Definition at line 33 of file Teuchos_ValidatorMaps.cpp.

size_t Teuchos::IDtoValidatorMap::erase ( const ParameterEntryValidator::ValidatorID x)
inline

removes the specified validator from the map.

Definition at line 59 of file Teuchos_ValidatorMaps.hpp.

Member Data Documentation

ValidatorMap Teuchos::IDtoValidatorMap::validatorMap
private

Definition at line 65 of file Teuchos_ValidatorMaps.hpp.


The documentation for this class was generated from the following files: