ShellTree Class Reference

Class that allows to find in NLogN time all shells that overlap with a given box. More...

List of all members.

Public Member Functions

 ShellTree (const BasisInfoStruct &bis_, const real *rShells_)
 root node constructor.
 ShellTree (const BasisInfoStruct &bis_, const real *rshell, const std::list< int > &activeShells, const Box &bb)
 Constructs the ShellTree.
 ~ShellTree ()
void init (const BasisInfoStruct &bis_, const real *rShells_, const std::list< int > &activeShells, const Box &bb)
void getOverlappingWith (const real *center, real cellsz, std::map< int, int > &res) const

Private Attributes

const ShellSpecStructshells
ShellTreesmaller
ShellTreelarger
ergo_real dividingValue
int dividingDimension
std::map< int, ergo_realownShells
 set only for leaves, i.e.
ergo_real maxRadius
 upper limit of ownShell radius.

Detailed Description

Class that allows to find in NLogN time all shells that overlap with a given box.


Constructor & Destructor Documentation

ShellTree::ShellTree ( const BasisInfoStruct bis_,
const real rShells 
)

root node constructor.

It does some initalization work and passes on the ball to the leave constructors.

References ShellSpecStruct_::centerCoords, getBoundingBox(), init(), BasisInfoStruct::noOfShells, BasisInfoStruct::shellList, and shells.

Referenced by init().

ShellTree::ShellTree ( const BasisInfoStruct bis_,
const real rShells,
const std::list< int > &  activeShells,
const Box bb 
)

Constructs the ShellTree.

References init().

ShellTree::~ShellTree (  )  [inline]

References larger, and smaller.


Member Function Documentation

void ShellTree::getOverlappingWith ( const real center,
real  cellsz,
std::map< int, int > &  res 
) const
void ShellTree::init ( const BasisInfoStruct bis_,
const real rShells_,
const std::list< int > &  activeShells,
const Box bb 
)

Member Data Documentation

Referenced by getOverlappingWith(), and init().

Referenced by getOverlappingWith(), and init().

upper limit of ownShell radius.

Referenced by getOverlappingWith(), and init().

std::map<int,ergo_real> ShellTree::ownShells [private]

set only for leaves, i.e.

such ShellTree objects that have smaller and larger fields set to NULL. Tree node contains a shell

Referenced by getOverlappingWith(), and init().

Referenced by getOverlappingWith(), init(), and ShellTree().


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

Generated on 21 Nov 2012 for ergo by  doxygen 1.6.1