Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
wmtk::AttributeCollection< T > Struct Template Reference
Inheritance diagram for wmtk::AttributeCollection< T >:
wmtk::AbstractAttributeContainer

Public Member Functions

void move (size_t from, size_t to) override
 
void resize (size_t s) override
 
void clear () override
 
bool assign (size_t to, T &&val)
 
void rollback () override
 retrieve the protected attribute data on operation-fail
 
void begin_protect () override
 clean local buffers for attribute, and start recording
 
void end_protect () override
 clear local buffers and finish recording
 
const T & at (size_t i) const
 
const T & operator[] (size_t i) const
 
T & operator[] (size_t i)
 
size_t size () const
 

Public Attributes

tbb::enumerable_thread_specific< std::unordered_map< size_t, T > > m_rollback_list
 
tbb::concurrent_vector< T > m_attributes
 
tbb::enumerable_thread_specific< bool > recording {false}
 

Member Function Documentation

◆ begin_protect()

template<typename T >
void wmtk::AttributeCollection< T >::begin_protect ( )
inlineoverridevirtual

clean local buffers for attribute, and start recording

Implements wmtk::AbstractAttributeContainer.

◆ clear()

template<typename T >
void wmtk::AttributeCollection< T >::clear ( )
inlineoverridevirtual

◆ end_protect()

template<typename T >
void wmtk::AttributeCollection< T >::end_protect ( )
inlineoverridevirtual

clear local buffers and finish recording

Implements wmtk::AbstractAttributeContainer.

◆ move()

template<typename T >
void wmtk::AttributeCollection< T >::move ( size_t  from,
size_t  to 
)
inlineoverridevirtual

Reimplemented from wmtk::AbstractAttributeContainer.

◆ resize()

template<typename T >
void wmtk::AttributeCollection< T >::resize ( size_t  s)
inlineoverridevirtual

◆ rollback()

template<typename T >
void wmtk::AttributeCollection< T >::rollback ( )
inlineoverridevirtual

retrieve the protected attribute data on operation-fail

Implements wmtk::AbstractAttributeContainer.


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