tlx
Loading...
Searching...
No Matches
StringPtr< StringSet_ > Class Template Reference

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

Public Member Functions

 StringPtr (const StringSet &ss)
 constructor specifying all attributes
const StringSetactive () const
 return currently active array
size_t size () const
 return valid length
StringPtr sub (size_t offset, size_t sub_size) const
 Advance (both) pointers by given offset, return sub-array.
template<typename LcpType>
void set_lcp (size_t, const LcpType &) const
 set the i-th lcp to v and check its value
template<typename LcpType>
void fill_lcp (const LcpType &) const
 fill entire LCP array with v, excluding the first lcp[0] position!
WithShadow add_shadow (const StringSet &shadow) const
 construct objectified string and shadow pointer class

Static Public Attributes

static const bool with_lcp
 if we want to save the LCPs

Protected Attributes

StringSet active_
 strings (front) array

Detailed Description

template<typename StringSet_>
class tlx::sort_strings_detail::StringPtr< StringSet_ >

Objectified string array pointer array.

Definition at line 47 of file string_ptr.hpp.

Member Typedef Documentation

◆ String

template<typename StringSet_>
typedef StringSet::String String

Definition at line 51 of file string_ptr.hpp.

◆ StringSet

template<typename StringSet_>
typedef StringSet_ StringSet

Definition at line 50 of file string_ptr.hpp.

◆ WithShadow

template<typename StringSet_>
typedef StringShadowPtr<StringSet_> WithShadow

objectified string and shadow pointer class

Definition at line 86 of file string_ptr.hpp.

Constructor & Destructor Documentation

◆ StringPtr()

template<typename StringSet_>
StringPtr ( const StringSet & ss)
inline

constructor specifying all attributes

Definition at line 59 of file string_ptr.hpp.

Member Function Documentation

◆ active()

template<typename StringSet_>
const StringSet & active ( ) const
inline

return currently active array

Definition at line 63 of file string_ptr.hpp.

◆ add_shadow()

template<typename StringSet_>
StringShadowPtr< StringSet_ > add_shadow ( const StringSet & shadow) const

construct objectified string and shadow pointer class

Definition at line 343 of file string_ptr.hpp.

◆ fill_lcp()

template<typename StringSet_>
template<typename LcpType>
void fill_lcp ( const LcpType & ) const
inline

fill entire LCP array with v, excluding the first lcp[0] position!

Definition at line 83 of file string_ptr.hpp.

◆ set_lcp()

template<typename StringSet_>
template<typename LcpType>
void set_lcp ( size_t ,
const LcpType &  ) const
inline

set the i-th lcp to v and check its value

Definition at line 79 of file string_ptr.hpp.

◆ size()

template<typename StringSet_>
size_t size ( ) const
inline

return valid length

Definition at line 66 of file string_ptr.hpp.

◆ sub()

template<typename StringSet_>
StringPtr sub ( size_t offset,
size_t sub_size ) const
inline

Advance (both) pointers by given offset, return sub-array.

Definition at line 69 of file string_ptr.hpp.

Member Data Documentation

◆ active_

template<typename StringSet_>
StringSet active_
protected

strings (front) array

Definition at line 55 of file string_ptr.hpp.

◆ with_lcp

template<typename StringSet_>
const bool with_lcp
static

if we want to save the LCPs

Definition at line 75 of file string_ptr.hpp.


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