tlx
|
Objectified string and LCP array pointer arrays. More...
#include <string_ptr.hpp>
Public Types | |
typedef StringSet_ | StringSet |
typedef LcpType_ | LcpType |
typedef StringSet::String | String |
typedef StringShadowLcpPtr< StringSet_, LcpType_ > | WithShadow |
objectified string and shadow pointer class More... | |
Public Member Functions | |
StringLcpPtr (const StringSet &ss, LcpType *lcp) | |
constructor specifying all attributes More... | |
const StringSet & | active () const |
return currently active array More... | |
size_t | size () const |
return valid length More... | |
StringLcpPtr | sub (size_t offset, size_t sub_size) const |
Advance (both) pointers by given offset, return sub-array. More... | |
LcpType * | lcp () const |
return LCP array pointer More... | |
LcpType | get_lcp (size_t i) const |
return LCP array value More... | |
void | set_lcp (size_t i, const LcpType &v) const |
set the i-th lcp to v and check its value More... | |
void | fill_lcp (const LcpType &v) const |
fill entire LCP array with v, excluding the first lcp[0] position! More... | |
WithShadow | add_shadow (const StringSet &shadow) const |
construct objectified string and shadow pointer class More... | |
Static Public Attributes | |
static const bool | with_lcp |
if we want to save the LCPs More... | |
Protected Attributes | |
StringSet | active_ |
strings (front) array More... | |
LcpType * | lcp_ |
lcp array More... | |
Objectified string and LCP array pointer arrays.
Definition at line 97 of file string_ptr.hpp.
typedef LcpType_ LcpType |
Definition at line 101 of file string_ptr.hpp.
typedef StringSet::String String |
Definition at line 102 of file string_ptr.hpp.
typedef StringSet_ StringSet |
Definition at line 100 of file string_ptr.hpp.
typedef StringShadowLcpPtr<StringSet_, LcpType_> WithShadow |
objectified string and shadow pointer class
Definition at line 156 of file string_ptr.hpp.
|
inline |
constructor specifying all attributes
Definition at line 113 of file string_ptr.hpp.
|
inline |
return currently active array
Definition at line 117 of file string_ptr.hpp.
StringShadowLcpPtr< StringSet_, LcpType_ > add_shadow | ( | const StringSet & | shadow | ) | const |
construct objectified string and shadow pointer class
Definition at line 349 of file string_ptr.hpp.
|
inline |
fill entire LCP array with v, excluding the first lcp[0] position!
Definition at line 150 of file string_ptr.hpp.
|
inline |
return LCP array value
Definition at line 138 of file string_ptr.hpp.
|
inline |
return LCP array pointer
Definition at line 133 of file string_ptr.hpp.
|
inline |
set the i-th lcp to v and check its value
Definition at line 144 of file string_ptr.hpp.
|
inline |
return valid length
Definition at line 120 of file string_ptr.hpp.
|
inline |
Advance (both) pointers by given offset, return sub-array.
Definition at line 123 of file string_ptr.hpp.
|
protected |
strings (front) array
Definition at line 106 of file string_ptr.hpp.
|
protected |
lcp array
Definition at line 109 of file string_ptr.hpp.
|
static |
if we want to save the LCPs
Definition at line 130 of file string_ptr.hpp.