Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Friends
nsTObsoleteAStringThunk_CharT Class Reference
Inheritance diagram for nsTObsoleteAStringThunk_CharT:
Inheritance graph
[legend]
Collaboration diagram for nsTObsoleteAStringThunk_CharT:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
nsTObsoleteAStringThunk_CharT 
self_type
typedef nsTSubstring_CharT substring_type
enum  nsFragmentRequest {
  kPrevFragment, kFirstFragment, kLastFragment, kNextFragment,
  kFragmentAt
}
 An |nsFragmentRequest| is used to tell |GetReadableFragment| and |GetWritableFragment| what to do. More...

Public Member Functions

 nsTObsoleteAStringThunk_CharT ()
substring_typeconcrete_self ()
 we are a nsTSubstring in disguise!
const substring_typeconcrete_self () const
virtual ~nsTObsoleteAStringThunk_CharT ()
 all virtual methods need to be redirected to appropriate nsString methods
virtual PRUint32 GetImplementationFlags () const
virtual const buffer_handle_typeGetFlatBufferHandle () const
virtual const buffer_handle_typeGetBufferHandle () const
virtual const
shared_buffer_handle_type
GetSharedBufferHandle () const
virtual size_type Length () const
virtual PRBool IsVoid () const
virtual void SetIsVoid (PRBool val)
virtual void SetCapacity (size_type size)
virtual void SetLength (size_type size)
virtual void Cut (index_type cutStart, size_type cutLength)
virtual void do_AssignFromReadable (const abstract_string_type &s)
virtual void do_AssignFromElementPtr (const char_type *data)
virtual void do_AssignFromElementPtrLength (const char_type *data, size_type length)
virtual void do_AssignFromElement (char_type c)
virtual void do_AppendFromReadable (const abstract_string_type &s)
virtual void do_AppendFromElementPtr (const char_type *data)
virtual void do_AppendFromElementPtrLength (const char_type *data, size_type length)
virtual void do_AppendFromElement (char_type c)
virtual void do_InsertFromReadable (const abstract_string_type &s, index_type pos)
virtual void do_InsertFromElementPtr (const char_type *data, index_type pos)
virtual void do_InsertFromElementPtrLength (const char_type *data, index_type pos, size_type length)
virtual void do_InsertFromElement (char_type c, index_type pos)
virtual void do_ReplaceFromReadable (index_type cutStart, size_type cutLength, const abstract_string_type &s)
virtual const char_typeGetReadableFragment (const_fragment_type &frag, nsFragmentRequest which, PRUint32 offset) const
virtual char_typeGetWritableFragment (fragment_type &frag, nsFragmentRequest which, PRUint32 offset)

Static Public Member Functions

static const voidget_vptr ()

Static Public Attributes

static NS_COM const voidsCanonicalVTable = nsTObsoleteAStringThunk_CharT::get_vptr()
 This is holds the address of the vtable for the canonical string implementation (i.e., nsTString).

Protected Types

typedef CharT char_type
typedef void buffer_handle_type
typedef void shared_buffer_handle_type
typedef nsReadableFragment const_fragment_type
typedef nsWritableFragment fragment_type
typedef nsTAString_CharT abstract_string_type
typedef PRUint32 size_type
typedef PRUint32 index_type

Friends

class nsTAString_CharT
class nsTSubstring_CharT

Detailed Description

Definition at line 40 of file nsTObsoleteAStringThunk.cpp.


Member Typedef Documentation

Definition at line 114 of file nsTObsoleteAString.h.

typedef void nsTObsoleteAString_CharT::buffer_handle_type [protected, inherited]

Definition at line 109 of file nsTObsoleteAString.h.

typedef CharT nsTObsoleteAString_CharT::char_type [protected, inherited]

Definition at line 107 of file nsTObsoleteAString.h.

Definition at line 111 of file nsTObsoleteAString.h.

Definition at line 112 of file nsTObsoleteAString.h.

typedef PRUint32 nsTObsoleteAString_CharT::index_type [protected, inherited]

Definition at line 117 of file nsTObsoleteAString.h.

Definition at line 43 of file nsTObsoleteAStringThunk.cpp.

Definition at line 110 of file nsTObsoleteAString.h.

typedef PRUint32 nsTObsoleteAString_CharT::size_type [protected, inherited]

Definition at line 116 of file nsTObsoleteAString.h.

Definition at line 44 of file nsTObsoleteAStringThunk.cpp.


Member Enumeration Documentation

An |nsFragmentRequest| is used to tell |GetReadableFragment| and |GetWritableFragment| what to do.

See also:
GetReadableFragment
Enumerator:
kPrevFragment 
kFirstFragment 
kLastFragment 
kNextFragment 
kFragmentAt 

Definition at line 60 of file nsTObsoleteAString.h.


Constructor & Destructor Documentation

Definition at line 48 of file nsTObsoleteAStringThunk.cpp.

{}

all virtual methods need to be redirected to appropriate nsString methods

Definition at line 71 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:


Member Function Documentation

we are a nsTSubstring in disguise!

Definition at line 63 of file nsTObsoleteAStringThunk.cpp.

{ return NS_REINTERPRET_CAST(      substring_type*, this); }

