Open C++ Libraries.org develop
Loading...
Searching...
No Matches
ocl::tproc::basic_rope< CharT, Traits, Allocator >::tree_impl Struct Reference

PImpl of the rope algorithm. More...

Collaboration diagram for ocl::tproc::basic_rope< CharT, Traits, Allocator >::tree_impl:

Public Types

using char_type = CharT
 
using value_type = char_type
 
using size_type = typename std::allocator_traits< Allocator >::size_type
 
using error_type = boost::system::error_code
 
using allocator_type = Allocator
 
using rope_ptr = basic_rope< CharT, Traits, Allocator >::rope_ptr
 

Public Member Functions

 tree_impl (Allocator alloc=Allocator())
 
bool is_leaf () const
 
 tree_impl (const boost::core::basic_string_view< CharT > &str, Allocator alloc=Allocator())
 
 tree_impl (rope_ptr left, rope_ptr right, Allocator alloc=Allocator())
 
size_type total_size () const
 
size_type size () const
 
CharT at (size_type pos) const
 
rope_ptr concat (rope_ptr left, rope_ptr right)
 
std::pair< rope_ptr, rope_ptr > split (size_type pos, rope_ptr this_rope, Allocator alloc=Allocator())
 
rope_ptr insert (size_type pos, const boost::core::basic_string_view< CharT > &str, rope_ptr this_rope, Allocator alloc=Allocator())
 
rope_ptr substr (size_type pos, size_type len, rope_ptr this_rope, Allocator alloc=Allocator())
 
bool starts_with (const boost::core::basic_string_view< CharT > &prefix) const
 
bool ends_with (const boost::core::basic_string_view< CharT > &suffix) const
 
bool equals (const tree_impl *other) const
 
bool equals (const boost::core::basic_string_view< CharT > &str) const
 

Public Attributes

rope_ptr left_ {nullptr}
 
rope_ptr right_ {nullptr}
 
size_type weight_ {0}
 
value_type * blob_ {nullptr}
 
allocator_type alloc_
 
size_type capacity_ {0}
 

Detailed Description

template<class CharT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
struct ocl::tproc::basic_rope< CharT, Traits, Allocator >::tree_impl

PImpl of the rope algorithm.


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