Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes
nsScannerSharedSubstring Class Reference

nsScannerSharedSubstring implements copy-on-write semantics for nsScannerSubstring. More...

#include <nsScannerString.h>

Collaboration diagram for nsScannerSharedSubstring:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsScannerSharedSubstring ()
 ~nsScannerSharedSubstring ()
 NS_HIDDEN_ (void) Rebind(const nsScannerIterator &aStart
nsSubstringwritable ()
const nsSubstringstr () const

Public Attributes

const nsScannerIteratoraEnd

Private Types

typedef nsScannerBufferList::Buffer Buffer

Private Member Functions

 NS_HIDDEN_ (void) ReleaseBuffer()
 NS_HIDDEN_ (void) MakeMutable()

Private Attributes

nsDependentSubstring mString
BuffermBuffer
nsScannerBufferListmBufferList

Detailed Description

nsScannerSharedSubstring implements copy-on-write semantics for nsScannerSubstring.

When you call .writable(), it will copy the data and return a mutable string object. This class also manages releasing the reference to the scanner buffer when it is no longer needed.

Definition at line 313 of file nsScannerString.h.


Member Typedef Documentation

Definition at line 342 of file nsScannerString.h.


Constructor & Destructor Documentation

Definition at line 316 of file nsScannerString.h.

Definition at line 319 of file nsScannerString.h.

        {
          if (mBufferList)
            ReleaseBuffer();
        }

Member Function Documentation

Definition at line 339 of file nsScannerString.h.

{ return mString; }

Here is the caller graph for this function:

Definition at line 330 of file nsScannerString.h.

        {
          if (mBufferList)
            MakeMutable();

          return mString;
        }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 327 of file nsScannerString.h.

Definition at line 348 of file nsScannerString.h.

Definition at line 349 of file nsScannerString.h.

Definition at line 347 of file nsScannerString.h.


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