Specialization of the class for specifying indices of vertices for defining a DIM-dimensional polytope for DIM=0 (point) More...
#include <ptems/polytope.hpp>
Public Types | |
typedef const std::size_t * | iterator |
Type of iterator over the vertices. More... | |
typedef const std::size_t * | const_iterator |
Type of iterator over the vertices. More... | |
Public Member Functions | |
template<typename It > | |
Polytope (It begin, It end) | |
Constructs a point from a list of vertex indices (must be exactly one) More... | |
Polytope (std::size_t index) | |
Constructs a point from a vertex index. More... | |
Polytope (const std::initializer_list< std::size_t > &indices) | |
Constructs a point from a list of vertex indices (must be exactly one) More... | |
template<typename V > | |
bool | Validate ([[maybe_unused]] const V &vertexList) const |
Checks if the polytope defines a valid point: More... | |
int | Compare (const Polytope &rhs) const |
Compares this point to the specified point with strict ordering. More... | |
std::size_t | size () const |
Gets the number of vertices in the polytope. More... | |
std::size_t | operator[] (std::size_t idx) const |
Gets the specified vertex of the polytope. More... | |
const_iterator | begin () const |
Gets begin iterator over the list of vertices of the polytope. More... | |
const_iterator | cbegin () const |
Gets begin iterator over the list of vertices of the polytope. More... | |
const_iterator | end () const |
Gets end iterator over the list of vertices of the polytope. More... | |
const_iterator | cend () const |
Gets begin iterator over the list of vertices of the polytope. More... | |
Specialization of the class for specifying indices of vertices for defining a DIM-dimensional polytope for DIM=0 (point)
typedef const std::size_t* ptems::Polytope< 0 >::const_iterator |
Type of iterator over the vertices.
typedef const std::size_t* ptems::Polytope< 0 >::iterator |
Type of iterator over the vertices.
|
inline |
Constructs a point from a list of vertex indices (must be exactly one)
std::invalid_argument | If the list is not exactly one element long |
Type | of iterator over list of vertices |
begin | The iterator to the start of the list of vertex indices |
end | The iterator to the end of the list of vertex indices |
|
inline |
Constructs a point from a vertex index.
index | The index of the vertex |
|
inline |
Constructs a point from a list of vertex indices (must be exactly one)
std::invalid_argument | If the list is not exactly one element long |
indices | The list of vertex indices |
|
inline |
Gets begin iterator over the list of vertices of the polytope.
|
inline |
Gets begin iterator over the list of vertices of the polytope.
|
inline |
Gets begin iterator over the list of vertices of the polytope.
|
inline |
Compares this point to the specified point with strict ordering.
rhs | The right hand line to compare to |
|
inline |
Gets end iterator over the list of vertices of the polytope.
|
inline |
Gets the specified vertex of the polytope.
std::out_of_range | If idx is greater than 0 |
idx | Index of vertex to get |
|
inline |
Gets the number of vertices in the polytope.
|
inline |
Checks if the polytope defines a valid point:
V | Type of vertex list - must be indexable |
vertexList | List of vertices to look up the polygon vertices in |