stores index of some element, it is made as template class to avoid mixing faces, edges and vertices More...
#include <MRId.h>
Inheritance diagram for MR::Id< T >:Public Types | |
| using | ValueType = int |
Public Member Functions | |
| constexpr | Id () noexcept |
| the type used for internal representation of Id | |
| Id (NoInit) noexcept | |
| template<typename U = int, std::enable_if_t< std::is_integral_v< U >, std::nullptr_t > = nullptr> | |
| constexpr | Id (U i) noexcept |
| constexpr | operator ValueType () const |
| constexpr bool | valid () const |
| constexpr | operator bool () const |
| constexpr ValueType & | get () noexcept |
| constexpr bool | operator== (Id b) const |
| constexpr bool | operator!= (Id b) const |
| constexpr bool | operator< (Id b) const |
| template<typename U > | |
| bool | operator== (Id< U > b) const =delete |
| template<typename U > | |
| bool | operator!= (Id< U > b) const =delete |
| template<typename U > | |
| bool | operator< (Id< U > b) const =delete |
| constexpr Id & | operator-- () |
| constexpr Id & | operator++ () |
| constexpr Id | operator-- (int) |
| constexpr Id | operator++ (int) |
| constexpr Id & | operator-= (ValueType a) |
| constexpr Id & | operator+= (ValueType a) |
stores index of some element, it is made as template class to avoid mixing faces, edges and vertices