|
Thrill
0.1
|
Objectified string array pointer and shadow pointer array for out-of-place swapping of pointers.
Definition at line 37 of file string_ptr.hpp.
#include <string_ptr.hpp>
Public Types | |
| typedef StringSet::Iterator | Iterator |
| typedef StringSet::String | String |
| typedef StringSet_ | StringSet |
Public Member Functions | |
| StringShadowPtr (const StringSet &original, const StringSet &shadow, bool flipped=false) | |
| constructor specifying all attributes More... | |
| const StringSet & | active () const |
| return currently active array More... | |
| StringShadowPtr | copy_back () const |
| template<typename LcpType > | |
| void | fill_lcp (const LcpType &) const |
| fill entire LCP array with v, excluding the first lcp[0] position! More... | |
| StringShadowPtr | flip (size_t offset, size_t sub_size) const |
| bool | flipped () const |
| true if flipped to back 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... | |
| const StringSet & | shadow () const |
| return current shadow array More... | |
| size_t | size () const |
| return valid length More... | |
| StringShadowPtr | sub (size_t offset, size_t sub_size) const |
| Advance (both) pointers by given offset, return sub-array without flip. More... | |
Static Public Attributes | |
| static const bool | with_lcp = false |
| if we want to save the LCPs More... | |
Protected Attributes | |
| StringSet | active_ |
| strings (front) and temporary shadow (back) array More... | |
| bool | flipped_ |
| false if active_ is original, true if shadow_ is original More... | |
| StringSet | shadow_ |
| typedef StringSet::Iterator Iterator |
Definition at line 173 of file string_ptr.hpp.
| typedef StringSet::String String |
Definition at line 172 of file string_ptr.hpp.
| typedef StringSet_ StringSet |
Definition at line 171 of file string_ptr.hpp.
|
inline |
constructor specifying all attributes
Definition at line 184 of file string_ptr.hpp.
|
inline |
return currently active array
Definition at line 189 of file string_ptr.hpp.
References StringPtr< StringSet_ >::active_.
Referenced by RadixStep_CE0< StringShadowPtr >::RadixStep_CE0(), RadixStep_CE2< StringShadowPtr >::RadixStep_CE2(), and RadixStep_CE3< StringShadowPtr >::RadixStep_CE3().
|
inline |
return subarray pointer to n strings in original array, might copy from shadow before returning.
Definition at line 219 of file string_ptr.hpp.
Referenced by RadixStep_CE0< StringShadowPtr >::RadixStep_CE0(), RadixStep_CE2< StringShadowPtr >::RadixStep_CE2(), and RadixStep_CE3< StringShadowPtr >::RadixStep_CE3().
|
inline |
fill entire LCP array with v, excluding the first lcp[0] position!
Definition at line 238 of file string_ptr.hpp.
|
inline |
construct a StringShadowPtr object specifying a sub-array with flipping to other array.
Definition at line 210 of file string_ptr.hpp.
References StringPtr< StringSet_ >::size().
Referenced by RadixStep_CE0< StringShadowPtr >::RadixStep_CE0(), RadixStep_CE2< StringShadowPtr >::RadixStep_CE2(), and RadixStep_CE3< StringShadowPtr >::RadixStep_CE3().
|
inline |
true if flipped to back array
Definition at line 195 of file string_ptr.hpp.
|
inline |
set the i-th lcp to v and check its value
Definition at line 234 of file string_ptr.hpp.
Referenced by RadixStep_CE0< StringShadowPtr >::RadixStep_CE0(), RadixStep_CE2< StringShadowPtr >::RadixStep_CE2(), and RadixStep_CE3< StringShadowPtr >::RadixStep_CE3().
|
inline |
return current shadow array
Definition at line 192 of file string_ptr.hpp.
Referenced by RadixStep_CE0< StringShadowPtr >::RadixStep_CE0(), RadixStep_CE2< StringShadowPtr >::RadixStep_CE2(), and RadixStep_CE3< StringShadowPtr >::RadixStep_CE3().
|
inline |
return valid length
Definition at line 198 of file string_ptr.hpp.
Referenced by RadixStep_CE0< StringShadowPtr >::RadixStep_CE0(), and RadixStep_CE2< StringShadowPtr >::RadixStep_CE2().
|
inline |
Advance (both) pointers by given offset, return sub-array without flip.
Definition at line 201 of file string_ptr.hpp.
References StringPtr< StringSet_ >::size().
|
protected |
strings (front) and temporary shadow (back) array
Definition at line 177 of file string_ptr.hpp.
|
protected |
false if active_ is original, true if shadow_ is original
Definition at line 180 of file string_ptr.hpp.
|
protected |
Definition at line 177 of file string_ptr.hpp.
|
static |
if we want to save the LCPs
Definition at line 230 of file string_ptr.hpp.
Referenced by RadixStep_CE0< StringShadowPtr >::RadixStep_CE0(), RadixStep_CE2< StringShadowPtr >::RadixStep_CE2(), and RadixStep_CE3< StringShadowPtr >::RadixStep_CE3().