#include <XalanDOMStringPool.hpp>
Inherited by XercesLiaisonXalanDOMStringPool.
Definition at line 39 of file XalanDOMStringPool.hpp.
§ AllocatorType
§ block_size_type
§ bucket_count_type
§ bucket_size_type
§ anonymous enum
Enumerator |
---|
eDefaultBlockSize | |
eDefaultBucketCount | |
eDefaultBucketSize | |
Definition at line 43 of file XalanDOMStringPool.hpp.
§ XalanDOMStringPool()
Create a string pool.
- Parameters
-
theBlockSize | The block size for the allocator. |
theBucketCount | The number of buckets to use for the hash table. This should be a prime number for best results. |
theBucketSize | The initial size of each bucket in the hash table. |
§ ~XalanDOMStringPool()
virtual XalanDOMStringPool::~XalanDOMStringPool |
( |
| ) |
|
|
virtual |
§ clear()
virtual void XalanDOMStringPool::clear |
( |
| ) |
|
|
virtual |
§ create()
§ get() [1/2]
Get a pooled string.
If the string is not pooled, it is added.
- Parameters
-
theString | The string to pool. |
- Returns
- a const reference to the pooled string.
Reimplemented in XercesLiaisonXalanDOMStringPool.
§ get() [2/2]
Get a pooled string.
If the string is not pooled, it is added.
- Parameters
-
theString | The string to pool. |
theLength | The length of the string. If XalanDOMString::npos, the string is assumed to be null-terminated. |
- Returns
- a const reference to the pooled string.
Reimplemented in XercesLiaisonXalanDOMStringPool.
§ getHashTable()
Get a reference to the pool's hash table.
Useful for diagnostic purposes.
- Returns
- a const reference to the hash table.
Definition at line 121 of file XalanDOMStringPool.hpp.
§ getMemoryManager() [1/2]
MemoryManager& XalanDOMStringPool::getMemoryManager |
( |
| ) |
|
|
inline |
§ getMemoryManager() [2/2]
const MemoryManager& XalanDOMStringPool::getMemoryManager |
( |
| ) |
const |
|
inline |
§ size()
virtual size_t XalanDOMStringPool::size |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following file: