Specialization of the class for specifying indices of vertices for defining a DIM-dimensional polytope for DIM=1 (line) 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 line from a list of vertex indices (must be exactly two) More... | |
| Polytope (std::size_t index1, std::size_t index2) | |
| Constructs a line from two vertices. More... | |
| Polytope (const std::initializer_list< std::size_t > &indices) | |
| Constructs a line from a list of vertex indices (must be exactly two) More... | |
| template<typename V > | |
| bool | Validate ([[maybe_unused]] const V &vertexList) const |
| Checks if the polytope defines a valid line: More... | |
| int | Compare (const Polytope &rhs) const |
| Compares this line to the specified line with strict ordering. More... | |
| std::set< Polytope< 0 > > | Faces () const |
| Gets list of faces of the line (vertices) 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=1 (line)
| typedef const std::size_t* ptems::Polytope< 1 >::const_iterator |
Type of iterator over the vertices.
| typedef const std::size_t* ptems::Polytope< 1 >::iterator |
Type of iterator over the vertices.
|
inline |
Constructs a line from a list of vertex indices (must be exactly two)
| std::invalid_argument | If the list is not exactly two elements 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 line from two vertices.
| index1 | The index of the first vertex |
| index2 | The index of the second vertex |
|
inline |
Constructs a line from a list of vertex indices (must be exactly two)
| std::invalid_argument | If the list is not exactly two elements 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 line to the specified line 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 list of faces of the line (vertices)
|
inline |
Gets the specified vertex of the polytope.
| std::out_of_range | If idx is greater than 1 |
| idx | Index of vertex to get |
|
inline |
Gets the number of vertices in the polytope.
|
inline |
Checks if the polytope defines a valid line:
| V | Type of vertex list - must be indexable |
| vertexList | List of vertices to look up the polygon vertices in |