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

#include <MRId.h>

+ Inheritance diagram for MR::Id< T >:

Public Types

using ValueType = int
 

Public Member Functions

constexpr Id () noexcept
 
 Id (NoInit) noexcept
 
template<typename U , 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)
 

Member Typedef Documentation

◆ ValueType

template<typename T >
using MR::Id< T >::ValueType = int

Constructor & Destructor Documentation

◆ Id() [1/3]

template<typename T >
MR::Id< T >::Id ( )
inlineconstexprnoexcept

◆ Id() [2/3]

template<typename T >
MR::Id< T >::Id ( NoInit )
inlineexplicitnoexcept

◆ Id() [3/3]

template<typename T >
template<typename U , std::enable_if_t< std::is_integral_v< U >, std::nullptr_t > = nullptr>
MR::Id< T >::Id ( U i)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ get()

template<typename T >
ValueType & MR::Id< T >::get ( )
inlineconstexprnoexcept

◆ operator bool()

template<typename T >
MR::Id< T >::operator bool ( ) const
inlineexplicitconstexpr

◆ operator ValueType()

template<typename T >
MR::Id< T >::operator ValueType ( ) const
inlineconstexpr

◆ operator!=() [1/2]

template<typename T >
bool MR::Id< T >::operator!= ( Id< T > b) const
inlineconstexpr

◆ operator!=() [2/2]

template<typename T >
template<typename U >
bool MR::Id< T >::operator!= ( Id< U > b) const
delete

◆ operator++() [1/2]

template<typename T >
Id & MR::Id< T >::operator++ ( )
inlineconstexpr

◆ operator++() [2/2]

template<typename T >
Id MR::Id< T >::operator++ ( int )
inlineconstexpr

◆ operator+=()

template<typename T >
Id & MR::Id< T >::operator+= ( ValueType a)
inlineconstexpr

◆ operator--() [1/2]

template<typename T >
Id & MR::Id< T >::operator-- ( )
inlineconstexpr

◆ operator--() [2/2]

template<typename T >
Id MR::Id< T >::operator-- ( int )
inlineconstexpr

◆ operator-=()

template<typename T >
Id & MR::Id< T >::operator-= ( ValueType a)
inlineconstexpr

◆ operator<() [1/2]

template<typename T >
bool MR::Id< T >::operator< ( Id< T > b) const
inlineconstexpr

◆ operator<() [2/2]

template<typename T >
template<typename U >
bool MR::Id< T >::operator< ( Id< U > b) const
delete

◆ operator==() [1/2]

template<typename T >
bool MR::Id< T >::operator== ( Id< T > b) const
inlineconstexpr

◆ operator==() [2/2]

template<typename T >
template<typename U >
bool MR::Id< T >::operator== ( Id< U > b) const
delete

◆ valid()

template<typename T >
bool MR::Id< T >::valid ( ) const
inlineconstexpr

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