Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
Public Member Functions | Private Attributes | List of all members
Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes Class Reference

Determines the types that are accepted. More...

#include <Teuchos_StandardParameterEntryValidators.hpp>

Public Member Functions

 AcceptedTypes (bool allowAllTypesByDefault=true)
 Allow all types or not on construction. More...
 
AcceptedTypesallowInt (bool _allowInt)
 Set allow an int value or not. More...
 
AcceptedTypesallowDouble (bool _allowDouble)
 Set allow a double value or not. More...
 
AcceptedTypesallowString (bool _allowString)
 Set allow an std::string value or not. More...
 
bool allowInt () const
 Allow an int value? More...
 
bool allowDouble () const
 Allow an double value? More...
 
bool allowString () const
 Allow an std::string value? More...
 

Private Attributes

bool allowInt_
 
bool allowDouble_
 
bool allowString_
 

Detailed Description

Determines the types that are accepted.

Definition at line 722 of file Teuchos_StandardParameterEntryValidators.hpp.

Constructor & Destructor Documentation

◆ AcceptedTypes()

Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::AcceptedTypes ( bool  allowAllTypesByDefault = true)
inline

Allow all types or not on construction.

Definition at line 725 of file Teuchos_StandardParameterEntryValidators.hpp.

Member Function Documentation

◆ allowInt() [1/2]

AcceptedTypes& Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowInt ( bool  _allowInt)
inline

Set allow an int value or not.

Definition at line 730 of file Teuchos_StandardParameterEntryValidators.hpp.

◆ allowDouble() [1/2]

AcceptedTypes& Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowDouble ( bool  _allowDouble)
inline

Set allow a double value or not.

Definition at line 733 of file Teuchos_StandardParameterEntryValidators.hpp.

◆ allowString() [1/2]

AcceptedTypes& Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowString ( bool  _allowString)
inline

Set allow an std::string value or not.

Definition at line 736 of file Teuchos_StandardParameterEntryValidators.hpp.

◆ allowInt() [2/2]

bool Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowInt ( ) const
inline

Allow an int value?

Definition at line 739 of file Teuchos_StandardParameterEntryValidators.hpp.

◆ allowDouble() [2/2]

bool Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowDouble ( ) const
inline

Allow an double value?

Definition at line 741 of file Teuchos_StandardParameterEntryValidators.hpp.

◆ allowString() [2/2]

bool Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowString ( ) const
inline

Allow an std::string value?

Definition at line 743 of file Teuchos_StandardParameterEntryValidators.hpp.

Member Data Documentation

◆ allowInt_

bool Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowInt_
private

◆ allowDouble_

bool Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowDouble_
private

◆ allowString_

bool Teuchos::AnyNumberParameterEntryValidator::AcceptedTypes::allowString_
private

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