LibreOffice Module svl (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
svl::SharedStringPool Class Reference

Storage for pool of shared strings. More...

#include <sharedstringpool.hxx>

Classes

struct  Impl
 

Public Member Functions

 SharedStringPool (const CharClass &rCharClass)
 
 ~SharedStringPool ()
 
SharedString intern (const OUString &rStr)
 Intern a string object into the shared string pool. More...
 
void purge ()
 Go through all string objects in the pool, and clear those that are no longer used outside of the pool. More...
 
size_t getCount () const
 
size_t getCountIgnoreCase () const
 

Private Member Functions

 SharedStringPool (const SharedStringPool &)=delete
 
SharedStringPooloperator= (const SharedStringPool &)=delete
 

Private Attributes

std::unique_ptr< ImplmpImpl
 

Detailed Description

Storage for pool of shared strings.

It also provides mapping from original-cased strings to upper-cased strings for case insensitive operations.

Definition at line 28 of file sharedstringpool.hxx.

Constructor & Destructor Documentation

◆ SharedStringPool() [1/2]

svl::SharedStringPool::SharedStringPool ( const SharedStringPool )
privatedelete

◆ SharedStringPool() [2/2]

svl::SharedStringPool::SharedStringPool ( const CharClass rCharClass)

◆ ~SharedStringPool()

svl::SharedStringPool::~SharedStringPool ( )

Definition at line 78 of file sharedstringpool.cxx.

Member Function Documentation

◆ getCount()

size_t svl::SharedStringPool::getCount ( ) const

Definition at line 167 of file sharedstringpool.cxx.

References mpImpl.

◆ getCountIgnoreCase()

size_t svl::SharedStringPool::getCountIgnoreCase ( ) const

Definition at line 173 of file sharedstringpool.cxx.

References mpImpl.

◆ intern()

SharedString svl::SharedStringPool::intern ( const OUString &  rStr)

Intern a string object into the shared string pool.

Parameters
rStrstring object to intern.
Returns
a pointer to the string object stored inside the pool, or NULL if the insertion fails.

Definition at line 80 of file sharedstringpool.cxx.

References mpImpl.

Referenced by SharedStringPool().

◆ operator=()

SharedStringPool & svl::SharedStringPool::operator= ( const SharedStringPool )
privatedelete

◆ purge()

void svl::SharedStringPool::purge ( )

Go through all string objects in the pool, and clear those that are no longer used outside of the pool.

Definition at line 116 of file sharedstringpool.cxx.

References mpImpl.

Member Data Documentation

◆ mpImpl

std::unique_ptr<Impl> svl::SharedStringPool::mpImpl
private

Definition at line 31 of file sharedstringpool.hxx.

Referenced by getCount(), getCountIgnoreCase(), intern(), and purge().


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