11 #ifndef RTOP_SERVER_DECL_HPP
12 #define RTOP_SERVER_DECL_HPP
14 #include "RTOpPack_RTOpT.hpp"
15 #include "Teuchos_AbstractFactory.hpp"
24 template<
class Scalar>
61 typedef std::map< std::string, Teuchos::RCP<Teuchos::AbstractFactory<RTOpT<Scalar> > > > op_factories_t;
62 op_factories_t op_factories_;
68 #endif // RTOP_SERVER_DECL_HPP
Teuchos::RCP< Teuchos::AbstractFactory< RTOpPack::RTOpT< Scalar > > > get_op_factory(const char op_name[]) const
Get an operator factory given the name of the operator.
void add_op_factory(const Teuchos::RCP< Teuchos::AbstractFactory< RTOpPack::RTOpT< Scalar > > > &op_factory)
Add a new abstract factory for an RTOpT operator.
void print_op_factories(std::ostream &o) const
Print out all of the operator factories that have been added.
Server for creating RTOpT objects given just the operators name.