Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::BinaryTree Class Reference

Class to create a binary tree. More...

Inheritance diagram for Arcane::BinaryTree:
Collaboration diagram for Arcane::BinaryTree:

Classes

struct  TreeNode
 Information about a tree node. More...

Public Member Functions

 BinaryTree (ITraceMng *tm)
void doPartition (Int32 nb_part)
ConstArrayView< TreeNodetree () const
 List of tree nodes.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const

Private Member Functions

void _doRecursivePart (Int32 partition_index, Int32 &part_id, Int32 &nb_child, Int32 parent_index, Int32 level)

Private Attributes

UniqueArray< TreeNodem_tree_info
Int32 m_nb_part = 0

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Class to create a binary tree.

Definition at line 157 of file ArcaneGeometricMeshPartitionerService.cc.

Constructor & Destructor Documentation

◆ BinaryTree()

Arcane::BinaryTree::BinaryTree ( ITraceMng * tm)
inlineexplicit

Definition at line 213 of file ArcaneGeometricMeshPartitionerService.cc.

Member Function Documentation

◆ _doRecursivePart()

void Arcane::BinaryTree::_doRecursivePart ( Int32 partition_index,
Int32 & part_id,
Int32 & nb_child,
Int32 parent_index,
Int32 level )
inlineprivate

Definition at line 241 of file ArcaneGeometricMeshPartitionerService.cc.

◆ doPartition()

void Arcane::BinaryTree::doPartition ( Int32 nb_part)
inline

Definition at line 219 of file ArcaneGeometricMeshPartitionerService.cc.

◆ tree()

ConstArrayView< TreeNode > Arcane::BinaryTree::tree ( ) const
inline

List of tree nodes.

Definition at line 234 of file ArcaneGeometricMeshPartitionerService.cc.

Member Data Documentation

◆ m_nb_part

Int32 Arcane::BinaryTree::m_nb_part = 0
private

Definition at line 239 of file ArcaneGeometricMeshPartitionerService.cc.

◆ m_tree_info

UniqueArray<TreeNode> Arcane::BinaryTree::m_tree_info
private

Definition at line 238 of file ArcaneGeometricMeshPartitionerService.cc.


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