HomeSort by relevance Sort by last modified time
    Searched defs:TNode (Results 1 - 18 of 18) sorted by null

  /nv-g11n/inputmethod/sunpinyin/slm/src/slm/
sim_slm.h 69 struct TNode : public TLeaf {
73 TNode(TSIMWordId theId=0, int ch=0, FREQ_TYPE fr=0, PR_TYPE theBOW=0.0)
sim_slmbuilder.h 52 typedef CSIMSlm::TNode TNode;
80 typedef std::vector<TNode> TNodeLevel;
93 void*FindChild(int lvl, TNode* root, TSIMWordId id);
slm.h 113 struct TNode {
  /nv-g11n/inputmethod/sunpinyin/slm/src/slm/tslmpack/
arpa_slm.h 61 struct TNode : public TLeaf {
67 typedef std::vector<TNode> TNodeLevel;
107 unsigned find_1st_child(unsigned lvl, const TNode& node, int last_child);
  /nv-g11n/inputmethod/sunpinyin/ime/src/lexicon/
pytrie.h 99 class TNode {
122 { return sizeof(TNode) + sizeof(TTransUnit)*nTransfer +
126 TNode() { *((uint32_t*)this) = 0; }
158 isValid(const TNode* pnode, bool allowNonComplete, bool allowGBK=true);
163 const TNode*
164 getRootNode() const { return (TNode*)(m_mem+getRootOffset()); }
166 const TNode*
168 { return (offset < getRootOffset())?NULL:((TNode*)(m_mem+offset)); }
172 //inline const TNode*
173 //transfer(const TNode* pnode, char c) cons
    [all...]
  /nv-g11n/inputmethod/sunpinyin/slm/src/lexicon/
pytrie.h 99 class TNode {
122 { return sizeof(TNode) + sizeof(TTransUnit)*nTransfer +
126 TNode() { *((uint32_t*)this) = 0; }
158 isValid(const TNode* pnode, bool allowNonComplete, bool allowGBK=true);
163 const TNode*
164 getRootNode() const { return (TNode*)(m_mem+getRootOffset()); }
166 const TNode*
168 { return (offset < getRootOffset())?NULL:((TNode*)(m_mem+offset)); }
172 //inline const TNode*
173 //transfer(const TNode* pnode, char c) cons
    [all...]
pytrie_gen.h 56 class TNode;
103 typedef std::map<unsigned char, TNode*> CTrans;
104 typedef std::set<TNode*> CNodeSet;
105 typedef std::list<TNode*> CNodeList;
154 typedef std::map<PNodeSet, TNode*> CStateMap;
156 class TNode {
165 TNode();
171 TNode m_RootNode;
190 print(FILE* fp, TNode* root, std::string& pinyin);
216 TNode*
    [all...]
pytrie_gen.cpp 283 CPinyinTrieMaker::TNode::TNode()
318 CPinyinTrieMaker::print(FILE* fp, TNode* root, std::string& pinyin)
354 CPinyinTrieMaker::TNode*
355 CPinyinTrieMaker::insertTransfer(TNode* pnode, unsigned char c)
360 TNode *p = new TNode();
381 TNode *pnode = &m_RootNode;
406 TNode* pnode = *itNode;
425 CPinyinTrieMaker::expandNode(TNode* pnode
    [all...]
  /nv-g11n/inputmethod/sunpinyin2/src/slm/
sim_slm.h 69 struct TNode : public TLeaf {
73 TNode(TSIMWordId theId=0, int ch=0, FREQ_TYPE fr=0, PR_TYPE theBOW=0.0)
sim_slmbuilder.h 52 typedef CSIMSlm::TNode TNode;
80 typedef std::vector<TNode> TNodeLevel;
93 void*FindChild(int lvl, TNode* root, TSIMWordId id);
slm.h 113 struct TNode {
  /nv-g11n/inputmethod/sunpinyin2/src/slm/tslmpack/
arpa_slm.h 61 struct TNode : public TLeaf {
67 typedef std::vector<TNode> TNodeLevel;
107 unsigned find_1st_child(unsigned lvl, const TNode& node, int last_child);
  /nv-g11n/inputmethod/sunpinyin/ime/src/slm/
slm.h 113 struct TNode {
  /nv-g11n/inputmethod/sunpinyin2/src/lexicon/
pytrie.h 46 struct TNode {
63 { return sizeof(TNode) + sizeof(TTransUnit)*nTransfer +
66 TNode()
112 isValid(const TNode* pnode, bool allowNonComplete, unsigned csLevel=0);
118 const TNode*
120 { return (TNode*)(m_mem+getRootOffset()); }
122 const TNode*
124 { return (offset < getRootOffset())?NULL:((TNode*)(m_mem+offset)); }
138 inline const TNode*
139 transfer(const TNode* pnode, unsigned s) cons
    [all...]
pytrie_gen.h 25 class TNode;
70 typedef std::map<unsigned, TNode*> CTrans;
71 typedef std::set<TNode*> CNodeSet;
72 typedef std::list<TNode*> CNodeList;
121 typedef std::map<PNodeSet, TNode*> CStateMap;
123 class TNode {
133 TNode();
138 TNode m_RootNode;
156 print(FILE* fp, TNode* root, std::string& pinyin);
165 TNode*
    [all...]
pytrie_gen.cpp 210 printf("\n %d primitive nodes", TNode::m_AllNodes.size()); fflush(stdout);
213 printf("\n %d total nodes", TNode::m_AllNodes.size()); fflush(stdout);
222 CPinyinTrieMaker::CNodeList CPinyinTrieMaker::TNode::m_AllNodes;
223 CPinyinTrieMaker::TNode::TNode()
283 CPinyinTrieMaker::print(FILE* fp, TNode* root, std::string& pinyin)
306 CPinyinTrieMaker::TNode*
307 CPinyinTrieMaker::insertTransfer(TNode* pnode, unsigned s)
312 TNode *p = new TNode();
    [all...]
  /nv-g11n/inputmethod/sunpinyin2/src/slm/tslmendian/
slm_file.cpp 43 * - node[0][] : CThreadSlm::TNode * slm.getLevelSize(0)
44 * - node[1][] : CThreadSlm::TNode * slm.getLevelSize(1)
46 * - node[N-1][] : CThreadSlm::TNode * slm.getLevelSize(N-1)
66 typedef CThreadSlm::TNode TNode;
275 m_nodes = read_values<TNode>(buf, m_nnode, do_swap);
  /nv-g11n/inputmethod/sunpinyin/slm/src/slm/tslmendian/
slm_file.cpp 43 * - node[0][] : CThreadSlm::TNode * slm.getLevelSize(0)
44 * - node[1][] : CThreadSlm::TNode * slm.getLevelSize(1)
46 * - node[N-1][] : CThreadSlm::TNode * slm.getLevelSize(N-1)
66 typedef CThreadSlm::TNode TNode;
276 m_nodes = read_values<TNode>(buf, m_nnode, do_swap);

Completed in 480 milliseconds