Stores a number of indices in a ordered fashion. More...
#include <meshImport3D.hh>

Public Member Functions | |
| Index (const uint n0) | |
| Index (const uint n0, const uint n1, const uint n2) | |
| Constructor for use in a triangle. | |
| Index (const uint n0, const uint n1, const uint n2, const uint n3) | |
| Constructor for use in a quad. | |
| Index (const uint n0, const uint n1) | |
| Index (const Index &i) | |
| Copy constructor. | |
| bool | operator< (const concepts::Index &y) const |
| < operator for | |
| bool | operator== (const concepts::Index &y) const |
| == operator | |
| uint | operator[] (const uint i) const |
Returns the ith entry of n_. | |
| uint & | operator[] (const uint i) |
Returns the ith entry of n_. | |
| uint | size () const |
Returns number of entries in n_. | |
| void | sort_ () |
| Sorts the data somewhat. | |
Public Attributes | |
| Array< uint > | n_ |
| Stores the data. | |
Stores a number of indices in a ordered fashion.
The first index is the smallest, the rest of the indices keep their siblings.
Definition at line 36 of file meshImport3D.hh.
| concepts::Index::Index | ( | const uint | n0 | ) |
| concepts::Index::Index | ( | const uint | n0, |
| const uint | n1 | ||
| ) |
| concepts::Index::Index | ( | const uint | n0, |
| const uint | n1, | ||
| const uint | n2 | ||
| ) |
Constructor for use in a triangle.
| concepts::Index::Index | ( | const uint | n0, |
| const uint | n1, | ||
| const uint | n2, | ||
| const uint | n3 | ||
| ) |
Constructor for use in a quad.
| concepts::Index::Index | ( | const Index & | i | ) | [inline] |
Copy constructor.
Definition at line 55 of file meshImport3D.hh.
| bool concepts::Index::operator< | ( | const concepts::Index & | y | ) | const |
< operator for
| bool concepts::Index::operator== | ( | const concepts::Index & | y | ) | const |
== operator
| uint& concepts::Index::operator[] | ( | const uint | i | ) | [inline] |
Returns the ith entry of n_.
Definition at line 61 of file meshImport3D.hh.
| uint concepts::Index::operator[] | ( | const uint | i | ) | const [inline] |
Returns the ith entry of n_.
Definition at line 59 of file meshImport3D.hh.
| uint concepts::Index::size | ( | ) | const [inline] |
Returns number of entries in n_.
Definition at line 57 of file meshImport3D.hh.

| void concepts::Index::sort_ | ( | ) |
Sorts the data somewhat.
This routine is called by the constructor. The smallest entry in the data given to the constructor is stored as the first entry of n_. The rest of the data is order in the following way: the entry on the left or on the right (depending on which is the smaller) fixes the orientation in which the rest of the entries are stored into n_.
| Array<uint> concepts::Index::n_ |
Stores the data.
Definition at line 38 of file meshImport3D.hh.