diff options
author | Peng Wu <alexepico@gmail.com> | 2011-08-08 15:24:51 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-08-08 15:24:51 +0800 |
commit | 3de71392c23ff1012b9c38a03e6a53942eb704d5 (patch) | |
tree | ef197587359d76c182aaffb661d60a9bedcec239 /src/lookup/lookup.h | |
parent | e44f8dc3df4766331b4d4296fd2cf7f88f70145a (diff) | |
download | libpinyin-3de71392c23ff1012b9c38a03e6a53942eb704d5.tar.gz libpinyin-3de71392c23ff1012b9c38a03e6a53942eb704d5.tar.xz libpinyin-3de71392c23ff1012b9c38a03e6a53942eb704d5.zip |
refine namespace pinyin
Diffstat (limited to 'src/lookup/lookup.h')
-rw-r--r-- | src/lookup/lookup.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lookup/lookup.h b/src/lookup/lookup.h index fc98f95..8076d54 100644 --- a/src/lookup/lookup.h +++ b/src/lookup/lookup.h @@ -26,6 +26,8 @@ * @brief the definitions of common lookup related classes and structs. */ +namespace pinyin{ + typedef phrase_token_t lookup_key_t; struct lookup_value_t{ @@ -43,14 +45,12 @@ struct lookup_value_t{ } }; -namespace pinyin{ - class PinyinLargeTable; - class PhraseLargeTable; - class FacadePhraseIndex; - class Bigram; -}; -using namespace pinyin; +class PinyinLargeTable; +class PhraseLargeTable; +class FacadePhraseIndex; +class Bigram; + /* Note: * LookupStepIndex: @@ -68,4 +68,5 @@ typedef GHashTable * LookupStepIndex; /* Key: lookup_key_t, Value: int m, index to m_steps_content[i][m] */ typedef GArray * LookupStepContent; /* array of lookup_value_t */ +}; #endif |