Epetra Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Epetra_OffsetIndex Class Reference

Epetra_OffsetIndex: This class builds index for efficient mapping of data from one Epetra_CrsGraph based object to another. More...

#include <Epetra_OffsetIndex.h>

Inheritance diagram for Epetra_OffsetIndex:
Inheritance graph
[legend]

Public Member Functions

 Epetra_OffsetIndex (const Epetra_CrsGraph &SourceGraph, const Epetra_CrsGraph &TargetGraph, Epetra_Import &Importer)
 Constructs a Epetra_OffsetIndex object from the graphs and an importer. More...
 
 Epetra_OffsetIndex (const Epetra_CrsGraph &SourceGraph, const Epetra_CrsGraph &TargetGraph, Epetra_Export &Exporter)
 Constructs a Epetra_OffsetIndex object from the graphs and an exporter. More...
 
 Epetra_OffsetIndex (const Epetra_OffsetIndex &Indexor)
 Epetra_OffsetIndex copy constructor. More...
 
virtual ~Epetra_OffsetIndex (void)
 Epetra_OffsetIndex destructor. More...
 
int ** SameOffsets () const
 Accessor. More...
 
int ** PermuteOffsets () const
 Accessor. More...
 
int ** RemoteOffsets () const
 Accessor. More...
 
- Public Member Functions inherited from Epetra_Object
 Epetra_Object (int TracebackModeIn=-1, bool set_label=true)
 Epetra_Object Constructor. More...
 
 Epetra_Object (const char *const Label, int TracebackModeIn=-1)
 Epetra_Object Constructor. More...
 
 Epetra_Object (const Epetra_Object &Object)
 Epetra_Object Copy Constructor. More...
 
virtual ~Epetra_Object ()
 Epetra_Object Destructor. More...
 
virtual void SetLabel (const char *const Label)
 Epetra_Object Label definition using char *. More...
 
virtual const char * Label () const
 Epetra_Object Label access funtion. More...
 
virtual int ReportError (const std::string Message, int ErrorCode) const
 Error reporting method. More...
 

Public Attributes

int NumSame_
 
int ** SameOffsets_
 
int NumPermute_
 
int ** PermuteOffsets_
 
int NumExport_
 
int NumRemote_
 
int ** RemoteOffsets_
 
bool DataOwned_
 

Private Member Functions

template<typename int_type >
void GenerateLocalOffsets_ (const Epetra_CrsGraph &SourceGraph, const Epetra_CrsGraph &TargetGraph, const int *PermuteLIDs)
 
template<typename int_type >
void GenerateRemoteOffsets_ (const Epetra_CrsGraph &SourceGraph, const Epetra_CrsGraph &TargetGraph, const int *ExportLIDs, const int *RemoteLIDs, Epetra_Distributor &Distor)
 
Epetra_OffsetIndexoperator= (const Epetra_OffsetIndex &Indexor)
 Epetra_OffsetIndex copy constructor. More...
 

Print object to an output stream

virtual void Print (std::ostream &os) const
 Print object to an output stream Print method. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Epetra_Object
static void SetTracebackMode (int TracebackModeValue)
 Set the value of the Epetra_Object error traceback report mode. More...
 
static int GetTracebackMode ()
 Get the value of the Epetra_Object error report mode. More...
 
static std::ostream & GetTracebackStream ()
 Get the output stream for error reporting. More...
 
- Static Public Attributes inherited from Epetra_Object
static int TracebackMode
 
- Protected Member Functions inherited from Epetra_Object
std::string toString (const int &x) const
 
std::string toString (const long long &x) const
 
std::string toString (const double &x) const
 

Detailed Description

Epetra_OffsetIndex: This class builds index for efficient mapping of data from one Epetra_CrsGraph based object to another.

Epetra_OffsetIndex generates and index of offsets allowing direct access to data for Import/Export operations on Epetra_CrsGraph based objects such as Epetra_CrsMatrix.

