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

#include <kernarray.hxx>

Collaboration diagram for KernArraySpan:
[legend]

Public Member Functions

 KernArraySpan ()
 
 KernArraySpan (o3tl::span< const sal_Int32 > DXArray, int nSubUnitFactor=1)
 
size_t size () const
 
bool empty () const
 
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
 

Private Attributes

int m_nSubUnitFactor
 
o3tl::span< const sal_Int32 > m_DXArray
 

Detailed Description

Definition at line 16 of file kernarray.hxx.

Constructor & Destructor Documentation

◆ KernArraySpan() [1/2]

KernArraySpan::KernArraySpan ( )
inline

Definition at line 23 of file kernarray.hxx.

◆ KernArraySpan() [2/2]

KernArraySpan::KernArraySpan ( o3tl::span< const sal_Int32 >  DXArray,
int  nSubUnitFactor = 1 
)
inline

Definition at line 28 of file kernarray.hxx.

Member Function Documentation

◆ empty()

bool KernArraySpan::empty ( ) const
inline

◆ get()

sal_Int32 KernArraySpan::get ( size_t  nIndex) const
inline

Definition at line 36 of file kernarray.hxx.

References m_DXArray, m_nSubUnitFactor, and nIndex.

Referenced by OutputDevice::ImplLayout(), and operator[]().

◆ get_factor()

int KernArraySpan::get_factor ( ) const
inline

Definition at line 41 of file kernarray.hxx.

References m_nSubUnitFactor.

Referenced by KernArray::assign(), and OutputDevice::ImplLayout().

◆ get_subunit()

sal_Int32 KernArraySpan::get_subunit ( size_t  nIndex) const
inline

Definition at line 42 of file kernarray.hxx.

References m_DXArray, and nIndex.

Referenced by KernArray::assign(), and OutputDevice::ImplLayout().

◆ operator[]()

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

Definition at line 35 of file kernarray.hxx.

References get(), and nIndex.

◆ size()

size_t KernArraySpan::size ( ) const
inline

Definition at line 33 of file kernarray.hxx.

References m_DXArray, and o3tl::span< typename T >::size().

Referenced by KernArray::assign().

Member Data Documentation

◆ m_DXArray

o3tl::span<const sal_Int32> KernArraySpan::m_DXArray
private

Definition at line 20 of file kernarray.hxx.

Referenced by empty(), get(), get_subunit(), and size().

◆ m_nSubUnitFactor

int KernArraySpan::m_nSubUnitFactor
private

Definition at line 19 of file kernarray.hxx.

Referenced by get(), and get_factor().


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