89 this->
val_ = std::move(other.val_);
92 this->
docString_ = std::move(other.docString_);
93 this->
validator_ = std::move(other.validator_);
99 const any &value_in,
bool isDefault_in
125 bool isDefault_in,
const std::string &docString_in
157 size_t starPos = formatString.find(
"*");
158 std::string prefix = formatString.substr(0,starPos);
159 std::string postfix = formatString.substr(starPos+1);
161 size_t prePos = valueTypeName.find(prefix);
162 size_t postPos = valueTypeName.find(postfix);
163 return (prePos != std::string::npos) && (prePos==0)
164 && (postPos != std::string::npos) && (prePos < postPos);
169 size_t starPos = formatString.find(
"*");
170 std::string prefix = formatString.substr(0,starPos);
171 std::string postfix = formatString.substr(starPos+1);
173 size_t prePos = valueTypeName.find(prefix);
174 size_t postPos = valueTypeName.find(postfix);
175 return (prePos != std::string::npos) && (prePos==0)
176 && (postPos != std::string::npos) && (prePos < postPos);
Object held as the "value" in the Teuchos::ParameterList std::map.
Templated Parameter List class.
A thin wrapper around the Teuchos Array class that allows for 2 dimensional arrays.
std::string getArrayTypeNameTraitsFormat()
Get the format that is used for the specialization of the TypeName traits class for Array.
void setValidator(RCP< const ParameterEntryValidator > const &validator)
Set the validator.
std::string docString_
Optional documentation field.
bool isDefault_
Was this parameter a default value assigned by a "get" function?
ParameterList & setList(bool isDefault=false, const std::string &docString="")
Create a parameter entry that is an empty list.
ParameterEntry & operator=(const ParameterEntry &source)
Replace the current parameter entry with source.
RCP< const ParameterEntryValidator > validator_
Optional validator object.
ParameterEntry()
Default Constructor.
bool isTwoDArray() const
Test if the type of data being contained is a Teuchos::TwoDArray.
bool isArray() const
Test if the type of data being contained is a Teuchos::Array.
std::ostream & leftshift(std::ostream &os, bool printFlags=true) const
Output a non-list parameter to the given output stream.
void setDocString(const std::string &docString)
Set the documentation std::string.
bool isUsed_
Has this parameter been accessed by a "get" function?
void reset()
Reset the entry.
bool isList() const
Return whether or not the value itself is a list.
any val_
Templated Datatype.
void setAnyValue(const any &value, bool isDefault=false)
Set the value as an any object.
A list of parameters of arbitrary type.
ParameterList()=default
Constructor.
Smart reference counting pointer class for automatic garbage collection.
std::string getTwoDArrayTypeNameTraitsFormat()
Get the format that is used for the specialization of the TypeName traits class for TwoDArray.
Modified boost::any class, which is a container for a templated value.
ValueType & any_cast(any &operand)
Used to extract the templated value held in Teuchos::any to a given value type.
std::string typeName() const
Return the name of the type.
const std::type_info & type() const
Return the type of value being stored.
bool has_value() const
Checks whether the object contains a value.