10#ifndef Teuchos_VALIDATORMAPS_HPP
11#define Teuchos_VALIDATORMAPS_HPP
17#include "Teuchos_ParameterEntryValidator.hpp"
60 return validatorMap.erase(x);
65 ValidatorMap validatorMap;
75 typedef std::map<RCP<const ParameterEntryValidator>, int,
RCPComp>
Maps Validators to integers.
const_iterator end() const
Returns a const_reference to the end of the map.
const_iterator begin() const
Returns a const_reference to the beginning of the map.
ValidatorMap::const_iterator const_iterator
size_t erase(const ParameterEntryValidator::ValidatorID &x)
removes the specified validator from the map.
std::pair< ParameterEntryValidator::ValidatorID, RCP< ParameterEntryValidator > > IDValidatorPair
std::map< ParameterEntryValidator::ValidatorID, RCP< ParameterEntryValidator > > ValidatorMap
ValidatorMap::iterator iterator
const_iterator find(int id) const
Retrieves and iterator to a validator and id based on the id given.
void insert(IDValidatorPair toInsert)
inserts an IDValidatorPair into the map.
Smart reference counting pointer class for automatic garbage collection.
std::pair< RCP< const ParameterEntryValidator >, int > ValidatorIDPair
const_iterator end() const
Returns a const_reference to the end of the map.
void insert(RCP< const ParameterEntryValidator > toInsert)
inserts an IDValidatorPair into the map.
std::map< RCP< const ParameterEntryValidator >, int, RCPComp > ValidatorMap
ValidatorMap::const_iterator const_iterator
const_iterator find(const RCP< const ParameterEntryValidator > validator) const
Returns an iterator to the validator and id specified by the validator.
ValidatorMap::iterator iterator
const_iterator begin() const
Returns a const_reference to the beginning of the map.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Struct for comparing two RCPs. Simply compares the raw pointers contained within the RCPs.