43 #ifndef TEUCHOS_FUNTIONOBJECTXMLCONVERTERDB_HPP
44 #define TEUCHOS_FUNTIONOBJECTXMLCONVERTERDB_HPP
74 static void addConverter(
101 getConverter(
const XMLObject& xmlObject);
132 out <<
"Known ConditionXMLConverters: " << std::endl;
134 ConverterMap::const_iterator it = getConverterMap().begin();
135 it != getConverterMap().end();
138 out <<
"\t" << it->first <<std::endl;
150 typedef std::map<std::string, RCP<FunctionObjectXMLConverter> >
ConverterMap;
153 typedef std::pair<std::string, RCP<FunctionObjectXMLConverter> >
ConverterPair;
174 #define TEUCHOS_ADD_SIMPLEFUNCTIONCONVERTERS(T) \
175 Teuchos::FunctionObjectXMLConverterDB::addConverter( \
176 Teuchos::rcp(new Teuchos::SubtractionFunction< T >), \
177 Teuchos::DummyObjectGetter<Teuchos::SubtractionFunctionXMLConverter< T > >:: \
180 Teuchos::FunctionObjectXMLConverterDB::addConverter( \
181 Teuchos::rcp(new Teuchos::AdditionFunction< T >), \
182 Teuchos::DummyObjectGetter<Teuchos::AdditionFunctionXMLConverter< T > >:: \
185 Teuchos::FunctionObjectXMLConverterDB::addConverter( \
186 Teuchos::rcp(new Teuchos::MultiplicationFunction< T >), \
187 Teuchos::DummyObjectGetter<Teuchos::MultiplicationFunctionXMLConverter< T > >:: \
190 Teuchos::FunctionObjectXMLConverterDB::addConverter( \
191 Teuchos::rcp(new Teuchos::DivisionFunction< T >), \
192 Teuchos::DummyObjectGetter<Teuchos::DivisionFunctionXMLConverter< T > >:: \
196 #endif // TEUCHOS_FUNTIONOBJECTXMLCONVERTERDB_HPP
A collection of standard FunctionObjectXMLConverters.
std::pair< std::string, RCP< FunctionObjectXMLConverter > > ConverterPair
convience typedef.
Provides ability to lookup FunctionObjectXMLConverters.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object...
#define TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
static void printKnownConverters(std::ostream &out)
prints the xml tags associated with all known converters
Smart reference counting pointer class for automatic garbage collection.
A function object represents an arbitrary function.
std::map< std::string, RCP< FunctionObjectXMLConverter > > ConverterMap
convience class.