quick start:g++ [flags ...] file ... #include; BiGraphArc(const BiGraphArc<TObject>& copy_arc); boolean setVertex(BiGraphVertex<TObject>* dest); BiGraphVertex<TObject>* getVertex() const; boolean containsData() const;
description:// declare the graph arc object // BiGraphArc<Char> arc; BiGraphVertex<Char> vertex; // set the items // arc.setVertex(&vertex); arc.setWeight(0.9); arc.setEpsilon(true);
static const String CLASS_NAME = L"BiGraphArc";
static const String DEF_PARAM = L"arc";
static const float DEF_WEIGHT = 0.0;
static const boolean DEF_EPSILON = false;
static const long ERR = 41000;
BiGraphVertex<TObject>* vertex_d;
Float weight_d;
Boolean is_epsilon_d;
static Integral::DEBUG debug_level_d;
static MemoryManager mgr_d;
static const String& name();
static boolean setDebug(Integral::DEBUG level);
boolean debug(const unichar* message) const;
~BiGraphArc();
BiGraphArc(BiGraphVertex<TObject>* = (BiGraphVertex<TObject>*)NULL, float weight = DEF_WEIGHT, boolean is_epsilon = DEF_EPSILON);
BiGraphArc(const BiGraphArc<TObject>& copy_arc);
boolean assign(const BiGraphArc<TObject>& copy_arc);
BiGraphArc<TObject>& operator=(const BiGraphArc<TObject>& arg);
boolean eq(const BiGraphArc<TObject>& compare_arc) const;
i/o methods are not defined for this class.
void* operator new(size_t size);
void* operator new[](size_t size);
void operator delete(void* ptr);
void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
boolean clear(Integral::CMODE ctype = Integral::DEF_CMODE);
boolean setVertex(BiGraphArcVertex<TObject>* dest);
BiGraphVertex<TObject>* getVertex() const;
boolean setWeight(float weight);
float getWeight() const;
boolean setEpsilon(boolean is_epsilon = DEF_EPSILON);
boolean getEpsilon() const;
boolean containsData() const;
// create some temporary objects and items // BiGraphVertexvert0; BiGraphVertex vert1; BiGraphArc tmp_arc; BiGraphArc * tmp_dyn_arc = new BiGraphArc (); // set the items // tmp_dyn_arc->setVertex(&vert1); tmp_dyn_arc->setWeight(0.79); tmp_dyn_arc->setEpsilon(true); // try the copy assign // tmp_arc.assign(*tmp_dyn_arc); if ((tmp_arc.vertex_d != &vert1) || (tmp_dyn_arc->vertex_d != &vert1) || !(tmp_arc.weight_d.almostEqual(0.79)) || !(tmp_dyn_arc->weight_d.almostEqual(0.79)) || !tmp_arc.is_epsilon_d || !tmp_dyn_arc->is_epsilon_d) { Console::put(L"Error in assign method"); }