Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
A tuple of four indices. More...
#include <geogram/mesh/index.h>
Public Types | |
enum | KeepOrderType { KEEP_ORDER } |
This type is used to overload basic_quadindex constructors with versions that keep the order of the stored indices. More... | |
Public Member Functions | |
basic_quadindex () | |
Constructs a new uninitialized basic_quadindex. | |
basic_quadindex (IndexType i, IndexType j, IndexType k, IndexType l) | |
Creates a basic_quadindex from four integers. More... | |
basic_quadindex (IndexType i, IndexType j, IndexType k, IndexType l, KeepOrderType order) | |
Creates a basic_quadindex from four integers and keeps their order. More... | |
bool | operator< (const basic_quadindex< IndexType > &rhs) const |
Compares two basic_quadindex. More... | |
bool | operator== (const basic_quadindex< IndexType > &rhs) const |
Compares two basic_quadindex. More... | |
bool | operator!= (const basic_quadindex< IndexType > &rhs) const |
Compares two basic_quadindex. More... | |
basic_quadindex (const basic_quadindex< IndexType > &rhs)=default | |
Constructs a basic_quadindex from another one. More... | |
basic_quadindex< IndexType > & | operator= (const basic_quadindex< IndexType > &rhs)=default |
Assigns a basic_quadindex to this one. More... | |
Public Attributes | |
IndexType | indices [4] |
The array of 4 indices. | |
Related Functions | |
(Note that these are not member functions.) | |
template<class IndexType > | |
std::ostream & | operator<< (std::ostream &out, const basic_quadindex< IndexType > &Q) |
Writes a basic_quadindex to a stream. More... | |
A tuple of four indices.
Can be used as a key in associative data structures (std::map, std::set). The indices are defined by IndexType
, generally signed or unsigned integers.
IndexType | type of the indices |
enum GEO::basic_quadindex::KeepOrderType |
This type is used to overload basic_quadindex constructors with versions that keep the order of the stored indices.
Enumerator | |
---|---|
KEEP_ORDER | Value to pass to basic_quadindex ordered constructor |
|
inline |
Creates a basic_quadindex from four integers.
The integers are reordered.
[in] | i | first integer |
[in] | j | second integer |
[in] | k | third integer |
[in] | l | fourth integer |
|
inline |
Creates a basic_quadindex from four integers and keeps their order.
The integers are not sorted.
[in] | i | first integer |
[in] | j | second integer |
[in] | k | third integer |
[in] | l | fourth integer |
[in] | order | argument of type KeepOrderType used to select the right constructor. Use basic_quadindex: :KEEP_ORDER for this argument. |
|
default |
Constructs a basic_quadindex from another one.
[in] | rhs | the basic_quadindex this basic_quadindex should be copied from |
|
inline |
Compares two basic_quadindex.
[in] | rhs | the basic_quadindex to compare this basic_quadindex with. |
rhs
differs from the index in this basic_quadindex at the same position, false otherwise.
|
inline |
Compares two basic_quadindex.
[in] | rhs | the basic_quadindex to compares this basic_quadindex with. |
rhs
is smaller than this basic_quadindex according to the lexicographic order, false otherwise.
|
default |
Assigns a basic_quadindex to this one.
[in] | rhs | the basic_quadindex this basic_quadindex should be assigned from |
|
inline |
Compares two basic_quadindex.
[in] | rhs | the basic_quadindex to compare this basic_quadindex with. |
rhs
at the same positions, false otherwise.
|
related |
Writes a basic_quadindex to a stream.
Displays all the indices of the basic_quadindex Q
.
[in] | out | the output stream |
[in] | Q | the basic_quadindex to write |
IndexType | type of the indices |
out