tlx
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 More...
 

Public Member Functions

 StringPtr (const StringSet &ss)
 constructor specifying all attributes More...
 
const StringSetactive () 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...
 

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

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 & Destructor Documentation

StringPtr ( const StringSet ss)
inline

constructor specifying all attributes

Definition at line 59 of file string_ptr.hpp.

Member Function Documentation

const StringSet& active ( ) const
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.

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.

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_t size ( ) const
inline

return valid length

Definition at line 66 of file string_ptr.hpp.

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

StringSet active_
protected

strings (front) array

Definition at line 55 of file string_ptr.hpp.

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: