quick start:g++ [flags ...] file ... #include; GraphArc(const GraphArc<TObject>& copy_arc); boolean setVertex(GraphVertex<TObject>* dest); GraphVertex<TObject>* getVertex() const; boolean containsData() const;
description:// declare the graph arc object // GraphArc<Char> arc; GraphVertex<Char> vertex; // set the items // arc.setVertex(&vertex); arc.setWeight(0.9); arc.setEpsilon(true);
static const String CLASS_NAME = L"GraphArc";
static const String DEF_PARAM = L"arc";
static const float DEF_WEIGHT = 0.0;
static const double DEF_OPTIONAL_WEIGHT = 0.0;
static const boolean DEF_EPSILON = false;
static const long ERR = 41000;
GraphVertex<TObject>* vertex_d;
Float weight_d;
Double weight1_d;
Double weight2_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;
~GraphArc();
GraphArc(GraphVertex<TObject>* = (GraphVertex<TObject>*)NULL, float weight = DEF_WEIGHT, boolean is_epsilon = DEF_EPSILON);
GraphArc(const GraphArc<TObject>& copy_arc);
boolean assign(const GraphArc<TObject>& copy_arc);
GraphArc<TObject>& operator=(const GraphArc<TObject>& arg);
boolean eq(const GraphArc<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(GraphArcVertex<TObject>* dest);
GraphVertex<TObject>* getVertex() const;
boolean setWeight(const float weight);
float getWeight() const;
boolean setAccumulator(const double weight);
double getAccumulator();
boolean setLanguageWeight(const double weight);
double getLanguageWeight();
boolean setAcousticWeight(const double weight);
double getAcousticWeight();
boolean setEpsilon(boolean is_epsilon = DEF_EPSILON);
boolean getEpsilon() const;
boolean containsData() const;
// create some temporary objects and items // GraphVertexvert0; GraphVertex vert1; GraphArc tmp_arc; GraphArc * tmp_dyn_arc = new GraphArc (); // 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"); }