RTOp Package Browser (Single Doxygen Collection) Version of the Day
Public Member Functions | Private Types | Private Attributes
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.

Private Types

typedef std::map< std::string,
Teuchos::RCP
< Teuchos::AbstractFactory
< RTOpT< Scalar > > > > 
op_factories_t

Private Attributes

op_factories_t op_factories_

Detailed Description

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

Server for creating RTOpT objects given just the operators name.

Definition at line 57 of file RTOpPack_RTOpServerDecl.hpp.


Member Typedef Documentation

template<class Scalar >
typedef std::map< std::string, Teuchos::RCP<Teuchos::AbstractFactory<RTOpT<Scalar> > > > RTOpPack::RTOpServer< Scalar >::op_factories_t [private]

Definition at line 93 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 55 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 65 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 77 of file RTOpPack_RTOpServer.hpp.


Member Data Documentation

template<class Scalar >
op_factories_t RTOpPack::RTOpServer< Scalar >::op_factories_ [private]

Definition at line 94 of file RTOpPack_RTOpServerDecl.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines