basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT > Class Template Reference

#include <nsStdStringWrapper.h>

Inheritance diagram for basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >:

Inheritance graph
[legend]
Collaboration diagram for basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >:

Collaboration graph
[legend]

List of all members.

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
class basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >


Public Member Functions

 basic_nsStdStringWrapper ()
 basic_nsStdStringWrapper (const AllocatorT &a=AllocatorT())
 basic_nsStdStringWrapper (const basic_nsAString< CharT > &str)
 basic_nsStdStringWrapper (const basic_string_t &str, size_type pos=0, size_type n=npos)
 basic_nsStdStringWrapper (const basic_string_t &str, size_type pos, size_type n, const AllocatorT &a)
 basic_nsStdStringWrapper (const CharT *s, size_type n, const AllocatorT &a=AllocatorT())
 basic_nsStdStringWrapper (const CharT *s, const AllocatorT &a=AllocatorT())
 basic_nsStdStringWrapper (size_type n, CharT c, const AllocatorT &a=AllocatorT())
virtual PRUint32 Length () const
virtual void SetCapacity (PRUint32 aNewCapacity)
virtual void SetLength (PRUint32 aNewLength)

Protected Types

typedef std::basic_string
< CharT, TraitsT, AllocatorT > 
basic_string_t

Protected Member Functions

virtual const void * Implementation () const
virtual const CharT * GetReadableFragment (nsReadableFragment< CharT > &, nsFragmentRequest, PRUint32) const
virtual CharT * GetWritableFragment (nsWritableFragment< CharT > &, nsFragmentRequest, PRUint32)
virtual void do_AssignFromReadable (const basic_nsAString< CharT > &)

Protected Attributes

std::basic_string< CharT,
TraitsT, AllocatorT > 
mRawString

Static Protected Attributes

static const size_type npos = size_type(-1)

Member Typedef Documentation

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
typedef std::basic_string<CharT, TraitsT, AllocatorT> basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_string_t [protected]


Constructor & Destructor Documentation

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_nsStdStringWrapper (  )  [inline]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_nsStdStringWrapper ( const AllocatorT &  a = AllocatorT()  )  [inline, explicit]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_nsStdStringWrapper ( const basic_nsAString< CharT > &  str  )  [inline, explicit]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_nsStdStringWrapper ( const basic_string_t str,
size_type  pos = 0,
size_type  n = npos 
) [inline, explicit]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_nsStdStringWrapper ( const basic_string_t str,
size_type  pos,
size_type  n,
const AllocatorT &  a 
) [inline]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_nsStdStringWrapper ( const CharT *  s,
size_type  n,
const AllocatorT &  a = AllocatorT() 
) [inline]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_nsStdStringWrapper ( const CharT *  s,
const AllocatorT &  a = AllocatorT() 
) [inline, explicit]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::basic_nsStdStringWrapper ( size_type  n,
CharT  c,
const AllocatorT &  a = AllocatorT() 
) [inline]


Member Function Documentation

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
class TraitsT class AllocatorT const void * basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::Implementation (  )  const [protected, virtual]

template<class CharT, class TraitsT, class AllocatorT>
const CharT * basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::GetReadableFragment ( nsReadableFragment< CharT > &  aFragment,
nsFragmentRequest  aRequest,
PRUint32  aOffset 
) const [inline, protected, virtual]

template<class CharT, class TraitsT, class AllocatorT>
CharT * basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::GetWritableFragment ( nsWritableFragment< CharT > &  aFragment,
nsFragmentRequest  aRequest,
PRUint32  aOffset 
) [inline, protected, virtual]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
virtual PRUint32 basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::Length (  )  const [inline, virtual]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
virtual void basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::SetCapacity ( PRUint32  aNewCapacity  )  [inline, virtual]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
virtual void basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::SetLength ( PRUint32  aNewLength  )  [inline, virtual]

template<class CharT, class TraitsT, class AllocatorT>
void basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::do_AssignFromReadable ( const basic_nsAString< CharT > &  rhs  )  [inline, protected, virtual]


Member Data Documentation

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
std::basic_string<CharT, TraitsT, AllocatorT> basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::mRawString [protected]

template<class CharT, class TraitsT = nsCharTraits<CharT>, class AllocatorT = nsStringAllocator<CharT>>
const size_type basic_nsStdStringWrapper< CharT, TraitsT, AllocatorT >::npos = size_type(-1) [static, protected]


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

Generated Mozilla by doxygen 1.5.6