Open C++ Libraries.org develop
Loading...
Searching...
No Matches
ocl::tproc::basic_rope< CharT, Traits, Allocator > Class Template Referencefinal

This class implements a rope type for any CharT type. More...

#include <rope_fwd.hpp>

Classes

struct  tree_impl
 PImpl of the rope algorithm. More...
 

Public Types

using traits_type = Traits
 
using value_type = CharT
 
using char_type = value_type
 
using allocator_type = Allocator
 
using size_type = std::allocator_traits< Allocator >::size_type
 
using reference = CharT &
 
using const_reference = const CharT &
 
using pointer = std::allocator_traits< Allocator >::pointer
 
using const_pointer = const std::allocator_traits< Allocator >::pointer
 
using rope_ptr = basic_rope< CharT > *
 

Public Member Functions

rope_ptr rbegin ()
 
rope_ptr rend ()
 
rope_ptr begin ()
 
rope_ptr end ()
 
pointer operator* () const
 
rope_ptr operator-- ()
 
rope_ptr operator-- (int)
 
rope_ptr operator++ ()
 
rope_ptr operator++ (int)
 
const rope_ptr cbegin () const
 
const rope_ptr cend () const
 
rope_ptr concat (rope_ptr right)
 
basic_rope< CharT, Traits, Allocator > & substr (size_type pos, const size_type n=0)
 
size_type at (const boost::core::basic_string_view< CharT > &needle)
 
bool starts_with (const basic_rope< CharT > &)
 
bool ends_with (const basic_rope< CharT > &)
 
bool starts_with (const boost::core::basic_string_view< CharT > &)
 
bool ends_with (const boost::core::basic_string_view< CharT > &)
 
size_type size () const
 
bool empty () const
 
rope_ptr insert (size_type pos, const boost::core::basic_string_view< CharT > &, rope_ptr) const
 
std::basic_string< value_type > to_string ()
 
std::basic_string< value_type > to_string () const
 
 basic_rope (const boost::core::basic_string_view< CharT > &in={})
 
basic_ropeoperator= (const basic_rope &rope)=delete
 
 basic_rope (const basic_rope &rope)=delete
 
basic_ropeoperator= (basic_rope &&rope)
 
 basic_rope (basic_rope &&rope)
 
bool operator!= (const basic_rope &rope)
 
bool operator== (const basic_rope &rope)
 
bool operator!= (const boost::core::basic_string_view< CharT > &)
 
bool operator== (const boost::core::basic_string_view< CharT > &)
 

Static Public Attributes

static constexpr size_type npos = (size_type)(-1)
 

Detailed Description

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

This class implements a rope type for any CharT type.

Note
Specializations are available as crope and wrope.
Author
Amlal El Mahrouss

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