Support Software for Vector Reduction/Transformation Operators  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
RTOpPack::RTOpServer< Scalar > Class Template Reference

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...
 

Detailed Description

template<class Scalar>
class RTOpPack::RTOpServer< Scalar >

Server for creating RTOpT objects given just the operators name.

Definition at line 25 of file RTOpPack_RTOpServerDecl.hpp.

Member Function Documentation

template<class Scalar >
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.

Parameters
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.

template<class Scalar >
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.

Parameters
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.

template<class Scalar >
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.


The documentation for this class was generated from the following files: