ug4
ug::lg_ntree< tree_dim, world_dim, grid_elem_t > Class Template Reference

#include <lg_ntree.h>

+ Inheritance diagram for ug::lg_ntree< tree_dim, world_dim, grid_elem_t >:

Public Types

typedef ntree< tree_dim, world_dim, grid_elem_t *, NTreeGridData< world_dim > > base_t
 
typedef NTreeGridData< world_dim >::position_attachment_t position_attachment_t
 
- Public Types inherited from ug::ntree< tree_dim, world_dim, grid_elem_t *, NTreeGridData< world_dim > >
typedef traits::box_t box_t
 
typedef NTreeGridData< world_dim > common_data_t
 
typedef const_ntree_element_iterator< elem_t, Entry > elem_iterator_t
 
typedef grid_elem_t * elem_t
 
typedef traits::real_t real_t
 
typedef ntree_traits< tree_dim, world_dim, elem_t, common_data_ttraits
 
typedef traits::vector_t vector_t
 

Public Member Functions

template<class TIterator >
void create_tree (TIterator elemsBegin, TIterator elemsEnd)
 
 lg_ntree ()
 
 lg_ntree (Grid &grid, position_attachment_t aPos)
 
void set_grid (Grid &grid, position_attachment_t aPos)
 
- Public Member Functions inherited from ug::ntree< tree_dim, world_dim, grid_elem_t *, NTreeGridData< world_dim > >
void add_element (const elem_t &elem)
 adds an element to the tree. More...
 
const box_tbounding_box (size_t nodeId) const
 returns the smallest box which contains all elements of the given node More...
 
const size_t * child_node_ids (size_t nodeId) const
 returns an array of child-id's for the given node More...
 
void clear ()
 
const common_data_tcommon_data () const
 returns the common-data stored in the tree More...
 
const NTreeDescdesc () const
 returns the balancing-parameters of the tree. More...
 
elem_iterator_t elems_begin (size_t nodeId) const
 returns an iterator to the first element of a given node More...
 
elem_iterator_t elems_end (size_t nodeId) const
 returns an iterator to the end of the element-sequence of a given node More...
 
bool empty () const
 returns true if the tree is empty More...
 
void enable_warnings (bool enable)
 enabled or disable warning messages More...
 
size_t level (size_t nodeId) const
 returns the number tree-level in which the node is located More...
 
 ntree ()
 
size_t num_child_nodes (size_t nodeId) const
 returns the number of children of a node More...
 
size_t num_delayed_elements () const
 returns the number of elements which have been added but are not yet accessible in the tree. More...
 
size_t num_elements (size_t nodeId) const
 returns the number of elements that the given node contains More...
 
size_t num_nodes () const
 returns the total number of nodes in the tree More...
 
void rebalance ()
 rebalances the whole tree More...
 
void set_common_data (const common_data_t &commonData)
 sets the common-data which the tree passes on to callback methods More...
 
void set_desc (const NTreeDesc &desc)
 sets the balancing-parameters of the tree. More...
 
size_t size () const
 returns the number of entries in the tree (delayed entries excluded) More...
 
bool warnings_enabled () const
 

Private Attributes

NTreeGridData< world_dim > m_gridData
 

Member Typedef Documentation

◆ base_t

template<int tree_dim, int world_dim, class grid_elem_t >
typedef ntree<tree_dim, world_dim, grid_elem_t*, NTreeGridData<world_dim> > ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::base_t

◆ position_attachment_t

template<int tree_dim, int world_dim, class grid_elem_t >
typedef NTreeGridData<world_dim>::position_attachment_t ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::position_attachment_t

Constructor & Destructor Documentation

◆ lg_ntree() [1/2]

template<int tree_dim, int world_dim, class grid_elem_t >
ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::lg_ntree ( )
inline

◆ lg_ntree() [2/2]

template<int tree_dim, int world_dim, class grid_elem_t >
ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::lg_ntree ( Grid grid,
position_attachment_t  aPos 
)
inline

Member Function Documentation

◆ create_tree()

◆ set_grid()

template<int tree_dim, int world_dim, class grid_elem_t >
void ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::set_grid ( Grid grid,
position_attachment_t  aPos 
)
inline

Member Data Documentation

◆ m_gridData

template<int tree_dim, int world_dim, class grid_elem_t >
NTreeGridData<world_dim> ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::m_gridData
private

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