Whole document tree
    

Whole document tree

Templatestd::basic_string::_Rep struct Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::basic_string< _CharT, _Traits, _Alloc >::_Rep Struct Template Reference

List of all members.

Public Types

typedef _Alloc::template rebind<
char >::other 
_Raw_bytes_alloc

Public Methods

bool _M_is_leaked () const
bool _M_is_shared () const
void _M_set_leaked ()
void _M_set_sharable ()
_CharT * _M_refdata () throw ()
_CharT & operator[] (size_t __s) throw ()
_CharT * _M_grab (const _Alloc &__alloc1, const _Alloc &__alloc2)
void _M_dispose (const _Alloc &__a)
void _M_destroy (const _Alloc &) throw ()
_CharT * _M_refcopy () throw ()
_CharT * _M_clone (const _Alloc &, size_type __res=0)

Static Public Methods

_Rep * _S_create (size_t, const _Alloc &)
bool _S_excess_slop (size_t, size_t)

Public Attributes

size_type _M_length
size_type _M_capacity
_Atomic_word _M_references

Static Public Attributes

const size_type _S_max_size
const _CharT _S_terminal

template<typename _CharT, typename _Traits, typename _Alloc>
struct std::basic_string< _CharT, _Traits, _Alloc >::_Rep


Member Typedef Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Alloc::template rebind<char>::other std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_Raw_bytes_alloc
 

Definition at line 121 of file basic_string.h.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_create().


Member Function Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
_CharT * std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_clone const _Alloc &   ,
size_type    __res = 0
 

Definition at line 390 of file basic_string.tcc.

References __throw_exception_again, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_destroy(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_length, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refdata(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_grab(), and std::basic_string< _CharT, _Traits, _Alloc >::reserve().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_destroy const _Alloc &    throw ()
 

Definition at line 253 of file basic_string.tcc.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_clone(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_dispose(), and std::basic_string< _CharT, _Traits, _Alloc >::_S_construct().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_dispose const _Alloc &    __a [inline]
 

Definition at line 177 of file basic_string.h.

References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_destroy(), and std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_references.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::assign(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), and std::basic_string< char >::~basic_string().

template<typename _CharT, typename _Traits, typename _Alloc>
_CharT* std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_grab const _Alloc &    __alloc1,
const _Alloc &    __alloc2
[inline]
 

Definition at line 168 of file basic_string.h.

References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_clone(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_leaked(), and std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refcopy().

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::assign().

template<typename _CharT, typename _Traits, typename _Alloc>
bool std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_leaked   const [inline]
 

Definition at line 144 of file basic_string.h.

References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_references.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_grab(), std::basic_string< char >::_M_leak(), and std::basic_string< _CharT, _Traits, _Alloc >::swap().

template<typename _CharT, typename _Traits, typename _Alloc>
bool std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_shared   const [inline]
 

Definition at line 148 of file basic_string.h.

References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_references.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_leak_hard(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), and std::basic_string< _CharT, _Traits, _Alloc >::reserve().

template<typename _CharT, typename _Traits, typename _Alloc>
_CharT* std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refcopy   throw () [inline]
 

Definition at line 187 of file basic_string.h.

References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refdata(), and std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_references.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_grab(), and std::basic_string< _CharT, _Traits, _Alloc >::_S_construct().

template<typename _CharT, typename _Traits, typename _Alloc>
_CharT* std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refdata   throw () [inline]
 

Definition at line 160 of file basic_string.h.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_clone(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refcopy(), std::basic_string< _CharT, _Traits, _Alloc >::_S_construct(), and std::basic_string< _CharT, _Traits, _Alloc >::_Rep::operator[]().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_set_leaked   [inline]
 

Definition at line 152 of file basic_string.h.

References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_references.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_leak_hard(), std::basic_string< char >::erase(), and std::basic_string< char >::insert().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_set_sharable   [inline]
 

Definition at line 156 of file basic_string.h.

References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_references.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_create(), and std::basic_string< _CharT, _Traits, _Alloc >::swap().

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string< _CharT, _Traits, _Alloc >::_Rep * std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_create size_t   ,
const _Alloc &   
[static]
 

Definition at line 362 of file basic_string.tcc.

References std::__throw_length_error(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_capacity, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_length, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_set_sharable(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_Raw_bytes_alloc, and std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_max_size.

template<typename _CharT, typename _Traits, typename _Alloc>
bool std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_excess_slop size_t   ,
size_t   
[inline, static]
 

Definition at line 414 of file basic_string.tcc.

template<typename _CharT, typename _Traits, typename _Alloc>
_CharT& std::basic_string< _CharT, _Traits, _Alloc >::_Rep::operator[] size_t    __s throw () [inline]
 

Definition at line 164 of file basic_string.h.

References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refdata().


Member Data Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_capacity
 

Definition at line 140 of file basic_string.h.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_S_construct(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_create(), and std::basic_string< char >::capacity().

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_length
 

Definition at line 139 of file basic_string.h.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_clone(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::_S_construct(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_create(), std::basic_string< char >::length(), and std::basic_string< char >::size().

template<typename _CharT, typename _Traits, typename _Alloc>
_Atomic_word std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_references
 

Definition at line 141 of file basic_string.h.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_dispose(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_leaked(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_shared(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refcopy(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_set_leaked(), and std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_set_sharable().

template<typename _CharT, typename _Traits, typename _Alloc>
const size_type std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_max_size [static]
 

Definition at line 136 of file basic_string.h.

Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_create().

template<typename _CharT, typename _Traits, typename _Alloc>
const _CharT std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_terminal [static]
 

Definition at line 137 of file basic_string.h.


The documentation for this struct was generated from the following files:
Generated on Mon Apr 8 03:18:54 2002 for libstdc++-v3 Source by doxygen1.2.15