quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_search.a #include <Trace.h> ~Trace(); Trace(); Trace(const Trace& copy_sym); boolean setScore(float score); boolean setHistory(const History& copy_history); boolean setBackPointer(Trace* back_ptr); ulong incrementRefCount(ulong increment = DEF_REF_INCR); boolean setFrame(ulong frame); boolean setActive(boolean is_active);
description:x #include <Trace.h> // seed the top trace list with the start node of the search graph // Trace trace = new Trace(); trace.setFrame(0); trace.setBackPointer((Trace*)NULL); trace.getHistory()->push(search_levels_d(0).getSubGraph(0).getStart());
static const String CLASS_NAME;
static const String Trace::PARAM_SCORE;
enum TMODE { DECODE = 0, TRAIN, DEF_TMODE = DECODE};
static const float INACTIVE_SCORE = -11111111111111.0f;
static const float DEF_SCORE = 0.0;
static const ulong DEF_FRAME = 0;
static const ulong DEF_REF_INCR = 1;
static const ulong DEF_REF_DECR = 1;
static const long ERR = 90000;
static const long READ = 90001;
TMODE trace_mode_d;
Context** nsymbol_d;
SingleLinkedList<Trace> back_ptr_d;
History history_d;
SymbolGraphNode* symbol_node_d;
float score_d;
float lm_score_d;
ulong frame_d;
ulong reference_count_d;
static MemoryManager mgr_d;
static Integral::DEBUG debug_level_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
static boolean setDebug(Integral::DEBUG debug_level);
~Trace();
Trace(float score = DEF_SCORE);
Trace(const Trace& arg);
boolean assign(const Trace& copy_trace);
long sofSize() const;
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean readData(Sof& sof, const String& pname = String::EMPTY, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
boolean eq(const Trace& compare_trace) const;
boolean operator < (const Trace& trace_a);
boolean operator > (const Trace& trace_a);
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
boolean clear(Integral::CMODE ctype = Integral::DEF_CMODE);
boolean setTraceMode(TMODE arg);
TMODE getTraceMode();
boolean setScore(float score);
float getScore() const;
boolean setLMScore(float score);
float getLMScore() const;
boolean setNSymbol(Context**& arg);
Context**& getNSymbol();
boolean setSymbolNode(SymbolGraphNode* arg);
SymbolGraphNode* getSymbolNode();
boolean setHistory(const History& copy_history);
History* getHistory() const;
boolean setBackPointer(Trace* back_ptr);
Trace* getBackPointer() const;
ulong decrementRefCount(ulong decrement = DEF_REF_DECR);
ulong incrementRefCount(ulong increment = DEF_REF_INCR);
ulong getRefCount() const;
boolean setRefCount(ulong count);
boolean setFrame(ulong frame);
ulong getFrame() const;
boolean setActive(boolean is_active);
boolean isActive() const;
static boolean deleteTrace(Trace* in_trace, boolean is_recursive, boolean clean_search_node = false);
static boolean deleteTrace(Trace* in_trace, boolean is_recursive, BiGraph<TrainNode>* trellis, HashTable<HashKey<Trace>, BiGraphVertex<TrainNode> >* mapping, boolean clean_search_node = false);
static boolean deleteBackTraces(Trace* in_trace, boolean is_recursive, boolean clean_search_node = false);
static boolean deleteBackTraces(Trace* in_trace, boolean is_recursive, BiGraph<TrainNode>* trellis, HashTable<HashKey<Trace>, BiGraphVertex<TrainNode> >* mapping, boolean clean_search_node = false);
long hash(long capacity) const;