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

◆ TokenPoolPool()

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

Definition at line 78 of file tokstack.hxx.

Member Function Documentation

◆ getIfInRange()

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

◆ Grow()

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

◆ lcl_canGrow()

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.

References SAL_MAX_UINT16.

Referenced by TokenPoolPool< T, InitialCapacity >::Grow().

◆ operator[]() [1/2]

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

Definition at line 123 of file tokstack.hxx.

References n, and TokenPoolPool< T, InitialCapacity >::ppP_Str.

◆ operator[]() [2/2]

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

Definition at line 119 of file tokstack.hxx.

References n, and TokenPoolPool< T, InitialCapacity >::ppP_Str.

Member Data Documentation

◆ m_capacity

template<typename T , int InitialCapacity>
sal_uInt16 TokenPoolPool< T, InitialCapacity >::m_capacity

◆ m_writemark

template<typename T , int InitialCapacity>
sal_uInt16 TokenPoolPool< T, InitialCapacity >::m_writemark

◆ ppP_Str

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

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