Dummy ghost element viewer for serial vectors. More...
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 SerialVector > | vec_ |
Dummy ghost element viewer for serial vectors.
Definition at line 45 of file TSFSerialGhostView.hpp.
| 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.
| 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_.
RCP<const SerialVector> TSFExtended::SerialGhostView::vec_ [private] |
Definition at line 74 of file TSFSerialGhostView.hpp.
Referenced by getElement(), getElements(), and print().