#include <header.hh>
Public Member Functions | |
bool | Valid () const |
Score | GetScore () const |
void | SetScore (Score to) |
bool | operator< (const Header &other) const |
bool | operator> (const Header &other) const |
Arity | GetArity () const |
Note | GetNote () const |
void | SetNote (Note to) |
Moses::Range | GetRange () const |
void | SetRange (Moses::Range to) |
uint8_t * | Base () |
const uint8_t * | Base () const |
Protected Member Functions | |
Header () | |
Header (void *base) | |
Header (void *base, Arity arity) | |
uint8_t * | After () |
const uint8_t * | After () const |
Static Protected Attributes | |
static const std::size_t | kHeaderSize = sizeof(Score) + sizeof(Arity) + sizeof(Note) + sizeof(Moses::Range) |
Definition at line 14 of file header.hh.
search::Header::Header | ( | void * | base | ) | [inline, explicit, protected] |
search::Header::Header | ( | void * | base, | |
Arity | arity | |||
) | [inline, protected] |
const uint8_t* search::Header::After | ( | ) | const [inline, protected] |
uint8_t* search::Header::After | ( | ) | [inline, protected] |
Definition at line 63 of file header.hh.
References kHeaderSize.
Referenced by search::PartialEdge::Between(), search::GenericApplied< Applied >::Children(), and search::PartialEdge::NT().
uint8_t* search::Header::Base | ( | ) | [inline] |
Definition at line 49 of file header.hh.
Referenced by search::GenericApplied< Applied >::GenericApplied().
Arity search::Header::GetArity | ( | ) | const [inline] |
Definition at line 31 of file header.hh.
Referenced by search::PartialEdge::Between(), search::SingleBest::Complete(), and search::GenericApplied< Applied >::GenericApplied().
Moses::Range search::Header::GetRange | ( | ) | const [inline] |
Score search::Header::GetScore | ( | ) | const [inline] |
Definition at line 18 of file header.hh.
Referenced by search::SingleBest::Add(), search::SingleBest::Complete(), operator<(), and operator>().
bool search::Header::operator< | ( | const Header & | other | ) | const [inline] |
Definition at line 24 of file header.hh.
References GetScore().
bool search::Header::operator> | ( | const Header & | other | ) | const [inline] |
Definition at line 27 of file header.hh.
References GetScore().
void search::Header::SetNote | ( | Note | to | ) | [inline] |
Definition at line 38 of file header.hh.
Referenced by search::GenericApplied< Applied >::GenericApplied(), and search::EdgeGenerator::Pop().
void search::Header::SetRange | ( | Moses::Range | to | ) | [inline] |
Definition at line 45 of file header.hh.
Referenced by search::GenericApplied< Applied >::GenericApplied(), and search::EdgeGenerator::Pop().
void search::Header::SetScore | ( | Score | to | ) | [inline] |
Definition at line 21 of file header.hh.
Referenced by search::GenericApplied< Applied >::GenericApplied(), and search::EdgeGenerator::Pop().
bool search::Header::Valid | ( | ) | const [inline] |
Definition at line 16 of file header.hh.
Referenced by search::SingleBest::Add(), search::SingleBest::Complete(), and search::EdgeGenerator::Search().
const std::size_t search::Header::kHeaderSize = sizeof(Score) + sizeof(Arity) + sizeof(Note) + sizeof(Moses::Range) [static, protected] |
Definition at line 61 of file header.hh.
Referenced by After(), search::GenericApplied< Applied >::GenericApplied(), and search::GenericApplied< Applied >::Size().