Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
xalanc::XercesLiaisonXalanDOMStringPool Class Reference

#include <xalanc/XercesParserLiaison/XercesLiaisonXalanDOMStringPool.hpp>

Inheritance diagram for xalanc::XercesLiaisonXalanDOMStringPool:
[legend]
Collaboration diagram for xalanc::XercesLiaisonXalanDOMStringPool:
[legend]

Public Types

typedef XalanDOMStringPool ParentType
 
typedef xercesc::XMLMutex XMLMutexType
 
typedef xercesc::XMLMutexLock XMLMutexLockType
 
- Public Types inherited from xalanc::XalanDOMStringPool
enum  { eDefaultBlockSize = 32, eDefaultBucketCount = XalanDOMStringHashTable::eDefaultBucketCount, eDefaultBucketSize = XalanDOMStringHashTable::eDefaultBucketSize }
 
typedef XalanDOMStringAllocator AllocatorType
 
typedef AllocatorType::size_type block_size_type
 
typedef size_t bucket_count_type
 
typedef XalanDOMStringHashTable::bucket_size_type bucket_size_type
 

Public Member Functions

 XercesLiaisonXalanDOMStringPool (MemoryManager &theManager)
 
virtual ~XercesLiaisonXalanDOMStringPool ()
 
virtual void clear ()
 Clear the pool. More...
 
virtual size_t size () const
 Get the number of strings in the pool. More...
 
virtual const XalanDOMStringget (const XalanDOMString &theString)
 Get a pooled string. More...
 
virtual const XalanDOMStringget (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Get a pooled string. More...
 
- Public Member Functions inherited from xalanc::XalanDOMStringPool
 XalanDOMStringPool (MemoryManager &theManager, block_size_type theBlockSize=eDefaultBlockSize, bucket_count_type theBucketCount=eDefaultBucketCount, bucket_size_type theBucketSize=eDefaultBucketSize)
 Create a string pool. More...
 
virtual ~XalanDOMStringPool ()
 
const XalanDOMStringHashTablegetHashTable () const
 Get a reference to the pool's hash table. More...
 
MemoryManager & getMemoryManager ()
 
const MemoryManager & getMemoryManager () const
 

Static Public Member Functions

static XercesLiaisonXalanDOMStringPoolcreate (MemoryManager &theManager)
 
- Static Public Member Functions inherited from xalanc::XalanDOMStringPool
static XalanDOMStringPoolcreate (MemoryManager &theManager, block_size_type theBlockSize=eDefaultBlockSize, bucket_count_type theBucketCount=eDefaultBucketCount, bucket_size_type theBucketSize=eDefaultBucketSize)
 

Detailed Description

Definition at line 41 of file XercesLiaisonXalanDOMStringPool.hpp.

Member Typedef Documentation

◆ ParentType

Definition at line 45 of file XercesLiaisonXalanDOMStringPool.hpp.

◆ XMLMutexLockType

Definition at line 47 of file XercesLiaisonXalanDOMStringPool.hpp.

◆ XMLMutexType

Definition at line 46 of file XercesLiaisonXalanDOMStringPool.hpp.

Constructor & Destructor Documentation

◆ XercesLiaisonXalanDOMStringPool()

xalanc::XercesLiaisonXalanDOMStringPool::XercesLiaisonXalanDOMStringPool ( MemoryManager &  theManager)
explicit

◆ ~XercesLiaisonXalanDOMStringPool()

virtual xalanc::XercesLiaisonXalanDOMStringPool::~XercesLiaisonXalanDOMStringPool ( )
virtual

Member Function Documentation

◆ clear()

virtual void xalanc::XercesLiaisonXalanDOMStringPool::clear ( )
virtual

Clear the pool.

Reimplemented from xalanc::XalanDOMStringPool.

◆ create()

static XercesLiaisonXalanDOMStringPool* xalanc::XercesLiaisonXalanDOMStringPool::create ( MemoryManager &  theManager)
static

◆ get() [1/2]

virtual const XalanDOMString& xalanc::XercesLiaisonXalanDOMStringPool::get ( const XalanDOMChar *  theString,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Get a pooled string.

If the string is not pooled, it is added.

Parameters
theStringThe string to pool.
theLengthThe length of the string. If XalanDOMString::npos, the string is assumed to be null-terminated.
Returns
a const reference to the pooled string.

Reimplemented from xalanc::XalanDOMStringPool.

◆ get() [2/2]

virtual const XalanDOMString& xalanc::XercesLiaisonXalanDOMStringPool::get ( const XalanDOMString theString)
virtual

Get a pooled string.

If the string is not pooled, it is added.

Parameters
theStringThe string to pool.
Returns
a const reference to the pooled string.

Reimplemented from xalanc::XalanDOMStringPool.

◆ size()

virtual size_t xalanc::XercesLiaisonXalanDOMStringPool::size ( ) const
virtual

Get the number of strings in the pool.

Returns
the size of the pool.

Reimplemented from xalanc::XalanDOMStringPool.


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