LibreOffice Module sc (master)  1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
TokenPoolPool< T, InitialCapacity > Struct Template Reference

#include <tokstack.hxx>

Inheritance diagram for TokenPoolPool< T, InitialCapacity >:
[legend]

Public Member Functions

 TokenPoolPool ()
 
bool Grow (sal_uInt16 nByMin=1)
 
T * getIfInRange (sal_uInt16 n) const
 
T const & operator[] (sal_uInt16 n) const
 
T & operator[] (sal_uInt16 n)
 

Static Public Member Functions

static sal_uInt16 lcl_canGrow (sal_uInt16 nOld, sal_uInt16 nByMin)
 Returns the new number of elements, or 0 if overflow. More...
 

Public Attributes

std::unique_ptr< T[]> ppP_Str
 
sal_uInt16 m_capacity
 
sal_uInt16 m_writemark
 

Detailed Description

template<typename T, int InitialCapacity>
struct TokenPoolPool< T, InitialCapacity >

Definition at line 72 of file tokstack.hxx.

Constructor & Destructor Documentation

template<typename T, int InitialCapacity>
TokenPoolPool< T, InitialCapacity >::TokenPoolPool ( )
inline

Definition at line 78 of file tokstack.hxx.

Member Function Documentation

template<typename T, int InitialCapacity>
T* TokenPoolPool< T, InitialCapacity >::getIfInRange ( sal_uInt16  n) const
inline

Definition at line 115 of file tokstack.hxx.

Referenced by TokenPool::GetElement().

template<typename T, int InitialCapacity>
bool TokenPoolPool< T, InitialCapacity >::Grow ( sal_uInt16  nByMin = 1)
inline

Definition at line 84 of file tokstack.hxx.

Referenced by TokenPool::Store(), and TokenPool::StoreNlf().

template<typename T, int InitialCapacity>
static sal_uInt16 TokenPoolPool< T, InitialCapacity >::lcl_canGrow ( sal_uInt16  nOld,
sal_uInt16  nByMin 
)
inlinestatic

Returns the new number of elements, or 0 if overflow.

Definition at line 101 of file tokstack.hxx.

Referenced by TokenPoolPool< std::unique_ptr< TokenPool::EXTCONT >, 32 >::Grow().

template<typename T, int InitialCapacity>
T const& TokenPoolPool< T, InitialCapacity >::operator[] ( sal_uInt16  n) const
inline

Definition at line 119 of file tokstack.hxx.

template<typename T, int InitialCapacity>
T& TokenPoolPool< T, InitialCapacity >::operator[] ( sal_uInt16  n)
inline

Definition at line 123 of file tokstack.hxx.

Member Data Documentation

template<typename T, int InitialCapacity>
sal_uInt16 TokenPoolPool< T, InitialCapacity >::m_capacity
template<typename T, int InitialCapacity>
sal_uInt16 TokenPoolPool< T, InitialCapacity >::m_writemark
template<typename T, int InitialCapacity>
std::unique_ptr<T[]> TokenPoolPool< T, InitialCapacity >::ppP_Str

Definition at line 74 of file tokstack.hxx.


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