RTOpPack::RTOpServer< Scalar > Class Template Reference

Server for creating RTOpT objects given just the operators name. More...

#include <RTOpPack_RTOpServerDecl.hpp>

List of all members.

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.
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 print_op_factories (std::ostream &o) const
 Print out all of the operator factories that have been added.


Detailed Description

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

Server for creating RTOpT objects given just the operators name.

Definition at line 44 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 42 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 52 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 64 of file RTOpPack_RTOpServer.hpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:25:50 2010 for Support Software for Vector Reduction/Transformation Operators by  doxygen 1.4.7