_String_base Class Reference

class _String_base

Nested Classes and Structures

Protected Member Functions
_String_base (const allocator_type &)
_String_base (const allocator_type &, size_t )
_String_base ( __move_source < _Self >)
~_String_base ()
_Tp const * _M_Finish ()
_Tp * _M_Finish ()
_Tp const * _M_Start ()
_Tp * _M_Start ()
void _M_Swap ( _Self &)
void _M_allocate_block ( size_t )
void _M_deallocate_block ()
void _M_destroy_back ()
void _M_destroy_ptr_range (_Tp *, _Tp *)
void _M_destroy_range ( size_t , size_t )
void _M_move_src ( _Self &)
void _M_reset (_Tp *, _Tp *, _Tp *)
void _STLP_FUNCTION_THROWS _M_throw_length_error ()
void _STLP_FUNCTION_THROWS _M_throw_out_of_range ()
bool _M_using_static_buf ()
size_t max_size ()
Public Member Type Definitions
typedef _STLP_alloc_proxy < _Tp *, _Tp, allocator_type > _AllocProxy
typedef _Alloc_traits < _Tp, _Alloc >:: allocator_type allocator_type
typedef size_t size_type
Private Member Type Definitions
typedef _String_base < _Tp, _Alloc > _Self
Protected Attributes
_AllocProxy _M_end_of_storage
_Tp * _M_finish
Private Attributes
union _String_base::_Buffers _M_buffers

Constructor & Destructor Documentation

_String_base(const allocator_type &)

_String_base ( const allocator_type & __a ) [protected, inline]

Parameters

const allocator_type & __a

_String_base(const allocator_type &, size_t)

_String_base ( const allocator_type & __a,
size_t __n
) [protected, inline]

Parameters

const allocator_type & __a
size_t __n

_String_base(__move_source< _Self >)

_String_base ( __move_source < _Self > src ) [protected, inline]

Parameters

__move_source < _Self > src

~_String_base()

~_String_base ( ) [protected, inline]

Member Functions Documentation

_M_Finish()

_Tp const * _M_Finish ( ) const [protected, inline]

_M_Finish()

_Tp * _M_Finish ( ) [protected, inline]

_M_Start()

_Tp const * _M_Start ( ) const [protected, inline]

_M_Start()

_Tp * _M_Start ( ) [protected, inline]

_M_Swap(_Self &)

void _M_Swap ( _Self & __s ) [protected, inline]

Parameters

_Self & __s

_M_allocate_block(size_t)

void _M_allocate_block ( size_t __n = _DEFAULT_SIZE ) [protected]

Parameters

size_t __n = _DEFAULT_SIZE

_M_deallocate_block()

void _M_deallocate_block ( ) [protected, inline]

_M_destroy_back()

void _M_destroy_back ( ) [protected, inline]

_M_destroy_ptr_range(_Tp *, _Tp *)

void _M_destroy_ptr_range ( _Tp * __f,
_Tp * __l
) [protected, inline]

Parameters

_Tp * __f
_Tp * __l

_M_destroy_range(size_t, size_t)

void _M_destroy_range ( size_t __from_off = 0,
size_t __to_off = 1
) [protected, inline]

Parameters

size_t __from_off = 0
size_t __to_off = 1

_M_move_src(_Self &)

void _M_move_src ( _Self & src ) [protected, inline]

Parameters

_Self & src

_M_reset(_Tp *, _Tp *, _Tp *)

void _M_reset ( _Tp * __start,
_Tp * __finish,
_Tp * __end_of_storage
) [protected, inline]

Parameters

_Tp * __start
_Tp * __finish
_Tp * __end_of_storage

_M_throw_length_error()

void _STLP_FUNCTION_THROWS _M_throw_length_error ( ) const [protected]

_M_throw_out_of_range()

void _STLP_FUNCTION_THROWS _M_throw_out_of_range ( ) const [protected]

_M_using_static_buf()

bool _M_using_static_buf ( ) const [protected, inline]

max_size()

size_t max_size ( ) const [protected, inline]

Member Type Definitions Documentation

Typedef _AllocProxy

typedef _STLP_alloc_proxy < _Tp *, _Tp, allocator_type > _AllocProxy

Typedef _Self

typedef _String_base < _Tp, _Alloc > _Self [private]

Typedef allocator_type

typedef _Alloc_traits < _Tp, _Alloc >:: allocator_type allocator_type

Typedef size_type

typedef size_t size_type

Member Data Documentation

union _String_base::_Buffers _M_buffers

union _String_base::_Buffers _M_buffers [private]

_AllocProxy _M_end_of_storage

_AllocProxy _M_end_of_storage [protected]

_Tp * _M_finish

_Tp * _M_finish [protected]