Wildmeshing Toolkit
Loading...
Searching...
No Matches
wmtk::attribute::AttributeHandle Class Reference

Internal handle representation used by TypedAttributeManager. More...

#include <AttributeHandle.hpp>

Public Member Functions

 AttributeHandle ()=default
 
 AttributeHandle (const AttributeHandle &)=default
 
 AttributeHandle (AttributeHandle &&)=default
 
AttributeHandleoperator= (const AttributeHandle &)=default
 
AttributeHandleoperator= (AttributeHandle &&)=default
 
bool operator== (const AttributeHandle &other) const noexcept
 
bool operator< (const AttributeHandle &other) const noexcept
 
int64_t index () const noexcept
 
bool is_valid () const noexcept
 

Private Member Functions

 AttributeHandle (int64_t i) noexcept
 
AttributeHandleoperator= (int64_t i)
 

Private Attributes

int64_t m_index = -1
 

Friends

template<typename T >
class TypedAttributeManager
 
template<typename T >
class TypedAttributeHandle
 
class AttributeManager
 

Detailed Description

Internal handle representation used by TypedAttributeManager.

Definition at line 20 of file AttributeHandle.hpp.

Constructor & Destructor Documentation

◆ AttributeHandle() [1/4]

wmtk::attribute::AttributeHandle::AttributeHandle ( int64_t  i)
inlineprivatenoexcept

Definition at line 32 of file AttributeHandle.hpp.

◆ AttributeHandle() [2/4]

wmtk::attribute::AttributeHandle::AttributeHandle ( )
default

◆ AttributeHandle() [3/4]

wmtk::attribute::AttributeHandle::AttributeHandle ( const AttributeHandle )
default

◆ AttributeHandle() [4/4]

wmtk::attribute::AttributeHandle::AttributeHandle ( AttributeHandle &&  )
default

Member Function Documentation

◆ index()

◆ is_valid()

bool wmtk::attribute::AttributeHandle::is_valid ( ) const
inlinenoexcept

Definition at line 57 of file AttributeHandle.hpp.

References m_index.

Referenced by wmtk::attribute::TypedAttributeHandle< T >::is_valid().

Here is the caller graph for this function:

◆ operator<()

bool wmtk::attribute::AttributeHandle::operator< ( const AttributeHandle other) const
inlinenoexcept

Definition at line 54 of file AttributeHandle.hpp.

References m_index.

◆ operator=() [1/3]

AttributeHandle & wmtk::attribute::AttributeHandle::operator= ( AttributeHandle &&  )
default

◆ operator=() [2/3]

AttributeHandle & wmtk::attribute::AttributeHandle::operator= ( const AttributeHandle )
default

◆ operator=() [3/3]

AttributeHandle & wmtk::attribute::AttributeHandle::operator= ( int64_t  i)
inlineprivate

Definition at line 35 of file AttributeHandle.hpp.

References m_index.

◆ operator==()

bool wmtk::attribute::AttributeHandle::operator== ( const AttributeHandle other) const
inlinenoexcept

Definition at line 50 of file AttributeHandle.hpp.

References m_index.

Friends And Related Symbol Documentation

◆ AttributeManager

friend class AttributeManager
friend

Definition at line 28 of file AttributeHandle.hpp.

◆ TypedAttributeHandle

template<typename T >
friend class TypedAttributeHandle
friend

Definition at line 27 of file AttributeHandle.hpp.

◆ TypedAttributeManager

template<typename T >
friend class TypedAttributeManager
friend

Definition at line 25 of file AttributeHandle.hpp.

Member Data Documentation

◆ m_index

int64_t wmtk::attribute::AttributeHandle::m_index = -1
private

Definition at line 31 of file AttributeHandle.hpp.

Referenced by index(), is_valid(), operator<(), operator=(), and operator==().


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