RTOp Package Browser (Single Doxygen Collection)
Version of the Day
|
Server for creating RTOpT
objects given just the operators name.
More...
#include <RTOpPack_RTOpServerDecl.hpp>
Public Member Functions | |
void | add_op_factory (const Teuchos::RCP< Teuchos::AbstractFactory< RTOpPack::RTOpT< Scalar > > > &op_factory) |
Add a new abstract factory for an RTOpT operator. More... | |
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. More... | |
void | print_op_factories (std::ostream &o) const |
Print out all of the operator factories that have been added. More... | |
Private Types | |
typedef std::map< std::string, Teuchos::RCP < Teuchos::AbstractFactory < RTOpT< Scalar > > > > | op_factories_t |
Private Attributes | |
op_factories_t | op_factories_ |
Server for creating RTOpT
objects given just the operators name.
Definition at line 57 of file RTOpPack_RTOpServerDecl.hpp.
|
private |
Definition at line 93 of file RTOpPack_RTOpServerDecl.hpp.
void RTOpPack::RTOpServer< Scalar >::add_op_factory | ( | const Teuchos::RCP< Teuchos::AbstractFactory< RTOpPack::RTOpT< Scalar > > > & | op_factory | ) |
Add a new abstract factory for an RTOpT
operator.
op_factory | [in] Smart pointer to factory object that will create RTOpT objects of a given type. The name of the operator type will be extracted from op_factory->create()->op_name() . |
Preconditions:
op_factory.get() != NULL
(throw std::invalid_argument
)
Postconditions:
this->get_op_factory(op_factory->create()->op_name()).get() != op_factory.get()
Definition at line 55 of file RTOpPack_RTOpServer.hpp.
Teuchos::RCP< Teuchos::AbstractFactory< RTOpPack::RTOpT< Scalar > > > RTOpPack::RTOpServer< Scalar >::get_op_factory | ( | const char | op_name[] | ) | const |
Get an operator factory given the name of the operator.
op_name | [in] Null-terminated C-style string for the name of an operator type. |
Preconditions:
An operator factory with this name must have been added in a call to this->add_op_factory(...)
Definition at line 65 of file RTOpPack_RTOpServer.hpp.
void RTOpPack::RTOpServer< Scalar >::print_op_factories | ( | std::ostream & | o | ) | const |
Print out all of the operator factories that have been added.
Definition at line 77 of file RTOpPack_RTOpServer.hpp.
|
private |
Definition at line 94 of file RTOpPack_RTOpServerDecl.hpp.