40 #ifndef GEOGRAM_MESH_INDEX
41 #define GEOGRAM_MESH_INDEX
65 template <
class IndexType>
222 template <
class IndexType>
238 template <
class IndexType>
309 for(
index_t i = 0; i < 3; i++) {
378 IndexType i, IndexType j, IndexType k
440 template <
class IndexType>
457 template <
class IndexType>
535 for(
index_t i = 0; i < 4; i++) {
616 template <
class IndexType>
Wrappers around parallel implementation of STL.
A function to suppress unused parameters compilation warnings.
Common include file, providing basic definitions. Should be included before anything else by all head...
basic_quadindex< signed_index_t > signed_quadindex
A basic_quadindex made of 4 signed integers.
basic_bindex< index_t > bindex
A basic_bindex made of 2 unsigned integers.
basic_quadindex< index_t > quadindex
A basic_quadindex made of 4 unsigned integers.
basic_trindex< index_t > trindex
A basic_trindex made of 3 unsigned integers.
basic_bindex< signed_index_t > signed_bindex
A basic_bindex made of 2 signed integers.
basic_trindex< signed_index_t > signed_trindex
A basic_trindex made of 3 signed integers.
Global Vorpaline namespace.
void geo_argused(const T &)
Suppresses compiler warnings about unused parameters.
void sort_4(ITERATOR items)
Specialized sort routine for 4 elements.
geo_index_t index_t
The type for storing and manipulating indices.
std::ostream & operator<<(std::ostream &out, const Quaternion &q)
Writes a Quaternion to a stream.
void sort_3(ITERATOR items)
Specialized sort routine for 3 elements.
Types and functions for numbers manipulation.
basic_bindex(IndexType i, IndexType j)
Creates a basic_bindex from two integers.
bool operator!=(const basic_bindex< IndexType > &rhs) const
Compares two basic_bindex.
basic_bindex(const basic_bindex< IndexType > &rhs)=default
Constructs a basic_bindex from another one.
bool operator<(const basic_bindex< IndexType > &rhs) const
Compares two basic_bindex.
basic_bindex< IndexType > & operator=(const basic_bindex< IndexType > &rhs)=default
Assigns a basic_bindex to this one.
bool operator==(const basic_bindex< IndexType > &rhs) const
Compares two basic_bindex.
basic_bindex(IndexType i, IndexType j, KeepOrderType order)
Creates a basic_bindex from two integers and keeps their order.
KeepOrderType
This type is used to overload basic_bindex constructors with versions that keep the order of the stor...
IndexType indices[2]
The array of 2 indices.
static basic_bindex inverse(const basic_bindex< IndexType > &b)
Computes the inverse of a basic_bindex.
basic_bindex()
Creates an uninitialized basic_bindex.
basic_quadindex< IndexType > & operator=(const basic_quadindex< IndexType > &rhs)=default
Assigns a basic_quadindex to this one.
bool operator==(const basic_quadindex< IndexType > &rhs) const
Compares two basic_quadindex.
IndexType indices[4]
The array of 4 indices.
basic_quadindex(const basic_quadindex< IndexType > &rhs)=default
Constructs a basic_quadindex from another one.
bool operator<(const basic_quadindex< IndexType > &rhs) const
Compares two basic_quadindex.
basic_quadindex()
Constructs a new uninitialized basic_quadindex.
basic_quadindex(IndexType i, IndexType j, IndexType k, IndexType l, KeepOrderType order)
Creates a basic_quadindex from four integers and keeps their order.
bool operator!=(const basic_quadindex< IndexType > &rhs) const
Compares two basic_quadindex.
basic_quadindex(IndexType i, IndexType j, IndexType k, IndexType l)
Creates a basic_quadindex from four integers.
KeepOrderType
This type is used to overload basic_quadindex constructors with versions that keep the order of the s...
A triple of three indices.
static basic_trindex inverse(const basic_trindex< IndexType > &t)
Computes the inverse of a basic_trindex.
bool operator!=(const basic_trindex< IndexType > &rhs) const
Compares two basic_trindex.
static bool same_orientation(const basic_trindex< IndexType > &t1, const basic_trindex< IndexType > &t2)
Tests whether two basic_trindex have the same orientation.
basic_trindex(const basic_trindex< IndexType > &rhs)=default
Constructs a basic_trindex from another one.
basic_trindex(IndexType i, IndexType j, IndexType k, KeepOrderType order)
Creates a basic_trindex from three integers and keeps their order.
static bool same_orientation(const basic_trindex< IndexType > &t, IndexType i, IndexType j, IndexType k)
Tests whether a basic_trindex has the same orientation as a triple of integers.
bool operator==(const basic_trindex< IndexType > &rhs) const
Compares two basic_trindex.
bool operator<(const basic_trindex< IndexType > &rhs) const
Compares two basic_trindex.
KeepOrderType
This type is used to overload basic_trindex constructors with versions that keep the order of the sto...
basic_trindex< IndexType > & operator=(const basic_trindex< IndexType > &rhs)=default
Assigns a basic_trindex to this one.
basic_trindex(IndexType i, IndexType j, IndexType k)
Creates a basic_trindex from three integers.
basic_trindex()
Creates an uninitialized basic_trindex.
IndexType indices[3]
The array of 3 indices.