PolyDEAL
 
Loading...
Searching...
No Matches
dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators > Struct Template Reference

#include <poly_utils.h>

Inheritance diagram for dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >:

Public Types

using InternalNode
 
using Leaf
 

Public Member Functions

 Rtree_visitor (const Translator &translator, unsigned int target_level, std::vector< std::vector< typename Triangulation< boost::geometry::dimension< Box >::value >::active_cell_iterator > > &boxes, std::vector< std::vector< unsigned int > > &csr)
 
void operator() (const InternalNode &node)
 
void operator() (const Leaf &)
 

Public Attributes

const Translator & translator
 
size_t level
 
size_t node_counter
 
size_t next_level_leafs_processed
 
const size_t target_level
 
std::vector< std::vector< typename Triangulation< boost::geometry::dimension< Box >::value >::active_cell_iterator > > & agglomerates
 
std::vector< std::vector< unsigned int > > & row_ptr
 

Detailed Description

template<typename Value, typename Options, typename Translator, typename Box, typename Allocators>
struct dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >

Definition at line 149 of file poly_utils.h.

Member Typedef Documentation

◆ InternalNode

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
using dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::InternalNode
Initial value:
typename boost::geometry::index::detail::rtree::internal_node<
Value,
typename Options::parameters_type,
Box,
Allocators,
typename Options::node_tag>::type

An alias that identifies an InternalNode of the tree.

Definition at line 168 of file poly_utils.h.

◆ Leaf

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
using dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::Leaf
Initial value:
typename boost::geometry::index::detail::rtree::leaf<
Value,
typename Options::parameters_type,
Box,
Allocators,
typename Options::node_tag>::type

An alias that identifies a Leaf of the tree.

Definition at line 179 of file poly_utils.h.

Constructor & Destructor Documentation

◆ Rtree_visitor()

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::Rtree_visitor ( const Translator & translator,
unsigned int target_level,
std::vector< std::vector< typename Triangulation< boost::geometry::dimension< Box >::value >::active_cell_iterator > > & boxes,
std::vector< std::vector< unsigned int > > & csr )
inline

Definition at line 241 of file poly_utils.h.

References level.

Member Function Documentation

◆ operator()() [1/2]

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
void dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::operator() ( const InternalNode & node)
inline

Implements the visitor interface for InternalNode objects. If the node belongs to the level next to target_level, then fill the bounding box vector for that node.

Definition at line 265 of file poly_utils.h.

References level.

◆ operator()() [2/2]

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
void dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::operator() ( const Leaf & leaf)
inline

Implements the visitor interface for Leaf objects.

Definition at line 337 of file poly_utils.h.

Member Data Documentation

◆ agglomerates

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
std::vector<std::vector<typename Triangulation< boost::geometry::dimension<Box>::value>::active_cell_iterator> >& dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::agglomerates

A reference to the input vector of vector of BoundingBox objects. This vector v has the following property: v[i] = vector with all of the BoundingBox bounded by the i-th node of the Rtree.

Definition at line 229 of file poly_utils.h.

◆ level

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
size_t dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::level

Store the level we are currently visiting.

Definition at line 207 of file poly_utils.h.

◆ next_level_leafs_processed

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
size_t dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::next_level_leafs_processed

Definition at line 215 of file poly_utils.h.

◆ node_counter

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
size_t dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::node_counter

Index used to keep track of the number of different visited nodes during recursion/

Definition at line 213 of file poly_utils.h.

◆ row_ptr

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
std::vector<std::vector<unsigned int> >& dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::row_ptr

Definition at line 231 of file poly_utils.h.

◆ target_level

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
const size_t dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::target_level

The level where children are living. Before: "we want to extract from the RTree object."

Definition at line 220 of file poly_utils.h.

◆ translator

template<typename Value , typename Options , typename Translator , typename Box , typename Allocators >
const Translator& dealii::PolyUtils::Rtree_visitor< Value, Options, Translator, Box, Allocators >::translator

Translator interface, required by the boost implementation of the rtree.

Definition at line 202 of file poly_utils.h.


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