LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
KernArray Class Referencefinal

#include <kernarray.hxx>

Public Member Functions

 KernArray (int nSubUnitFactor=1)
 
sal_Int32 operator[] (size_t nIndex) const
 
sal_Int32 get (size_t nIndex) const
 
int get_factor () const
 
sal_Int32 get_subunit (size_t nIndex) const
 
void set_subunit (size_t nIndex, sal_Int32 nValue)
 
std::vector< sal_Int32 > & get_subunit_array ()
 
void adjust (size_t nIndex, sal_Int32 nDiff)
 
void set (size_t nIndex, sal_Int32 nValue)
 
void push_back (sal_Int32 nUnit)
 
sal_Int32 back () const
 
size_t size () const
 
bool empty () const
 
void clear ()
 
void assign (KernArraySpan other)
 
void resize (size_t nSize)
 
void resize (size_t nSize, sal_Int32 nDefault)
 
void reserve (size_t nCapacity)
 
bool operator== (const KernArray &rOther) const
 
 operator KernArraySpan () const
 

Private Attributes

int m_nSubUnitFactor
 
std::vector< sal_Int32 > m_aDXArray
 

Detailed Description

Definition at line 45 of file kernarray.hxx.

Constructor & Destructor Documentation

◆ KernArray()

KernArray::KernArray ( int  nSubUnitFactor = 1)
inline

Definition at line 52 of file kernarray.hxx.

Member Function Documentation

◆ adjust()

void KernArray::adjust ( size_t  nIndex,
sal_Int32  nDiff 
)
inline

Definition at line 69 of file kernarray.hxx.

References m_aDXArray, m_nSubUnitFactor, and nIndex.

◆ assign()

void KernArray::assign ( KernArraySpan  other)
inline

◆ back()

sal_Int32 KernArray::back ( ) const
inline

Definition at line 72 of file kernarray.hxx.

References m_aDXArray, and m_nSubUnitFactor.

◆ clear()

void KernArray::clear ( )
inline

Definition at line 75 of file kernarray.hxx.

References m_aDXArray.

Referenced by SvmReader::TextArrayHandler(), and WMFWriter::WriteRecords().

◆ empty()

bool KernArray::empty ( ) const
inline

◆ get()

sal_Int32 KernArray::get ( size_t  nIndex) const
inline

Definition at line 58 of file kernarray.hxx.

References m_aDXArray, m_nSubUnitFactor, and nIndex.

Referenced by operator[]().

◆ get_factor()

int KernArray::get_factor ( ) const
inline

Definition at line 63 of file kernarray.hxx.

References m_nSubUnitFactor.

Referenced by OutputDevice::GetCaretPositions(), and OutputDevice::GetTextArray().

◆ get_subunit()

sal_Int32 KernArray::get_subunit ( size_t  nIndex) const
inline

Definition at line 64 of file kernarray.hxx.

References m_aDXArray, and nIndex.

◆ get_subunit_array()

std::vector< sal_Int32 > & KernArray::get_subunit_array ( )
inline

Definition at line 67 of file kernarray.hxx.

References m_aDXArray.

Referenced by OutputDevice::GetCaretPositions(), and OutputDevice::GetTextArray().

◆ operator KernArraySpan()

KernArray::operator KernArraySpan ( ) const
inline

Definition at line 103 of file kernarray.hxx.

References m_aDXArray, and m_nSubUnitFactor.

◆ operator==()

bool KernArray::operator== ( const KernArray rOther) const
inline

Definition at line 92 of file kernarray.hxx.

References i, m_aDXArray, and size().

◆ operator[]()

sal_Int32 KernArray::operator[] ( size_t  nIndex) const
inline

Definition at line 57 of file kernarray.hxx.

References get(), and nIndex.

◆ push_back()

void KernArray::push_back ( sal_Int32  nUnit)
inline

Definition at line 71 of file kernarray.hxx.

References m_aDXArray, and m_nSubUnitFactor.

Referenced by Calendar::ImplDraw(), and SvmReader::TextArrayHandler().

◆ reserve()

void KernArray::reserve ( size_t  nCapacity)
inline

Definition at line 90 of file kernarray.hxx.

References m_aDXArray.

◆ resize() [1/2]

void KernArray::resize ( size_t  nSize)
inline

Definition at line 85 of file kernarray.hxx.

References m_aDXArray.

Referenced by SVMConverter::ImplConvertFromSVM1().

◆ resize() [2/2]

void KernArray::resize ( size_t  nSize,
sal_Int32  nDefault 
)
inline

Definition at line 86 of file kernarray.hxx.

References m_aDXArray, and m_nSubUnitFactor.

◆ set()

void KernArray::set ( size_t  nIndex,
sal_Int32  nValue 
)
inline

◆ set_subunit()

void KernArray::set_subunit ( size_t  nIndex,
sal_Int32  nValue 
)
inline

Definition at line 66 of file kernarray.hxx.

References m_aDXArray, nIndex, and nValue.

◆ size()

size_t KernArray::size ( ) const
inline

Definition at line 73 of file kernarray.hxx.

References m_aDXArray.

Referenced by SVMConverter::ImplConvertFromSVM1(), Calendar::ImplDraw(), and operator==().

Member Data Documentation

◆ m_aDXArray

std::vector<sal_Int32> KernArray::m_aDXArray
private

◆ m_nSubUnitFactor

int KernArray::m_nSubUnitFactor
private

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