#include <RulePhrase.h>
Public Types | |
typedef std::vector< const RuleSymbol * > | Coll |
Public Member Functions | |
size_t | GetSize () const |
void | Add (const RuleSymbol *symbol) |
const RuleSymbol * | operator[] (size_t index) const |
const RuleSymbol * | Front () const |
const RuleSymbol * | Back () const |
int | Compare (const RulePhrase &other) const |
void | Output (std::ostream &out) const |
std::string | Debug () const |
Public Attributes | |
Coll | m_coll |
Definition at line 18 of file RulePhrase.h.
typedef std::vector<const RuleSymbol*> RulePhrase::Coll |
Definition at line 21 of file RulePhrase.h.
void RulePhrase::Add | ( | const RuleSymbol * | symbol | ) | [inline] |
Definition at line 28 of file RulePhrase.h.
References m_coll.
Referenced by Rule::CreateSource(), and Rule::CreateTarget().
const RuleSymbol* RulePhrase::Back | ( | ) | const [inline] |
Definition at line 39 of file RulePhrase.h.
References m_coll.
Referenced by Rule::Prevalidate().
int RulePhrase::Compare | ( | const RulePhrase & | other | ) | const |
Definition at line 16 of file RulePhrase.cpp.
References RuleSymbol::Compare(), GetSize(), and m_coll.
Referenced by CompareRules::operator()().
std::string RulePhrase::Debug | ( | ) | const |
Definition at line 44 of file RulePhrase.cpp.
References Output().
const RuleSymbol* RulePhrase::Front | ( | ) | const [inline] |
size_t RulePhrase::GetSize | ( | ) | const [inline] |
Definition at line 24 of file RulePhrase.h.
References m_coll.
Referenced by Compare(), Rule::CreateAlignments(), Rule::Debug(), Rule::GetScope(), and Rule::Prevalidate().
const RuleSymbol* RulePhrase::operator[] | ( | size_t | index | ) | const [inline] |
void RulePhrase::Output | ( | std::ostream & | out | ) | const |
Definition at line 35 of file RulePhrase.cpp.
References m_coll, and RuleSymbol::Output().
Referenced by Debug(), and Rule::Output().
Definition at line 22 of file RulePhrase.h.
Referenced by Add(), Back(), Compare(), Front(), GetSize(), operator[](), and Output().