The Finite Resolution Dynamics Software
Public Member Functions | Private Attributes | List of all members
EdgeAdder< GraphType > Class Template Reference

Auxiliary class for adding edges to a graph. More...

#include <attractor.h>

Public Member Functions

 EdgeAdder (GraphType &graph)
 The only allowed constructor of an edge adder object. More...
 
void add (int edge)
 Adds an edge to the graph. More...
 

Private Attributes

GraphType & g
 A reference to the graph to which the vertices are to be added. More...
 

Detailed Description

template<class GraphType>
class EdgeAdder< GraphType >

Auxiliary class for adding edges to a graph.

Definition at line 55 of file attractor.h.

Constructor & Destructor Documentation

◆ EdgeAdder()

template<class GraphType>
EdgeAdder< GraphType >::EdgeAdder ( GraphType &  graph)
inline

The only allowed constructor of an edge adder object.

Definition at line 59 of file attractor.h.

Member Function Documentation

◆ add()

template<class GraphType>
void EdgeAdder< GraphType >::add ( int  edge)
inline

Adds an edge to the graph.

Definition at line 62 of file attractor.h.

References EdgeAdder< GraphType >::g.

Member Data Documentation

◆ g

template<class GraphType>
GraphType& EdgeAdder< GraphType >::g
private

A reference to the graph to which the vertices are to be added.

Definition at line 67 of file attractor.h.

Referenced by EdgeAdder< GraphType >::add().


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