Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::basic_string::_Rep Struct Template Reference

List of all members.

Public Types

typedef _Alloc::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)

Public Attributes

size_type _M_length
size_type _M_capacity
_Atomic_word _M_references

Static Public Methods

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

Static Public Attributes

const size_type _S_max_size
const _CharT _S_terminal

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


Member Typedef Documentation

typedef _Alloc::rebind<char>::other std::basic_string::_Rep::_Raw_bytes_alloc
 

Definition at line 121 of file basic_string.h.


Member Function Documentation

_CharT* std::basic_string::_Rep::_M_clone ( const _Alloc &,
size_type __res = 0 )
 

Referenced by _M_grab().

void std::basic_string::_Rep::_M_destroy ( const _Alloc & ) throw ()
 

Referenced by _M_dispose().

void std::basic_string::_Rep::_M_dispose ( const _Alloc & __a ) [inline]
 

Definition at line 177 of file basic_string.h.

Referenced by std::basic_string::~basic_string().

_CharT * std::basic_string::_Rep::_M_grab ( const _Alloc & __alloc1,
const _Alloc & __alloc2 ) [inline]
 

Definition at line 168 of file basic_string.h.

bool std::basic_string::_Rep::_M_is_leaked ( ) const [inline]
 

Definition at line 144 of file basic_string.h.

Referenced by _M_grab(), and std::basic_string::_M_leak().

bool std::basic_string::_Rep::_M_is_shared ( ) const [inline]
 

Definition at line 148 of file basic_string.h.

_CharT * std::basic_string::_Rep::_M_refcopy ( ) throw () [inline]
 

Definition at line 187 of file basic_string.h.

Referenced by _M_grab().

_CharT * std::basic_string::_Rep::_M_refdata ( ) throw () [inline]
 

Definition at line 160 of file basic_string.h.

Referenced by _M_refcopy(), and operator[]().

void std::basic_string::_Rep::_M_set_leaked ( ) [inline]
 

Definition at line 152 of file basic_string.h.

Referenced by std::basic_string::erase(), and std::basic_string::insert().

void std::basic_string::_Rep::_M_set_sharable ( ) [inline]
 

Definition at line 156 of file basic_string.h.

_Rep* std::basic_string::_Rep::_S_create ( size_t,
const _Alloc & ) [static]
 

bool std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_S_excess_slop ( size_t __s,
size_t __r ) [inline, static]
 

Definition at line 411 of file basic_string.tcc.

_CharT & std::basic_string::_Rep::operator[] ( size_t __s ) throw () [inline]
 

Definition at line 164 of file basic_string.h.


Member Data Documentation

size_type std::basic_string::_Rep::_M_capacity
 

Definition at line 140 of file basic_string.h.

size_type std::basic_string::_Rep::_M_length
 

Definition at line 139 of file basic_string.h.

_Atomic_word std::basic_string::_Rep::_M_references
 

Definition at line 141 of file basic_string.h.

const size_type std::basic_string::_Rep::_S_max_size [static]
 

Definition at line 136 of file basic_string.h.

const _CharT std::basic_string::_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 at Tue May 1 16:29:55 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001