ARB
Public Member Functions | Static Public Attributes | List of all members
Multiroot Class Reference

#include <SyncRoot.hxx>

Collaboration diagram for Multiroot:
Collaboration graph
[legend]

Public Member Functions

 Multiroot (const TreeContainer &trees)
 
 Multiroot (const Multiroot &other)
 
int size () const
 
int distanceSum (const RootSynchronizer &rsync) const
 
int distanceToCenterSum (const RootSynchronizer &rsync) const
 
int singleTreeDistanceSum (const RootSynchronizer &rsync, int idx)
 
ConstSizeAwareTreePtr get_node (int idx) const
 
void replace_node (int idx, ConstSizeAwareTreePtr newNode)
 

Static Public Attributes

static const int UNKNOWN_DISTANCE = -1
 

Detailed Description

Definition at line 39 of file SyncRoot.hxx.

Constructor & Destructor Documentation

Multiroot::Multiroot ( const TreeContainer trees)
inline
Multiroot::Multiroot ( const Multiroot other)
inline

Definition at line 71 of file SyncRoot.hxx.

References symmetric_matrix< T >::get(), symmetric_matrix< T >::set(), and size().

Member Function Documentation

int Multiroot::size ( ) const
inline

Definition at line 82 of file SyncRoot.hxx.

References symmetric_matrix< T >::size().

Referenced by Multiroot().

int Multiroot::distanceSum ( const RootSynchronizer rsync) const

Definition at line 484 of file SyncRoot.cxx.

References arb_assert, and RootSynchronizer::deconstructionPhase().

int Multiroot::distanceToCenterSum ( const RootSynchronizer rsync) const
int Multiroot::singleTreeDistanceSum ( const RootSynchronizer rsync,
int  idx 
)

Definition at line 506 of file SyncRoot.cxx.

References arb_assert.

ConstSizeAwareTreePtr Multiroot::get_node ( int  idx) const
inline

Definition at line 87 of file SyncRoot.hxx.

References NULp.

void Multiroot::replace_node ( int  idx,
ConstSizeAwareTreePtr  newNode 
)

Definition at line 517 of file SyncRoot.cxx.

References arb_assert.

Member Data Documentation

const int Multiroot::UNKNOWN_DISTANCE = -1
static

Definition at line 57 of file SyncRoot.hxx.


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