メインページ | ネームスペース一覧 | クラス階層 | アルファベット順一覧 | 構成 | ファイル一覧 | ネームスペースメンバ | 構成メンバ | ファイルメンバ

クラス language::JapaneseLanguage

#include <japanese-language.hh>

language::JapaneseLanguageに対する継承グラフ

Inheritance graph
[凡例]
language::JapaneseLanguageのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

Public 型

typedef std::set< std::string > Synonyms
typedef std::map< int, SynonymsWords
typedef dictionary::Dictionary<
const Namable
NamableDictionary
typedef std::map< int, std::string > Parameters
enum  WordType {
  wt_yes, wt_no, wt_hello, wt_it_is,
  wt_smile, wt_going_to, wt_acknowledge, wt_laught
}
enum  SentenceType {
  st_yes, st_no, st_hello, st_it_is,
  st_going_to, st_acknowledge
}

Public メソッド

virtual std::string make_sentence (int type)
const Namablefind (const std::string &s, std::string *res=NULL)
void set_parameter (int index, const std::string &s)
const std::string & get_parameter (int index)

Static Public メソッド

static JapaneseLanguageget_instance ()

Protected メソッド

 JapaneseLanguage ()
 ~JapaneseLanguage ()
void add_word (int type, const std::string &s)
const std::string & pick_word (int type) const
void add_namable (const std::string &s, const Namable &n)

Protected 変数

Words _words
NamableDictionary _namables
Parameters _parameters

型定義

typedef dictionary::Dictionary<const Namable> language::Language::NamableDictionary [inherited]
 

typedef std::map<int, std::string> language::Language::Parameters [inherited]
 

typedef std::set<std::string> language::Language::Synonyms [inherited]
 

typedef std::map<int, Synonyms> language::Language::Words [inherited]
 


列挙型

enum language::Language::SentenceType [inherited]
 

列挙型の値:
st_yes 
st_no 
st_hello 
st_it_is 
st_going_to 
st_acknowledge 

enum language::Language::WordType [inherited]
 

列挙型の値:
wt_yes 
wt_no 
wt_hello 
wt_it_is 
wt_smile 
wt_going_to 
wt_acknowledge 
wt_laught 


コンストラクタとデストラクタ

language::JapaneseLanguage::JapaneseLanguage  )  [protected]
 

関数の呼び出しグラフ:

language::JapaneseLanguage::~JapaneseLanguage  )  [protected]
 


関数

void language::Language::add_namable const std::string &  s,
const Namable n
[inline, protected, inherited]
 

関数の呼び出しグラフ:

void language::Language::add_word int  type,
const std::string &  s
[inline, protected, inherited]
 

const Namable * language::Language::find const std::string &  s,
std::string *  res = NULL
[inline, inherited]
 

関数の呼び出しグラフ:

JapaneseLanguage & language::JapaneseLanguage::get_instance  )  [static]
 

const std::string & language::Language::get_parameter int  index  )  [inline, inherited]
 

std::string language::JapaneseLanguage::make_sentence int  type  )  [virtual]
 

language::Languageを実装しています.

関数の呼び出しグラフ:

const std::string & language::Language::pick_word int  type  )  const [protected, inherited]
 

void language::Language::set_parameter int  index,
const std::string &  s
[inline, inherited]
 


変数

NamableDictionary language::Language::_namables [protected, inherited]
 

Parameters language::Language::_parameters [protected, inherited]
 

Words language::Language::_words [protected, inherited]
 


このクラスの説明は次のファイルから生成されました:
Cronous Emulatorに対してWed Aug 17 06:18:50 2005に生成されました。  doxygen 1.4.2-20050421