Public Member Functions | Private Attributes
TSFExtended::EpetraGhostView Class Reference

Ghost element viewer for Epetra vectors. More...

Inheritance diagram for TSFExtended::EpetraGhostView:
TSFExtended::GhostView< double > TSFExtended::AccessibleVector< double > Sundance::Printable

List of all members.

Public Member Functions

 EpetraGhostView ()
virtual ~EpetraGhostView ()
 virtual dtor
bool isAccessible (OrdType globalIndex) const
 Indicate whether the given global index is accessible in this view.
const double & getElement (OrdType globalIndex) const
 get the element at the given global index
void getElements (const OrdType *globalIndices, int numElems, Array< double > &elems) const
 get the batch of elements at the given global indices
void import (const Epetra_Import &importer, const Epetra_Vector &srcObject)
void print (std::ostream &os) const

Private Attributes

RCP< Epetra_Vector > ghostView_

Detailed Description

Ghost element viewer for Epetra vectors.

Definition at line 46 of file TSFEpetraGhostView.hpp.


Constructor & Destructor Documentation

TSFExtended::EpetraGhostView::EpetraGhostView ( ) [inline]

Definition at line 50 of file TSFEpetraGhostView.hpp.

virtual TSFExtended::EpetraGhostView::~EpetraGhostView ( ) [inline, virtual]

virtual dtor

Definition at line 55 of file TSFEpetraGhostView.hpp.


Member Function Documentation

const double & EpetraGhostView::getElement ( OrdType  globalIndex) const [virtual]

get the element at the given global index

Implements TSFExtended::AccessibleVector< double >.

Definition at line 34 of file TSFEpetraGhostView.cpp.

References ghostView_.

void EpetraGhostView::getElements ( const OrdType globalIndices,
int  numElems,
Array< double > &  elems 
) const

get the batch of elements at the given global indices

Definition at line 40 of file TSFEpetraGhostView.cpp.

References ghostView_.

void EpetraGhostView::import ( const Epetra_Import &  importer,
const Epetra_Vector &  srcObject 
)

Definition at line 52 of file TSFEpetraGhostView.cpp.

References ghostView_.

Referenced by TSFExtended::EpetraGhostImporter::importView().

bool TSFExtended::EpetraGhostView::isAccessible ( OrdType  globalIndex) const [inline, virtual]

Indicate whether the given global index is accessible in this view.

Implements TSFExtended::GhostView< double >.

Definition at line 58 of file TSFEpetraGhostView.hpp.

References ghostView_.

void EpetraGhostView::print ( std::ostream &  os) const [virtual]

Implements TSFExtended::GhostView< double >.

Definition at line 67 of file TSFEpetraGhostView.cpp.

References ghostView_.


Member Data Documentation

RCP<Epetra_Vector> TSFExtended::EpetraGhostView::ghostView_ [private]

Definition at line 75 of file TSFEpetraGhostView.hpp.

Referenced by getElement(), getElements(), import(), isAccessible(), and print().

Site Contact