dyng
Public Member Functions
Dyng::CorridorGravWriter Class Reference

Writes the Grav with the corridor and active graph highlighted. More...

#include <draw.hxx>

Inheritance diagram for Dyng::CorridorGravWriter:
Dyng::GravWriter

Public Member Functions

 CorridorGravWriter (const Net &net, const std::string &name, bool addgraph=false)
 
bool append () const
 Returns true iff the graph to be written should be appended. More...
 
bool node (index_type nodeid, Color &color, NodeShape &shape, std::string &desc)
 Get node info.
 
bool arc (index_type arcid, double &cost, double &flow, Color &color, std::string &desc)
 Get arc info.
 
void write (std::ostream &out)
 Write the graph to the given output stream.
 
- Public Member Functions inherited from Dyng::GravWriter
 GravWriter (const Net &net, const std::string &name)
 Create a GravWriter for a network. More...
 
virtual ~GravWriter ()
 Destructor.
 

Additional Inherited Members

- Public Types inherited from Dyng::GravWriter
enum  NodeShape { Disc, Circ }
 The shape of a node.
 
- Protected Attributes inherited from Dyng::GravWriter
const Net_net
 the network to be drawn
 
const std::string _name
 name of the graph in the grav file
 

Detailed Description

Writes the Grav with the corridor and active graph highlighted.

Member Function Documentation

◆ append()

bool Dyng::CorridorGravWriter::append ( ) const
virtual

Returns true iff the graph to be written should be appended.

If a graph is appended (to a previously written graph), the node and arc commands are considered augmentations to the previous graph. Otherwise the graph is considered a new graph.

The default implementation always returns true.

Reimplemented from Dyng::GravWriter.


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