ug4
|
#include <lg_ntree.h>
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_t > | traits |
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_t & | bounding_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_t & | common_data () const |
returns the common-data stored in the tree More... | |
const NTreeDesc & | desc () 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 |
typedef ntree<tree_dim, world_dim, grid_elem_t*, NTreeGridData<world_dim> > ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::base_t |
typedef NTreeGridData<world_dim>::position_attachment_t ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::position_attachment_t |
|
inline |
|
inline |
|
inline |
References ug::ntree< tree_dim, world_dim, grid_elem_t *, NTreeGridData< world_dim > >::add_element(), ug::ntree< tree_dim, world_dim, grid_elem_t *, NTreeGridData< world_dim > >::clear(), ug::lg_ntree< tree_dim, world_dim, grid_elem_t >::m_gridData, ug::ntree< tree_dim, world_dim, grid_elem_t *, NTreeGridData< world_dim > >::rebalance(), and ug::ntree< tree_dim, world_dim, grid_elem_t *, NTreeGridData< world_dim > >::set_common_data().
Referenced by ug::GlobalGridFunctionGradientData< TGridFunction >::GlobalGridFunctionGradientData(), ug::GlobalGridFunctionNumberData< TGridFunction, elemDim >::GlobalGridFunctionNumberData(), ug::OverlyingSubsetFinder< TDomain >::OverlyingSubsetFinder(), and ug::ZRayTracer< TDomain >::ZRayTracer().
|
inline |
|
private |