ThreeLevelTree Class Reference
[Charm++ Load Balancing Framework]

#include <HybridBaseLB.h>

Inheritance diagram for ThreeLevelTree:

Inheritance graph
[legend]
Collaboration diagram for ThreeLevelTree:

Collaboration graph
[legend]

Public Member Functions

 ThreeLevelTree ()
virtual ~ThreeLevelTree ()
virtual int numLevels ()
virtual int parent (int mype, int level)
virtual int isroot (int mype, int level)
virtual int numChildren (int mype, int level)
virtual void getChildren (int mype, int level, int *children, int &count)
virtual int numNodes (int level)

Private Attributes

int span [2]
int toproot
int nLevels

Detailed Description

Definition at line 49 of file HybridBaseLB.h.


Constructor & Destructor Documentation

ThreeLevelTree::ThreeLevelTree (  )  [inline]

Definition at line 55 of file HybridBaseLB.h.

References Converse::CkNumPes(), nLevels, span, and toproot.

virtual ThreeLevelTree::~ThreeLevelTree (  )  [inline, virtual]

Definition at line 63 of file HybridBaseLB.h.


Member Function Documentation

virtual int ThreeLevelTree::numLevels (  )  [inline, virtual]

Implements MyHierarchyTree.

Definition at line 64 of file HybridBaseLB.h.

References nLevels.

virtual int ThreeLevelTree::parent ( int  mype,
int  level 
) [inline, virtual]

Implements MyHierarchyTree.

Definition at line 65 of file HybridBaseLB.h.

References span, and toproot.

virtual int ThreeLevelTree::isroot ( int  mype,
int  level 
) [inline, virtual]

Implements MyHierarchyTree.

Definition at line 72 of file HybridBaseLB.h.

References span, and toproot.

Referenced by getChildren().

virtual int ThreeLevelTree::numChildren ( int  mype,
int  level 
) [inline, virtual]

Implements MyHierarchyTree.

Definition at line 78 of file HybridBaseLB.h.

References Converse::CkNumPes(), mymin(), and span.

Referenced by getChildren().

virtual void ThreeLevelTree::getChildren ( int  mype,
int  level,
int children,
int count 
) [inline, virtual]

Implements MyHierarchyTree.

Definition at line 85 of file HybridBaseLB.h.

References children, isroot(), numChildren(), and span.

virtual int ThreeLevelTree::numNodes ( int  level  )  [inline, virtual]

Implements MyHierarchyTree.

Definition at line 98 of file HybridBaseLB.h.

References Converse::CkNumPes(), nLevels, and span.


Field Documentation

int ThreeLevelTree::span[2] [private]

Definition at line 51 of file HybridBaseLB.h.

Referenced by getChildren(), isroot(), numChildren(), numNodes(), parent(), and ThreeLevelTree().

int ThreeLevelTree::toproot [private]

Definition at line 52 of file HybridBaseLB.h.

Referenced by isroot(), parent(), and ThreeLevelTree().

int ThreeLevelTree::nLevels [private]

Definition at line 53 of file HybridBaseLB.h.

Referenced by numLevels(), numNodes(), and ThreeLevelTree().


The documentation for this class was generated from the following file:
Generated on Sun Jun 29 13:35:31 2008 for Charm++ by  doxygen 1.5.1