Support Software for Vector Reduction/Transformation Operators
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... | |
Server for creating RTOpT
objects given just the operators name.
Definition at line 25 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 23 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 33 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 45 of file RTOpPack_RTOpServer.hpp.