EpetraExt Package Browser (Single Doxygen Collection) Development
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
EpetraExt::Transform< T, U > Class Template Reference

Base Class for all Epetra Transform Operators. More...

#include <EpetraExt_Transform.h>

Inheritance diagram for EpetraExt::Transform< T, U >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Transform ()

Protected Member Functions

 Transform ()
 Default constructor, protected to allow only derived classes to use.

Protected Attributes

OriginalTypePtr origObj_
NewTypePtr newObj_

Private Member Functions

 Transform (const Transform< T, U > &src)
Transform< T, U > & operator= (const Transform< T, U > &src)

Typedefs for templated classes

typedef T OriginalType
typedef T * OriginalTypePtr
typedef Teuchos::RCP< T > OriginalTypeRCP
typedef T & OriginalTypeRef
typedef U NewType
typedef U * NewTypePtr
typedef Teuchos::RCP< U > NewTypeRCP
typedef U & NewTypeRef

Pure Virtual Methods which must be implemented by subclasses

virtual NewTypeRef operator() (OriginalTypeRef orig)=0
 Analysis of transform operation on original object and construction of new object.
virtual bool fwd ()=0
 Forward transfer of data from orig object input in the operator() method call to the new object created in this same call.
virtual bool rvs ()=0
 Reverse transfer of data from new object created in the operator() method call to the orig object input to this same method.

Virtual functions with default implements allowing for optional

implementation by the Transform developer

virtual bool analyze (OriginalTypeRef orig)
 Initial analysis phase of transform.
virtual NewTypeRef construct ()
 Construction of new object as a result of the transform.
virtual bool isConstructed ()
 Check for whether transformed object has been constructed.

Detailed Description

template<typename T, typename U>
class EpetraExt::Transform< T, U >

Base Class for all Epetra Transform Operators.

This is the abstract definition for all Epetra Transform Operators. Depending on the type of Transform, several specializations are available: Structural, SameType, InPlace, View.

Definition at line 64 of file EpetraExt_Transform.h.


Member Typedef Documentation

template<typename T, typename U>
typedef T EpetraExt::Transform< T, U >::OriginalType

Definition at line 71 of file EpetraExt_Transform.h.

template<typename T, typename U>
typedef T* EpetraExt::Transform< T, U >::OriginalTypePtr

Definition at line 72 of file EpetraExt_Transform.h.

template<typename T, typename U>
typedef Teuchos::RCP<T> EpetraExt::Transform< T, U >::OriginalTypeRCP

Definition at line 73 of file EpetraExt_Transform.h.

template<typename T, typename U>
typedef T& EpetraExt::Transform< T, U >::OriginalTypeRef

Definition at line 74 of file EpetraExt_Transform.h.

template<typename T, typename U>
typedef U EpetraExt::Transform< T, U >::NewType

Definition at line 76 of file EpetraExt_Transform.h.

template<typename T, typename U>
typedef U* EpetraExt::Transform< T, U >::NewTypePtr

Definition at line 77 of file EpetraExt_Transform.h.

template<typename T, typename U>
typedef Teuchos::RCP<U> EpetraExt::Transform< T, U >::NewTypeRCP

Definition at line 78 of file EpetraExt_Transform.h.

template<typename T, typename U>
typedef U& EpetraExt::Transform< T, U >::NewTypeRef

Definition at line 79 of file EpetraExt_Transform.h.


Constructor & Destructor Documentation

template<typename T, typename U>
virtual EpetraExt::Transform< T, U >::~Transform ( ) [inline, virtual]

Definition at line 84 of file EpetraExt_Transform.h.

template<typename T, typename U>
EpetraExt::Transform< T, U >::Transform ( ) [inline, protected]

Default constructor, protected to allow only derived classes to use.

Initializes attributes origObj_ and newObj_ to 0.

Definition at line 211 of file EpetraExt_Transform.h.

template<typename T, typename U>
EpetraExt::Transform< T, U >::Transform ( const Transform< T, U > &  src) [inline, private]

Definition at line 221 of file EpetraExt_Transform.h.


Member Function Documentation

template<typename T, typename U>
virtual NewTypeRef EpetraExt::Transform< T, U >::operator() ( OriginalTypeRef  orig) [pure virtual]
template<typename T, typename U>
virtual bool EpetraExt::Transform< T, U >::fwd ( ) [pure virtual]
template<typename T, typename U>
virtual bool EpetraExt::Transform< T, U >::rvs ( ) [pure virtual]
template<typename T , typename U >
bool EpetraExt::Transform< T, U >::analyze ( OriginalTypeRef  orig) [virtual]

Initial analysis phase of transform.

Returns true if the transform is possible allowing methods construct(), fwd() and rvs() to be successfully utilized.

Preconditions:

default implementation calls method operator() and stores the resulting object in an internal attribute newObj_.

Reimplemented in EpetraExt::LinearProblem_CrsSingletonFilter.

Definition at line 236 of file EpetraExt_Transform.h.

template<typename T , typename U >
Transform< T, U >::NewTypeRef EpetraExt::Transform< T, U >::construct ( ) [virtual]

Construction of new object as a result of the transform.

Preconditions:

default implementation returns internal attribute newObj_.

Reimplemented in EpetraExt::LinearProblem_CrsSingletonFilter.

Definition at line 246 of file EpetraExt_Transform.h.

template<typename T , typename U >
bool EpetraExt::Transform< T, U >::isConstructed ( ) [virtual]

Check for whether transformed object has been constructed.

Preconditions:

default implementation returns true if newObj_ != 0.

Definition at line 254 of file EpetraExt_Transform.h.

template<typename T, typename U>
Transform<T,U>& EpetraExt::Transform< T, U >::operator= ( const Transform< T, U > &  src) [inline, private]

Definition at line 224 of file EpetraExt_Transform.h.


Member Data Documentation

template<typename T, typename U>
OriginalTypePtr EpetraExt::Transform< T, U >::origObj_ [protected]

Reimplemented in EpetraExt::Permutation< T >.

Definition at line 216 of file EpetraExt_Transform.h.

template<typename T, typename U>
NewTypePtr EpetraExt::Transform< T, U >::newObj_ [protected]

Reimplemented in EpetraExt::Permutation< T >.

Definition at line 218 of file EpetraExt_Transform.h.


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