tlx
Loading...
Searching...
No Matches
StringLcpPtr< StringSet_, LcpType_ > Class Template Reference

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
 

Public Member Functions

 StringLcpPtr (const StringSet &ss, LcpType *lcp)
 constructor specifying all attributes
 
const StringSetactive () const
 return currently active array
 
size_t size () const
 return valid length
 
StringLcpPtr sub (size_t offset, size_t sub_size) const
 Advance (both) pointers by given offset, return sub-array.
 
LcpTypelcp () const
 return LCP array pointer
 
LcpType get_lcp (size_t i) const
 return LCP array value
 
void set_lcp (size_t i, const LcpType &v) const
 set the i-th lcp to v and check its value
 
void fill_lcp (const LcpType &v) 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
 
LcpTypelcp_
 lcp array
 

Detailed Description

template<typename StringSet_, typename LcpType_>
class tlx::sort_strings_detail::StringLcpPtr< StringSet_, LcpType_ >

Objectified string and LCP array pointer arrays.

Definition at line 97 of file string_ptr.hpp.

Member Typedef Documentation

◆ LcpType

template<typename StringSet_, typename LcpType_>
typedef LcpType_ LcpType

Definition at line 101 of file string_ptr.hpp.

◆ String

template<typename StringSet_, typename LcpType_>
typedef StringSet::String String

Definition at line 102 of file string_ptr.hpp.

◆ StringSet

template<typename StringSet_, typename LcpType_>
typedef StringSet_ StringSet

Definition at line 100 of file string_ptr.hpp.

◆ WithShadow

template<typename StringSet_, typename LcpType_>
typedef StringShadowLcpPtr<StringSet_, LcpType_> WithShadow

objectified string and shadow pointer class

Definition at line 156 of file string_ptr.hpp.

Constructor & Destructor Documentation

◆ StringLcpPtr()

template<typename StringSet_, typename LcpType_>
StringLcpPtr ( const StringSet & ss,
LcpType * lcp )
inline

constructor specifying all attributes

Definition at line 113 of file string_ptr.hpp.

Member Function Documentation

◆ active()

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

return currently active array

Definition at line 117 of file string_ptr.hpp.

◆ add_shadow()

template<typename StringSet_, typename LcpType_>
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.

◆ fill_lcp()

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

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

Definition at line 150 of file string_ptr.hpp.

◆ get_lcp()

template<typename StringSet_, typename LcpType_>
LcpType get_lcp ( size_t i) const
inline

return LCP array value

Definition at line 138 of file string_ptr.hpp.

◆ lcp()

template<typename StringSet_, typename LcpType_>
LcpType * lcp ( ) const
inline

return LCP array pointer

Definition at line 133 of file string_ptr.hpp.

◆ set_lcp()

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

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

Definition at line 144 of file string_ptr.hpp.

◆ size()

template<typename StringSet_, typename LcpType_>
size_t size ( ) const
inline

return valid length

Definition at line 120 of file string_ptr.hpp.

◆ sub()

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

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

Definition at line 123 of file string_ptr.hpp.

Member Data Documentation

◆ active_

template<typename StringSet_, typename LcpType_>
StringSet active_
protected

strings (front) array

Definition at line 106 of file string_ptr.hpp.

◆ lcp_

template<typename StringSet_, typename LcpType_>
LcpType* lcp_
protected

lcp array

Definition at line 109 of file string_ptr.hpp.

◆ with_lcp

template<typename StringSet_, typename LcpType_>
const bool with_lcp
static

if we want to save the LCPs

Definition at line 130 of file string_ptr.hpp.


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