MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::Id< T > Class Template Reference

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 ValueTypeget () 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 Idoperator-- ()
 
constexpr Idoperator++ ()
 
constexpr Id operator-- (int)
 
constexpr Id operator++ (int)
 
constexpr Idoperator-= (ValueType a)
 
constexpr Idoperator+= (ValueType a)
 

Detailed Description

template<typename T>
class MR::Id< T >

stores index of some element, it is made as template class to avoid mixing faces, edges and vertices


The documentation for this class was generated from the following file: