tudocomp
– The TU Dortmund Compression Framework
tdc::esp::SLP Struct Reference

#include <SLP.hpp>

Public Member Functions

 SLP ()
 
 SLP (std::vector< std::array< size_t, 2 >> &&r, size_t root, bool e)
 
void derive_text_rec (std::ostream &o, size_t rule) const
 
std::ostream & derive_text (std::ostream &o) const
 
std::string derive_text_s () const
 
size_t node_idx (size_t n) const
 
const std::array< size_t, 2 > & node (size_t n) const
 

Public Attributes

std::vector< std::array< size_t, 2 > > rules
 
size_t root_rule = 0
 
bool empty = true
 

Detailed Description

Definition at line 12 of file SLP.hpp.

Constructor & Destructor Documentation

◆ SLP() [1/2]

tdc::esp::SLP::SLP ( )
inline

Definition at line 17 of file SLP.hpp.

◆ SLP() [2/2]

tdc::esp::SLP::SLP ( std::vector< std::array< size_t, 2 >> &&  r,
size_t  root,
bool  e 
)
inline

Definition at line 18 of file SLP.hpp.

Member Function Documentation

◆ derive_text()

std::ostream& tdc::esp::SLP::derive_text ( std::ostream &  o) const
inline

Definition at line 33 of file SLP.hpp.

◆ derive_text_rec()

void tdc::esp::SLP::derive_text_rec ( std::ostream &  o,
size_t  rule 
) const
inline

Definition at line 25 of file SLP.hpp.

◆ derive_text_s()

std::string tdc::esp::SLP::derive_text_s ( ) const
inline

Definition at line 40 of file SLP.hpp.

◆ node()

const std::array<size_t, 2>& tdc::esp::SLP::node ( size_t  n) const
inline

Definition at line 52 of file SLP.hpp.

◆ node_idx()

size_t tdc::esp::SLP::node_idx ( size_t  n) const
inline

Definition at line 47 of file SLP.hpp.

Member Data Documentation

◆ empty

bool tdc::esp::SLP::empty = true

Definition at line 15 of file SLP.hpp.

◆ root_rule

size_t tdc::esp::SLP::root_rule = 0

Definition at line 14 of file SLP.hpp.

◆ rules

std::vector<std::array<size_t, 2> > tdc::esp::SLP::rules

Definition at line 13 of file SLP.hpp.


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