Here is the caller graph for this function:

Definition at line 64 of file nsTObsoleteAStringThunk.cpp.

{ return NS_REINTERPRET_CAST(const substring_type*, this); }
virtual void nsTObsoleteAStringThunk_CharT::Cut ( index_type  cutStart,
size_type  cutLength 
) [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 121 of file nsTObsoleteAStringThunk.cpp.

        {
          concrete_self()->Cut(cutStart, cutLength);
        }

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 161 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 151 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 156 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 146 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 141 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 131 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 136 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 126 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 181 of file nsTObsoleteAStringThunk.cpp.

        {
          concrete_self()->Insert(c, pos);
        }

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 171 of file nsTObsoleteAStringThunk.cpp.

        {
          concrete_self()->Insert(data, pos);
        }

Here is the call graph for this function:

virtual void nsTObsoleteAStringThunk_CharT::do_InsertFromElementPtrLength ( const char_type data,
index_type  pos,
size_type  length 
) [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 176 of file nsTObsoleteAStringThunk.cpp.

        {
          concrete_self()->Insert(data, pos, length);
        }

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 166 of file nsTObsoleteAStringThunk.cpp.

        {
          concrete_self()->Insert(s, pos);
        }

Here is the call graph for this function:

virtual void nsTObsoleteAStringThunk_CharT::do_ReplaceFromReadable ( index_type  cutStart,
size_type  cutLength,
const abstract_string_type s 
) [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 186 of file nsTObsoleteAStringThunk.cpp.

        {
          concrete_self()->Replace(cutStart, cutLength, s);
        }

Here is the call graph for this function:

static const void* nsTObsoleteAStringThunk_CharT::get_vptr ( ) [inline, static]

Definition at line 51 of file nsTObsoleteAStringThunk.cpp.

        {
          const void* result;
          new (&result) self_type();
          return result;
        }

Implements nsTObsoleteAString_CharT.

Definition at line 86 of file nsTObsoleteAStringThunk.cpp.

        {
          return 0;
        }

Implements nsTObsoleteAString_CharT.

Definition at line 81 of file nsTObsoleteAStringThunk.cpp.

        {
          return (const buffer_handle_type*) (concrete_self()->IsTerminated() != PR_FALSE);
        }

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 76 of file nsTObsoleteAStringThunk.cpp.

        {
          return 0;
        }
virtual const char_type* nsTObsoleteAStringThunk_CharT::GetReadableFragment ( const_fragment_type frag,
nsFragmentRequest  which,
PRUint32  offset 
) const [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 191 of file nsTObsoleteAStringThunk.cpp.

        {
          const substring_type* s = concrete_self();
          switch (which)
            {
              case kFirstFragment:
              case kLastFragment:
              case kFragmentAt:
                frag.mStart = s->Data();
                frag.mEnd = frag.mStart + s->Length();
                return frag.mStart + offset;
              case kPrevFragment:
              case kNextFragment:
              default:
                return 0;
            }
        }

Here is the call graph for this function:

Implements nsTObsoleteAString_CharT.

Definition at line 91 of file nsTObsoleteAStringThunk.cpp.

        {
          return 0;
        }
virtual char_type* nsTObsoleteAStringThunk_CharT::GetWritableFragment ( fragment_type frag,
nsFragmentRequest  which,
PRUint32  offset 
) [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 209 of file nsTObsoleteAStringThunk.cpp.

        {
          substring_type* s = concrete_self();
          switch (which)
            {
              case kFirstFragment:
              case kLastFragment:
              case kFragmentAt:
                char_type* start;
                s->BeginWriting(start);
                frag.mStart = start;
                frag.mEnd = start + s->Length();
                return frag.mStart + offset;
              case kPrevFragment:
              case kNextFragment:
              default:
                return 0;
            }
        }

Here is the call graph for this function:

virtual PRBool nsTObsoleteAStringThunk_CharT::IsVoid ( ) const [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 101 of file nsTObsoleteAStringThunk.cpp.

        {
          return concrete_self()->IsVoid();
        }

Here is the call graph for this function:

virtual size_type nsTObsoleteAStringThunk_CharT::Length ( ) const [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 96 of file nsTObsoleteAStringThunk.cpp.

        {
          return concrete_self()->Length();
        }

Here is the call graph for this function:

virtual void nsTObsoleteAStringThunk_CharT::SetCapacity ( size_type  size) [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 111 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

virtual void nsTObsoleteAStringThunk_CharT::SetIsVoid ( PRBool  val) [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 106 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:

virtual void nsTObsoleteAStringThunk_CharT::SetLength ( size_type  size) [inline, virtual]

Implements nsTObsoleteAString_CharT.

Definition at line 116 of file nsTObsoleteAStringThunk.cpp.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class nsTAString_CharT [friend, inherited]

Definition at line 121 of file nsTObsoleteAString.h.

friend class nsTSubstring_CharT [friend, inherited]

Definition at line 122 of file nsTObsoleteAString.h.


Member Data Documentation

This is holds the address of the vtable for the canonical string implementation (i.e., nsTString).

initialize the pointer to the canonical vtable...

Definition at line 52 of file nsTObsoleteAString.h.


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