quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_search_a #include <Instance.h> boolean setInstanceMode(INSTANCE_MODE arg); boolean setInstanceState(INSTANCE_STATE arg); boolean setScore(float score); boolean setHistory(History& history);
description:Instance* curr_instance; Instance* next_instance; next_instance = new Instance(*curr_instance); next_instance->setBackPointer(curr_instance);
static const String CLASS_NAME;
enum INSTANCE_MODE { DECODE = 0, TRAIN, DEF_INSTANCE_MODE = DECODE };
enum INSTANCE_STATE { INACTIVE = 0, PSEUDO_ACTIVE, ACTIVE, DEF_INSTANCE_STATE = INACTIVE };
static const float INACTIVE_SCORE = -11111111111111.0f;
static const float DEF_SCORE = 0.0;
static const ulong DEF_FRAME = 0;
static const ulong DEF_COUNT = 0;
static const ulong DEF_SKIP_LEVEL = 0;
static const ulong DEF_REF_INCR = 1;
static const ulong DEF_REF_DECR = 1;
INSTANCE_MODE instance_mode_d;
INSTANCE_STATE instance_state_d;
Context** nsymbol_d;
Instance* back_ptr_d;
ulong skip_symbol_d;
ulong skip_level_d;
History* history_d;
Context* symbol_d;
History* symbol_stack_d;
SymbolGraphNode* symbol_node_d;
SingleLinkedList<Instance> back_ptr_d;
float score_d;
float lm_score_d;
ulong frame_d;
ulong reference_count_d;
static Integral::DEBUG debug_level_d;
static MemoryManager mgr_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);
~Instance();
Instance(float arg = DEF_SCORE);
Instance(const Instance& arg);
boolean assign(const Instance& arg);
not present.
long sofSize() const;
boolean read(Sof& sof, long tag, const String& cname = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& cname = CLASS_NAME) const;
boolean readData(Sof& sof, const String& pname = String::EMPTY, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean writeData(Sof& sof, const String& pname = String::EMPTY) const;
boolean eq(const Instance& arg) const;
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 cmode = Integral::DEF_CMODE);
boolean match(const Instance& instance_a) const;
boolean setInstanceMode(INSTANCE_MODE arg);
INSTANCE_MODE getInstanceMode();
boolean setInstanceState(INSTANCE_STATE arg);
INSTANCE_STATE getInstanceState();
boolean setScore(float score);
float getScore() const;
boolean setLMScore(float score);
float getLMScore() const;
SymbolGraphNode* getSymbolNode();
boolean setSymbolNode(SymbolGraphNode* arg);
Context**& getNSymbol() const;
boolean setNSymbol(Context**& arg);
boolean setSkipSymbol(ulong symbol);
ulong getSkipSymbol();
boolean setSkipLevel(ulong level);
ulong getSkipLevel();
boolean setHistory(History& history);
History* getHistory() const;
boolean setPrevHistory(History& history);
History* getPrevHistory() const;
boolean setBackPointer(Instance* back_ptr);
Instance* getBackPointer() const;
boolean printHistory(const History& history);
boolean hasNextLevelContext();
boolean ascend(boolean verbose = false);
boolean descend(boolean verbose = false);
ulong decrementRefCount(ulong decrement = DEF_REF_DECR);
ulong incrementRefCount(ulong increment = DEF_REF_INCR);
boolean setRefCount(ulong count);
ulong getRefCount() const;
boolean setFrame(ulong frame);
ulong getFrame() const;
boolean setActive(boolean is_active);
boolean isActive() const;
static boolean deleteInstance(Instance* in_instance, boolean is_recursive, HashTable<HashKey<Instance>, BiGraphVertex<TrainNode> >* mapping, boolean clean_search_node = false);
static boolean deleteInstance(Instance* in_instance, boolean is_recursive, boolean clean_search_node = false);
static boolean deleteBackInstances(Instance* in_instance, boolean is_recursive, HashTable<HashKey<Instance>, BiGraphVertex<TrainNode> >* mapping, boolean clean_search_node = false);
static boolean deleteBackInstances(Instance* in_instance, boolean is_recursive, boolean clean_search_node = false);