10 #ifndef TEUCHOS_FUNTIONOBJECTXMLCONVERTERDB_HPP
11 #define TEUCHOS_FUNTIONOBJECTXMLCONVERTERDB_HPP
41 static void addConverter(
99 out <<
"Known ConditionXMLConverters: " << std::endl;
101 ConverterMap::const_iterator it = getConverterMap().begin();
102 it != getConverterMap().end();
105 out <<
"\t" << it->first <<std::endl;
117 typedef std::map<std::string, RCP<FunctionObjectXMLConverter> >
ConverterMap;
120 typedef std::pair<std::string, RCP<FunctionObjectXMLConverter> >
ConverterPair;
141 #define TEUCHOS_ADD_SIMPLEFUNCTIONCONVERTERS(T) \
142 Teuchos::FunctionObjectXMLConverterDB::addConverter( \
143 Teuchos::rcp(new Teuchos::SubtractionFunction< T >), \
144 Teuchos::DummyObjectGetter<Teuchos::SubtractionFunctionXMLConverter< T > >:: \
147 Teuchos::FunctionObjectXMLConverterDB::addConverter( \
148 Teuchos::rcp(new Teuchos::AdditionFunction< T >), \
149 Teuchos::DummyObjectGetter<Teuchos::AdditionFunctionXMLConverter< T > >:: \
152 Teuchos::FunctionObjectXMLConverterDB::addConverter( \
153 Teuchos::rcp(new Teuchos::MultiplicationFunction< T >), \
154 Teuchos::DummyObjectGetter<Teuchos::MultiplicationFunctionXMLConverter< T > >:: \
157 Teuchos::FunctionObjectXMLConverterDB::addConverter( \
158 Teuchos::rcp(new Teuchos::DivisionFunction< T >), \
159 Teuchos::DummyObjectGetter<Teuchos::DivisionFunctionXMLConverter< T > >:: \
163 #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.