TreeIntVectSet Class Reference
IntVectSet implementation based on tree representation.
More...
#include <TreeIntVectSet.H>
Collaboration diagram for TreeIntVectSet:
[legend]List of all members.
Detailed Description
IntVectSet implementation based on tree representation.
For explanations of these functions please look at IntVectSet class when the documentation doesn't appear here.
- See also:
- IntVectSet
Further details of how non-recursive TreeNode design works:
(for a 2D tree)
(m_tree)
+ -- 0
(a)+ - 0
1
1 +
1 <------you are here
+ - + - 0
0 1
0 1
0 0
for the node indicated, the 'index' vector would contain
index=[ 0 1 3 ...............]
parents=[&m_tree &a ..................]
or directly refered to as m_tree.nodes[1].nodes[3]
the tree indicates a covering of an index space in either
1 or 0. 1 is stored in the tree by pointing at the static
'full' data member, 0 is stored as a 0.
every 'nodes' member of a TreeNode object can be either
0, &full, or a pointer .
The interpretation of the tree depends on what m_spanBox is.
nodes[i] indicates whether the i'th quadrant of the parent
Box is full, empty, or needs to be parsed deeper.
Constructor & Destructor Documentation
TreeIntVectSet::TreeIntVectSet |
( |
|
) |
[inline] |
|
TreeIntVectSet::TreeIntVectSet |
( |
const Box & |
|
) |
[inline] |
|
TreeIntVectSet::TreeIntVectSet |
( |
const TreeIntVectSet & |
a_sivs |
) |
[inline] |
|
Member Function Documentation
void TreeIntVectSet::clear |
( |
|
) |
|
|
void TreeIntVectSet::coarsen |
( |
int |
iref = 2 |
) |
|
|
|
fast if iref is power of 2
fast if iref is power of 2 |
void TreeIntVectSet::compact |
( |
|
) |
const |
|
bool TreeIntVectSet::contains |
( |
const Box & |
box |
) |
const |
|
bool TreeIntVectSet::contains |
( |
const IntVect & |
iv |
) |
const |
|
void TreeIntVectSet::createBoxes |
( |
Vector< Box > & |
boxes, |
|
|
int & |
size |
|
) |
const |
|
Vector<Box> TreeIntVectSet::createBoxes |
( |
|
) |
const |
|
void TreeIntVectSet::define |
( |
const Box & |
|
) |
|
|
void TreeIntVectSet::grow |
( |
int |
idir, |
|
|
int |
igrow |
|
) |
|
|
void TreeIntVectSet::grow |
( |
int |
igrow |
) |
|
|
bool TreeIntVectSet::isEmpty |
( |
|
) |
const |
|
void TreeIntVectSet::linearIn |
( |
const void *const |
inBuf |
) |
|
|
void TreeIntVectSet::linearOut |
( |
void *const |
a_outBuf |
) |
const |
|
int TreeIntVectSet::linearSize |
( |
|
) |
const |
|
const Box & TreeIntVectSet::minBox |
( |
|
) |
const [inline] |
|
void TreeIntVectSet::nestingRegion |
( |
int |
a_radius, |
|
|
const ProblemDomain & |
a_domain, |
|
|
int |
granularity |
|
) |
|
|
void TreeIntVectSet::nestingRegion |
( |
int |
a_radius, |
|
|
const Box & |
a_domain, |
|
|
int |
granularity |
|
) |
|
|
int TreeIntVectSet::numPts |
( |
|
) |
const |
|
bool TreeIntVectSet::operator< |
( |
const TreeIntVectSet & |
a_sivs |
) |
const |
|
|
Primary sorting criterion: numPts(). Secondary sorting criterion: lexigraphical ordering of the IntVects, taken in the order traversed by TreeIntVectSetIterator. In a total tie, returns false. |
void TreeIntVectSet::recalcMinBox |
( |
|
) |
const |
|
void TreeIntVectSet::refine |
( |
int |
iref = 2 |
) |
|
|
|
fast if iref is power of 2
fast if iref is power of 2 |
void TreeIntVectSet::shift |
( |
const IntVect & |
iv |
) |
|
|
Friends And Related Function Documentation
friend struct Flag [friend] |
|
The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:02:31 2005 for Chombo&AMRSelfGravity by
1.4.1