15 #ifndef DATA_CYKPARSER_CYKBACKPOINTERS_HPP 16 #define DATA_CYKPARSER_CYKBACKPOINTERS_HPP 32 typedef unordered_map<unsigned, cykparser_ruledependencies_t >
33 cykparser_backpointers_t;
37 cykparser_backpointers_t bp_;
42 const unsigned x,
const unsigned y ) {
47 inline void Add (
const unsigned cc,
const unsigned x,
const unsigned y,
54 inline void Add (
const unsigned cc,
const unsigned x,
const unsigned y,
61 inline std::size_t
size() {
void reset()
Delete cyk backpointers.
std::vector< cykparser_rulebpcoordinates_t > cykparser_ruledependencies_t
void Add(const unsigned cc, const unsigned x, const unsigned y, const cykparser_rulebpcoordinates_t &coords)
Add set of backpointers to the grid.
std::basic_string< uint > cykparser_rulebpcoordinates_t
const cykparser_ruledependencies_t & operator()(const unsigned cc, const unsigned x, const unsigned y)
functor that provides cyk backpointers
std::size_t size()
Size of the backpointer structure (number of cc,x,y elements inserted).
void Add(const unsigned cc, const unsigned x, const unsigned y, const cykparser_ruledependencies_t &coords)
Add all the set of backpointers to the grid.