Teuchos - Trilinos Tools Package Version of the Day
Teuchos::ArrayValidator< ValidatorType, EntryType > Class Template Reference

Takes a validator, wraps it, and applies it to an array. More...

#include <Teuchos_StandardParameterEntryValidators.hpp>

Inheritance diagram for Teuchos::ArrayValidator< ValidatorType, EntryType >:
Teuchos::AbstractArrayValidator< ValidatorType, EntryType > Teuchos::ParameterEntryValidator Teuchos::Describable Teuchos::LabeledObject

List of all members.

Public Member Functions

 ArrayValidator (RCP< const ValidatorType > prototypeValidator)
 Constructs a ArrayValidator.
Overridden from ParameterEntryValidator
virtual void validate (ParameterEntry const &entry, std::string const &paramName, std::string const &sublistName) const
const std::string getXMLTypeName () const
virtual void printDoc (std::string const &docString, std::ostream &out) const

Detailed Description

template<class ValidatorType, class EntryType>
class Teuchos::ArrayValidator< ValidatorType, EntryType >

Takes a validator, wraps it, and applies it to an array.

This class is a wrapper, allowing you to apply a normal validator to an array of values. It is templated on both the validator type and the type of the entries contained within the array.

Please see ArrayValidatorXMLConverter for documenation regarding the XML representation of this validator.

Definition at line 1820 of file Teuchos_StandardParameterEntryValidators.hpp.

Constructor & Destructor Documentation

template<class ValidatorType, class EntryType>
Teuchos::ArrayValidator< ValidatorType, EntryType >::ArrayValidator ( RCP< const ValidatorType >  prototypeValidator) [inline]

Constructs a ArrayValidator.

prototypeValidatorThe validator to be used on each entry in the array.

Definition at line 1832 of file Teuchos_StandardParameterEntryValidators.hpp.

Member Function Documentation

template<class ValidatorType , class EntryType >
void Teuchos::ArrayValidator< ValidatorType, EntryType >::validate ( ParameterEntry const &  entry,
std::string const &  paramName,
std::string const &  sublistName 
) const [virtual]
template<class ValidatorType, class EntryType>
const std::string Teuchos::ArrayValidator< ValidatorType, EntryType >::getXMLTypeName ( ) const [inline, virtual]
template<class ValidatorType, class EntryType>
virtual void Teuchos::ArrayValidator< ValidatorType, EntryType >::printDoc ( std::string const &  docString,
std::ostream &  out 
) const [inline, virtual]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines