concepts::GraphVertex< F > Class Template Reference

Template class to define a graph vertex. More...

#include <graph.hh>

Public Member Functions

virtual void addNeighbour (const F Value)
 
virtual void addWeight (const int Weight)
 
virtual void addWeightedNeighbour (const F Value, const int Weight=1)
 
virtual void clearNeighbours ()
 
virtual int getDomain () const
 
virtual Sequence< F > getNeighbours () const
 
virtual F getValue () const
 
virtual int getWeight () const
 
 GraphVertex ()
 
 GraphVertex (const F Value, const int Weight=1, const int Domain=0)
 
virtual std::ostream & info (std::ostream &os) const
 
virtual void setDomain (const int Domain)
 
virtual void setNeighbours (const Sequence< F > &Neighbours)
 
virtual void setValue (const F Value)
 
virtual void setWeight (const int Weight)
 
 ~GraphVertex ()
 

Protected Attributes

int Domain_
 
Sequence< F > Neighbours_
 
Value_
 
int Weight_
 

Detailed Description

template<class F>
class concepts::GraphVertex< F >

Template class to define a graph vertex.

Definition at line 32 of file graph.hh.

Constructor & Destructor Documentation

◆ GraphVertex() [1/2]

template<class F >
concepts::GraphVertex< F >::GraphVertex ( )
inline

Definition at line 35 of file graph.hh.

◆ GraphVertex() [2/2]

template<class F >
concepts::GraphVertex< F >::GraphVertex ( const F  Value,
const int  Weight = 1,
const int  Domain = 0 
)
inline

Definition at line 36 of file graph.hh.

◆ ~GraphVertex()

template<class F >
concepts::GraphVertex< F >::~GraphVertex ( )
inline

Definition at line 37 of file graph.hh.

Member Function Documentation

◆ addNeighbour()

template<class F >
void concepts::GraphVertex< F >::addNeighbour ( const F  Value)
virtual

Definition at line 145 of file graph.hh.

◆ addWeight()

template<class F >
void concepts::GraphVertex< F >::addWeight ( const int  Weight)
virtual

Definition at line 133 of file graph.hh.

◆ addWeightedNeighbour()

template<class F >
void concepts::GraphVertex< F >::addWeightedNeighbour ( const F  Value,
const int  Weight = 1 
)
virtual

Definition at line 153 of file graph.hh.

◆ clearNeighbours()

template<class F >
void concepts::GraphVertex< F >::clearNeighbours
virtual

Definition at line 168 of file graph.hh.

◆ getDomain()

template<class F >
int concepts::GraphVertex< F >::getDomain
virtual

Definition at line 192 of file graph.hh.

◆ getNeighbours()

template<class F >
Sequence< F > concepts::GraphVertex< F >::getNeighbours
virtual

Definition at line 186 of file graph.hh.

◆ getValue()

template<class F >
F concepts::GraphVertex< F >::getValue
virtual

Definition at line 174 of file graph.hh.

◆ getWeight()

template<class F >
int concepts::GraphVertex< F >::getWeight
virtual

Definition at line 180 of file graph.hh.

◆ info()

template<class F >
std::ostream & concepts::GraphVertex< F >::info ( std::ostream &  os) const
virtual

Definition at line 59 of file graph.hh.

◆ setDomain()

template<class F >
void concepts::GraphVertex< F >::setDomain ( const int  Domain)
virtual

Definition at line 162 of file graph.hh.

◆ setNeighbours()

template<class F >
void concepts::GraphVertex< F >::setNeighbours ( const Sequence< F > &  Neighbours)
virtual

Definition at line 139 of file graph.hh.

◆ setValue()

template<class F >
void concepts::GraphVertex< F >::setValue ( const F  Value)
virtual

Definition at line 121 of file graph.hh.

◆ setWeight()

template<class F >
void concepts::GraphVertex< F >::setWeight ( const int  Weight)
virtual

Definition at line 127 of file graph.hh.

Member Data Documentation

◆ Domain_

template<class F >
int concepts::GraphVertex< F >::Domain_
protected

Definition at line 55 of file graph.hh.

◆ Neighbours_

template<class F >
Sequence<F> concepts::GraphVertex< F >::Neighbours_
protected

Definition at line 53 of file graph.hh.

◆ Value_

template<class F >
F concepts::GraphVertex< F >::Value_
protected

Definition at line 52 of file graph.hh.

◆ Weight_

template<class F >
int concepts::GraphVertex< F >::Weight_
protected

Definition at line 54 of file graph.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich