Public Member Functions

zeus::TEdge Class Reference

#include <Vertice.h>

List of all members.

Public Member Functions

 TEdge ()
 TEdge (Uint uiVertice1, Uint uiVertice2, Float fWeight)
virtual ~TEdge ()
void assign (const TEdge &rInPar)
bool equals (const TEdge &rInPar, bool bIgnoreWeight=false) const
Uint getVertice1 () const
Uint getVertice2 () const
Float getWeight () const
TEdge inverse () const
void setWeight (Float fValue)
TEdgeoperator= (const TEdge &rInPar)
bool operator== (const TEdge &rInPar) const
bool operator!= (const TEdge &rInPar) const

Detailed Description

Implementation of the graph edge


Constructor & Destructor Documentation

zeus::TEdge::TEdge (  ) [inline]

Creates an empty edge

zeus::TEdge::TEdge ( Uint  uiVertice1,
Uint  uiVertice2,
Float  fWeight 
) [inline]

Creates an edge for two vertices

virtual zeus::TEdge::~TEdge (  ) [inline, virtual]

Destroys the edge


Member Function Documentation

void zeus::TEdge::assign ( const TEdge rInPar ) [inline]

assigns an edge

bool zeus::TEdge::equals ( const TEdge rInPar,
bool  bIgnoreWeight = false 
) const [inline]

checks if two edges are equal

Parameters:
rInPar: edge to compare with
bIgnoreWeight: ignores the weight
Uint zeus::TEdge::getVertice1 (  ) const [inline]
Uint zeus::TEdge::getVertice2 (  ) const [inline]
Float zeus::TEdge::getWeight (  ) const [inline]
TEdge zeus::TEdge::inverse (  ) const [inline]

inverses the edge

bool zeus::TEdge::operator!= ( const TEdge rInPar ) const [inline]

Operator to check if two edges are not equal

TEdge& zeus::TEdge::operator= ( const TEdge rInPar ) [inline]

Operator to assign

bool zeus::TEdge::operator== ( const TEdge rInPar ) const [inline]

Operator to check if two edges are equal

void zeus::TEdge::setWeight ( Float  fValue ) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:32:28