Public Member Functions | Private Attributes
Playa::SerialGhostView Class Reference
Inheritance diagram for Playa::SerialGhostView:
Playa::GhostView< double > Playa::Printable

List of all members.

Public Member Functions

 SerialGhostView (const RCP< SerialVector > &vec)
virtual ~SerialGhostView ()
bool isAccessible (int globalIndex) const
const double & getElement (int globalIndex) const
void getElements (const int *globalIndices, int numElems, Array< double > &elems) const
void print (std::ostream &os) const

Private Attributes

RCP< const SerialVectorvec_

Detailed Description

Dummy ghost element viewer for serial vectors.

Definition at line 60 of file PlayaSerialGhostView.hpp.


Constructor & Destructor Documentation

Playa::SerialGhostView::SerialGhostView ( const RCP< SerialVector > &  vec) [inline]

Definition at line 64 of file PlayaSerialGhostView.hpp.

virtual Playa::SerialGhostView::~SerialGhostView ( ) [inline, virtual]

virtual dtor

Definition at line 69 of file PlayaSerialGhostView.hpp.


Member Function Documentation

const double& Playa::SerialGhostView::getElement ( int  globalIndex) const [inline, virtual]

get the element at the given global index

Implements Playa::GhostView< double >.

Definition at line 76 of file PlayaSerialGhostView.hpp.

References vec_.

void Playa::SerialGhostView::getElements ( const int *  globalIndices,
int  numElems,
Array< double > &  elems 
) const [inline, virtual]

get the batch of elements at the given global indices

Implements Playa::GhostView< double >.

Definition at line 80 of file PlayaSerialGhostView.hpp.

References vec_.

bool Playa::SerialGhostView::isAccessible ( int  globalIndex) const [inline, virtual]

Indicate whether the given global index is accessible in this view

Implements Playa::GhostView< double >.

Definition at line 72 of file PlayaSerialGhostView.hpp.

void Playa::SerialGhostView::print ( std::ostream &  os) const [inline, virtual]

Implements Playa::GhostView< double >.

Definition at line 87 of file PlayaSerialGhostView.hpp.

References vec_.


Member Data Documentation

Definition at line 89 of file PlayaSerialGhostView.hpp.

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

Site Contact