ug4
ug::ntree< tree_dim, world_dim, TElem, TCommonData >::Entry Struct Reference

An Entry combines an element with the index to the next entry in a leaf-node's entry list. More...

Public Member Functions

 Entry (const elem_t &e)
 

Public Attributes

elem_t elem
 
size_t nextEntryInd
 

Detailed Description

template<int tree_dim, int world_dim, class TElem, class TCommonData>
struct ug::ntree< tree_dim, world_dim, TElem, TCommonData >::Entry

An Entry combines an element with the index to the next entry in a leaf-node's entry list.

Note that exactly one 'Entry' object per element exists. Since 'Entry' also serves as a linked list, this means that an element can only be contained in one node at a time.

Constructor & Destructor Documentation

◆ Entry()

template<int tree_dim, int world_dim, class TElem , class TCommonData >
ug::ntree< tree_dim, world_dim, TElem, TCommonData >::Entry::Entry ( const elem_t e)
inline

Member Data Documentation

◆ elem

template<int tree_dim, int world_dim, class TElem , class TCommonData >
elem_t ug::ntree< tree_dim, world_dim, TElem, TCommonData >::Entry::elem

◆ nextEntryInd

template<int tree_dim, int world_dim, class TElem , class TCommonData >
size_t ug::ntree< tree_dim, world_dim, TElem, TCommonData >::Entry::nextEntryInd

index into m_entries. s_invalidIndex: no next entry. Used to create a linked list for each leaf-node.

Referenced by ug::ntree< tree_dim, world_dim, TElem, TCommonData >::calculate_center_of_mass().


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