VertexView is a read-only "view" of a cell's vertices, where the vertices are stored contiguously in a large master array. More...
Public Member Functions | |
| VertexView () | |
| empty ctor, needed for storing VertexViews in Teuchos hashtables | |
| VertexView (int **base, int offset, int length) | |
| Construct a view into an array. | |
| int | hashCode () const |
| Return a hash code for the vertex set. | |
| bool | operator== (const VertexView &other) const |
| Test equality between two vertex sets. | |
| std::string | toString () const |
| Write to a std::string. | |
Private Attributes | |
| int ** | base_ |
| int | offset_ |
| int | length_ |
VertexView is a read-only "view" of a cell's vertices, where the vertices are stored contiguously in a large master array.
By working with views, we can greatly reduce the number of temporary arrays created during hashtable searches for existing vertex arrays.
Definition at line 47 of file SundanceBasicVertexView.hpp.
| Sundance::VertexView::VertexView | ( | ) | [inline] |
empty ctor, needed for storing VertexViews in Teuchos hashtables
Definition at line 51 of file SundanceBasicVertexView.hpp.
| Sundance::VertexView::VertexView | ( | int ** | base, |
| int | offset, | ||
| int | length | ||
| ) | [inline] |
Construct a view into an array.
| bese | pointer to the start of the master data array. By using double indirection, the master array can be resized or relocated and VertexViews can remain valid. |
| offset | the index of the vertex subarray being viewed. |
| length | the number of vertices included in this view. |
Definition at line 59 of file SundanceBasicVertexView.hpp.
| int VertexView::hashCode | ( | ) | const |
Return a hash code for the vertex set.
Definition at line 25 of file SundanceBasicVertexView.cpp.
| bool Sundance::VertexView::operator== | ( | const VertexView & | other | ) | const [inline] |
Test equality between two vertex sets.
Two vertex sets are equal when their vertices are identical.
Definition at line 89 of file SundanceBasicVertexView.hpp.
| string VertexView::toString | ( | ) | const |
Write to a std::string.
Definition at line 9 of file SundanceBasicVertexView.cpp.
int** Sundance::VertexView::base_ [private] |
Definition at line 80 of file SundanceBasicVertexView.hpp.
Referenced by hashCode(), operator==(), and toString().
int Sundance::VertexView::length_ [private] |
Definition at line 82 of file SundanceBasicVertexView.hpp.
Referenced by hashCode(), operator==(), and toString().
int Sundance::VertexView::offset_ [private] |
Definition at line 81 of file SundanceBasicVertexView.hpp.
Referenced by hashCode(), operator==(), and toString().