Skip to content

Class muda::IdWithType

template <typename T>

ClassList > muda > IdWithType

Inherited by the following classes: muda::ClosureId, muda::NodeId, muda::VarId, muda::details::LocalVarId

Public Types

Type Name
typedef T value_type

Public Static Attributes

Type Name
constexpr auto invalid_id = = std::numeric_limits<value_type>::max()

Public Functions

Type Name
MUDA_GENERIC IdWithType (value_type value) noexcept
MUDA_GENERIC IdWithType () noexcept
MUDA_GENERIC bool is_valid () noexcept const
MUDA_GENERIC value_type value () noexcept const

Protected Attributes

Type Name
value_type m_value = {invalid_id}

Public Types Documentation

typedef value_type

using muda::IdWithType< T >::value_type =  T;

Public Static Attributes Documentation

variable invalid_id

constexpr auto muda::IdWithType< T >::invalid_id;

Public Functions Documentation

function IdWithType [1/2]

inline explicit MUDA_GENERIC muda::IdWithType::IdWithType (
    value_type value
) noexcept

function IdWithType [2/2]

inline explicit MUDA_GENERIC muda::IdWithType::IdWithType () noexcept

function is_valid

inline MUDA_GENERIC bool muda::IdWithType::is_valid () noexcept const

function value

inline MUDA_GENERIC value_type muda::IdWithType::value () noexcept const

Protected Attributes Documentation

variable m_value

value_type muda::IdWithType< T >::m_value;

Friends Documentation

friend operator!=

inline MUDA_GENERIC friend bool muda::IdWithType::operator!= (
    const IdWithType & lhs,
    const IdWithType & rhs
) noexcept

friend operator<

inline MUDA_GENERIC friend bool muda::IdWithType::operator< (
    const IdWithType & lhs,
    const IdWithType & rhs
) noexcept

friend operator<<

inline std::ostream & muda::IdWithType::operator<< (
    std::ostream & os,
    const IdWithType & id
) 

friend operator==

inline MUDA_GENERIC friend bool muda::IdWithType::operator== (
    const IdWithType & lhs,
    const IdWithType & rhs
) noexcept

friend operator>

inline MUDA_GENERIC friend bool muda::IdWithType::operator> (
    const IdWithType & lhs,
    const IdWithType & rhs
) noexcept


The documentation for this class was generated from the following file src/muda/tools/id_with_type.h