42#ifndef TEUCHOS_STRING_TO_INT_MAP_HPP
43#define TEUCHOS_STRING_TO_INT_MAP_HPP
45#include "Teuchos_Assert.hpp"
112 int get(
const std::string&
option,
const std::string& groupName =
"" )
const;
115 template<
class EnumType>
116 EnumType get(
const std::string&
option,
const std::string& groupName =
"" )
const;
123 typedef std::map< std::string, int > map_t;
124 std::string defaultGroupName_;
127 std::string validSelections()
const;
137template<
class EnumType>
141 ,std::string
const&
option
142 ,std::string
const& groupName =
""
151template<
class EnumType>
161 return defaultGroupName_;
Smart reference counting pointer class for automatic garbage collection.
T * get() const
Get the raw C++ pointer to the underlying object.
Map a std::string to an enumeration.
EnumType get(StringToIntMap const &theMap, std::string const &option, std::string const &groupName="")
Nonmember get function.
int get(const std::string &option, const std::string &groupName="") const
const std::string & defaultGroupName() const
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...