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

Dummy ghost element viewer for serial vectors. More...

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

List of all members.

Public Member Functions

 SerialGhostView (const RCP< SerialVector > &vec)
virtual ~SerialGhostView ()
 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, OrdType numElems, Array< double > &elems) const
 get the batch of elements at the given global indices
void print (std::ostream &os) const

Private Attributes

RCP< const SerialVectorvec_

Detailed Description

Dummy ghost element viewer for serial vectors.

Definition at line 45 of file TSFSerialGhostView.hpp.


Constructor & Destructor Documentation

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

Definition at line 49 of file TSFSerialGhostView.hpp.

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

virtual dtor

Definition at line 54 of file TSFSerialGhostView.hpp.


Member Function Documentation

const double& TSFExtended::SerialGhostView::getElement ( OrdType  globalIndex) const [inline, virtual]

get the element at the given global index

Implements TSFExtended::AccessibleVector< double >.

Definition at line 61 of file TSFSerialGhostView.hpp.

References vec_.

void TSFExtended::SerialGhostView::getElements ( const OrdType globalIndices,
OrdType  numElems,
Array< double > &  elems 
) const [inline]

get the batch of elements at the given global indices

Definition at line 65 of file TSFSerialGhostView.hpp.

References vec_.

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

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

Implements TSFExtended::GhostView< double >.

Definition at line 57 of file TSFSerialGhostView.hpp.

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

Implements TSFExtended::GhostView< double >.

Definition at line 72 of file TSFSerialGhostView.hpp.

References vec_.


Member Data Documentation

Definition at line 74 of file TSFSerialGhostView.hpp.

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

Site Contact