Definition at line 68 of file Epetra_OffsetIndex.h.

Constructor & Destructor Documentation

Epetra_OffsetIndex::Epetra_OffsetIndex ( const Epetra_CrsGraph SourceGraph,
const Epetra_CrsGraph TargetGraph,
Epetra_Import Importer 
)

Constructs a Epetra_OffsetIndex object from the graphs and an importer.

Definition at line 52 of file Epetra_OffsetIndex.cpp.

Epetra_OffsetIndex::Epetra_OffsetIndex ( const Epetra_CrsGraph SourceGraph,
const Epetra_CrsGraph TargetGraph,
Epetra_Export Exporter 
)

Constructs a Epetra_OffsetIndex object from the graphs and an exporter.

Definition at line 108 of file Epetra_OffsetIndex.cpp.

Epetra_OffsetIndex::Epetra_OffsetIndex ( const Epetra_OffsetIndex Indexor)

Epetra_OffsetIndex copy constructor.

Definition at line 164 of file Epetra_OffsetIndex.cpp.

Epetra_OffsetIndex::~Epetra_OffsetIndex ( void  )
virtual

Epetra_OffsetIndex destructor.

Definition at line 179 of file Epetra_OffsetIndex.cpp.

Member Function Documentation

void Epetra_OffsetIndex::Print ( std::ostream &  os) const
virtual

Print object to an output stream Print method.

Reimplemented from Epetra_Object.

Definition at line 343 of file Epetra_OffsetIndex.cpp.

int** Epetra_OffsetIndex::SameOffsets ( ) const
inline

Accessor.

Definition at line 94 of file Epetra_OffsetIndex.h.

int** Epetra_OffsetIndex::PermuteOffsets ( ) const
inline

Accessor.

Definition at line 97 of file Epetra_OffsetIndex.h.

int** Epetra_OffsetIndex::RemoteOffsets ( ) const
inline

Accessor.

Definition at line 100 of file Epetra_OffsetIndex.h.

template<typename int_type >
void Epetra_OffsetIndex::GenerateLocalOffsets_ ( const Epetra_CrsGraph SourceGraph,
const Epetra_CrsGraph TargetGraph,
const int *  PermuteLIDs 
)
private

Definition at line 197 of file Epetra_OffsetIndex.cpp.

template<typename int_type >
void Epetra_OffsetIndex::GenerateRemoteOffsets_ ( const Epetra_CrsGraph SourceGraph,
const Epetra_CrsGraph TargetGraph,
const int *  ExportLIDs,
const int *  RemoteLIDs,
Epetra_Distributor Distor 
)
private

Definition at line 260 of file Epetra_OffsetIndex.cpp.

Epetra_OffsetIndex& Epetra_OffsetIndex::operator= ( const Epetra_OffsetIndex Indexor)
private

Epetra_OffsetIndex copy constructor.

Member Data Documentation

int Epetra_OffsetIndex::NumSame_

Definition at line 120 of file Epetra_OffsetIndex.h.

int** Epetra_OffsetIndex::SameOffsets_

Definition at line 121 of file Epetra_OffsetIndex.h.

int Epetra_OffsetIndex::NumPermute_

Definition at line 122 of file Epetra_OffsetIndex.h.

int** Epetra_OffsetIndex::PermuteOffsets_

Definition at line 123 of file Epetra_OffsetIndex.h.

int Epetra_OffsetIndex::NumExport_

Definition at line 124 of file Epetra_OffsetIndex.h.

int Epetra_OffsetIndex::NumRemote_

Definition at line 125 of file Epetra_OffsetIndex.h.

int** Epetra_OffsetIndex::RemoteOffsets_

Definition at line 126 of file Epetra_OffsetIndex.h.

bool Epetra_OffsetIndex::DataOwned_

Definition at line 128 of file Epetra_OffsetIndex.h.


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