Download PlaNet Tutorial and Reference Manual
Transcript
#ifndef __foo_h__
#define __foo_h__
// file: foo.h
// Code for class foo generated by makeclass
#include "bar.h"
#include "glompf.h"
class foo :
virtual public bar,
virtual public glompf
{
// indices for accessing parameters
int _node_excess_index;
int _node_cap_index;
int _edge_cap_index;
int _graph_source_index;
int _graph_forbidden_index;
int _graph_target_index;
public:
// constructor & copy constructor
foo();
foo(const foo& G);
// parameter access functions
float get_excess(node v);
void set_excess(node v, float value);
float get_cap(node v);
void set_cap(node v, float value);
float get_cap(edge e);
void set_cap(edge e, float value);
node get_source();
void set_source(node value);
list<node>& get_forbidden();
node get_target();
void set_target(node value);
};
#endif
Figure B.1: File foo.h
45