Tpetra Matrix/Vector Services  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | List of all members
Tpetra::SrcDistObject Class Reference

Abstract base class for objects that can be the source of an Import or Export operation. More...

#include <Tpetra_SrcDistObject.hpp>

Inheritance diagram for Tpetra::SrcDistObject:
Inheritance graph
[legend]

Public Member Functions

virtual ~SrcDistObject ()
 Virtual destructor. More...
 

Detailed Description

Abstract base class for objects that can be the source of an Import or Export operation.

Any object that may be the source of an Import or Export data redistribution operation must inherit from this class. This class implements no methods. Furthermore, if a subclass X inherits from this class, that merely indicates the a subclass can be the source of an Import or Export, for some set of subclasses of DistObject. A subclass Y of DistObject which is the target of the Import or Export operation will attempt to cast the input source SrcDistObject to a subclass which it knows how to treat as a source object. The target subclass Y is responsible for knowing what source classes to expect, and how to interpret the resulting source object.

DistObject inherits from this class, since a DistObject subclass may be either the source or the target of an Import or Export. A SrcDistObject subclass which does not inherit from DistObject need only be a valid source of an Import or Export; it need not be a valid target.

Definition at line 70 of file Tpetra_SrcDistObject.hpp.

Constructor & Destructor Documentation

virtual Tpetra::SrcDistObject::~SrcDistObject ( )
inlinevirtual

Virtual destructor.

It's necessary to provide this both for memory safety of derived classes, and to make SrcDistObject a polymorphic type (otherwise it can't be the argument of a dynamic_cast).

Definition at line 77 of file Tpetra_SrcDistObject.hpp.


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