LibreOffice Module sc (master) 1
|
#include <tokstack.hxx>
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 |
Definition at line 72 of file tokstack.hxx.
|
inline |
Definition at line 78 of file tokstack.hxx.
|
inline |
Definition at line 115 of file tokstack.hxx.
References TokenPoolPool< T, InitialCapacity >::m_capacity, n, and TokenPoolPool< T, InitialCapacity >::ppP_Str.
Referenced by TokenPool::GetElement().
|
inline |
Definition at line 84 of file tokstack.hxx.
References i, TokenPoolPool< T, InitialCapacity >::lcl_canGrow(), TokenPoolPool< T, InitialCapacity >::m_capacity, and TokenPoolPool< T, InitialCapacity >::ppP_Str.
Referenced by TokenPool::Store(), and TokenPool::StoreNlf().
|
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().
|
inline |
Definition at line 123 of file tokstack.hxx.
References n, and TokenPoolPool< T, InitialCapacity >::ppP_Str.
|
inline |
Definition at line 119 of file tokstack.hxx.
References n, and TokenPoolPool< T, InitialCapacity >::ppP_Str.
sal_uInt16 TokenPoolPool< T, InitialCapacity >::m_capacity |
Definition at line 75 of file tokstack.hxx.
Referenced by TokenPoolPool< T, InitialCapacity >::getIfInRange(), TokenPoolPool< T, InitialCapacity >::Grow(), TokenPool::Store(), and TokenPool::StoreNlf().
sal_uInt16 TokenPoolPool< T, InitialCapacity >::m_writemark |
Definition at line 76 of file tokstack.hxx.
Referenced by TokenPool::GetElement(), TokenPool::Reset(), TokenPool::Store(), and TokenPool::StoreNlf().
std::unique_ptr<T[]> TokenPoolPool< T, InitialCapacity >::ppP_Str |
Definition at line 74 of file tokstack.hxx.
Referenced by TokenPoolPool< T, InitialCapacity >::getIfInRange(), TokenPoolPool< T, InitialCapacity >::Grow(), and TokenPoolPool< T, InitialCapacity >::operator[]().