Cambridge SMT System
ucam::hifst::CYKgrid Class Reference

functor that provides cykgrid access methods More...

#include <data.cykparser.cykgrid.hpp>

Public Member Functions

const ssgrammar_listofrules_toperator() (const uint cc, const uint x, const uint y)
 Get list of grammar rules assigned to (cc,x,y) More...
 
uint operator() (const uint cc, const uint x, const uint y, const uint rulepos)
 Get a specific rule at (cc,x,y) corresponding to index rulepos. More...
 
void Add (const uint cc, const uint x, const uint y, const uint ruleidx)
 Add a rule to the cyk grid at (cc,x,y) More...
 
void reset ()
 Clear cyk grid. More...
 
std::size_t size ()
 Return actual size of the cyk grid. More...
 

Detailed Description

functor that provides cykgrid access methods

Definition at line 32 of file data.cykparser.cykgrid.hpp.

Member Function Documentation

void ucam::hifst::CYKgrid::Add ( const uint  cc,
const uint  x,
const uint  y,
const uint  ruleidx 
)
inline

Add a rule to the cyk grid at (cc,x,y)

Definition at line 52 of file data.cykparser.cykgrid.hpp.

Here is the caller graph for this function:

const ssgrammar_listofrules_t& ucam::hifst::CYKgrid::operator() ( const uint  cc,
const uint  x,
const uint  y 
)
inline

Get list of grammar rules assigned to (cc,x,y)

Definition at line 40 of file data.cykparser.cykgrid.hpp.

uint ucam::hifst::CYKgrid::operator() ( const uint  cc,
const uint  x,
const uint  y,
const uint  rulepos 
)
inline

Get a specific rule at (cc,x,y) corresponding to index rulepos.

Definition at line 46 of file data.cykparser.cykgrid.hpp.

void ucam::hifst::CYKgrid::reset ( )
inline

Clear cyk grid.

Definition at line 59 of file data.cykparser.cykgrid.hpp.

Here is the caller graph for this function:

std::size_t ucam::hifst::CYKgrid::size ( )
inline

Return actual size of the cyk grid.

Definition at line 63 of file data.cykparser.cykgrid.hpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: