#include <xalanc/PlatformSupport/XalanDOMStringPool.hpp>
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 xalanc::XalanDOMStringPool::~XalanDOMStringPool |
( |
| ) |
|
|
virtual |
◆ clear()
virtual void xalanc::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. |
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 xalanc::XercesLiaisonXalanDOMStringPool.
◆ get() [2/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 xalanc::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& xalanc::XalanDOMStringPool::getMemoryManager |
( |
| ) |
|
|
inline |
◆ getMemoryManager() [2/2]
const MemoryManager& xalanc::XalanDOMStringPool::getMemoryManager |
( |
| ) |
const |
|
inline |
◆ size()
virtual size_t xalanc::XalanDOMStringPool::size |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following file: