Public Member Functions | Static Public Member Functions | List of all members
TreeRelativePosition Class Reference

#include <tree_position.h>

Public Member Functions

 TreeRelativePosition (double relpos_sum_)
 TreeRelativePosition (const TreeRelativePosition &p1, const TreeRelativePosition &p2)
bool is_known () const
double value () const
int compare (const TreeRelativePosition &right) const

Static Public Member Functions

static TreeRelativePosition unknown ()

Detailed Description

Definition at line 27 of file tree_position.h.

Constructor & Destructor Documentation

TreeRelativePosition::TreeRelativePosition ( double  relpos_sum_)

Definition at line 38 of file tree_position.h.

TreeRelativePosition::TreeRelativePosition ( const TreeRelativePosition p1,
const TreeRelativePosition p2 

Definition at line 42 of file tree_position.h.

Member Function Documentation

static TreeRelativePosition TreeRelativePosition::unknown ( )

Definition at line 36 of file tree_position.h.

Referenced by TreePositionLookup::relative().

bool TreeRelativePosition::is_known ( ) const
double TreeRelativePosition::value ( ) const

Definition at line 48 of file tree_position.h.

References is_known(), and nt_assert.

Referenced by compare(), and TopologyShader::shade().

int TreeRelativePosition::compare ( const TreeRelativePosition right) const

Definition at line 52 of file tree_position.h.

References double_cmp(), and value().

Referenced by CombinedPosInfo::compare().

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