tlx
|
Objectified string array pointer array. More...
#include <string_ptr.hpp>
Public Types | |
typedef StringSet_ | StringSet |
typedef StringSet::String | String |
typedef StringShadowPtr< StringSet_ > | WithShadow |
objectified string and shadow pointer class More... | |
Public Member Functions | |
StringPtr (const StringSet &ss) | |
constructor specifying all attributes More... | |
const StringSet & | active () const |
return currently active array More... | |
size_t | size () const |
return valid length More... | |
StringPtr | sub (size_t offset, size_t sub_size) const |
Advance (both) pointers by given offset, return sub-array. More... | |
template<typename LcpType > | |
void | set_lcp (size_t, const LcpType &) const |
set the i-th lcp to v and check its value More... | |
template<typename LcpType > | |
void | fill_lcp (const LcpType &) 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... | |
Objectified string array pointer array.
Definition at line 47 of file string_ptr.hpp.
typedef StringSet::String String |
Definition at line 51 of file string_ptr.hpp.
typedef StringSet_ StringSet |
Definition at line 50 of file string_ptr.hpp.
typedef StringShadowPtr<StringSet_> WithShadow |
objectified string and shadow pointer class
Definition at line 86 of file string_ptr.hpp.
constructor specifying all attributes
Definition at line 59 of file string_ptr.hpp.
|
inline |
return currently active array
Definition at line 63 of file string_ptr.hpp.
StringShadowPtr< StringSet_ > add_shadow | ( | const StringSet & | shadow | ) | const |
construct objectified string and shadow pointer class
Definition at line 343 of file string_ptr.hpp.
|
inline |
fill entire LCP array with v, excluding the first lcp[0] position!
Definition at line 83 of file string_ptr.hpp.
|
inline |
set the i-th lcp to v and check its value
Definition at line 79 of file string_ptr.hpp.
|
inline |
return valid length
Definition at line 66 of file string_ptr.hpp.
|
inline |
Advance (both) pointers by given offset, return sub-array.
Definition at line 69 of file string_ptr.hpp.
|
protected |
strings (front) array
Definition at line 55 of file string_ptr.hpp.
|
static |
if we want to save the LCPs
Definition at line 75 of file string_ptr.hpp.