Typedefs | |
| typedef std::pair< std::pair < std::string, std::vector < float > >, size_t > | CNAlt |
| typedef std::vector< CNAlt > | CNCol |
| typedef std::vector< CNCol > | CN |
Functions | |
| char | get (const std::string &in, int c) |
| void | eatws (const std::string &in, int &c) |
| std::string | getEscapedString (const std::string &in, int &c) |
| float | getFloat (const std::string &in, int &c) |
| int | getInt (const std::string &in, int &c) |
| CNAlt | getCNAlt (const std::string &in, int &c) |
| CNCol | getCNCol (const std::string &in, int &c) |
| CN | parsePCN (const std::string &in) |
Variables | |
| const std::string | chars = "'\\" |
| const char & | quote = chars[0] |
| const char & | slash = chars[1] |
| typedef std::pair<std::pair<std::string, std::vector<float> >, size_t> PCN::CNAlt |
| typedef std::vector<CNAlt> PCN::CNCol |
| void PCN::eatws | ( | const std::string & | in, | |
| int & | c | |||
| ) | [inline] |
Referenced by getCNAlt(), getCNCol(), getEscapedString(), getFloat(), getInt(), and parsePCN().

| char PCN::get | ( | const std::string & | in, | |
| int | c | |||
| ) | [inline] |
| CNAlt PCN::getCNAlt | ( | const std::string & | in, | |
| int & | c | |||
| ) |
References eatws(), getEscapedString(), and getFloat().
Referenced by getCNCol().


| CNCol PCN::getCNCol | ( | const std::string & | in, | |
| int & | c | |||
| ) |
References eatws(), and getCNAlt().
Referenced by parsePCN().


| std::string PCN::getEscapedString | ( | const std::string & | in, | |
| int & | c | |||
| ) |
References eatws(), quote, and slash.
Referenced by getCNAlt().


| float PCN::getFloat | ( | const std::string & | in, | |
| int & | c | |||
| ) |
References eatws().
Referenced by getCNAlt().


| int PCN::getInt | ( | const std::string & | in, | |
| int & | c | |||
| ) |
| CN PCN::parsePCN | ( | const std::string & | in | ) |
Given a string ((('foo',0.1),('bar',0.9)),...) representation of a confusion net in PCN format, return a CN object
References eatws(), and getCNCol().
Referenced by Moses::WordLattice::Read().


| const std::string PCN::chars = "'\\" |
| const char& PCN::quote = chars[0] |
Referenced by getEscapedString().
| const char& PCN::slash = chars[1] |
Referenced by getEscapedString().
1.5.9