Foxit PDF SDK

Public Member Functions | List of all members
CFX_ListArrayTemplate< T1, T2 > Class Template Reference
FXCRT

Inherits CFX_Object.

## Public Member Functions
void | Add (FX_INT32 nStart, FX_INT32 nCount)
| Add a list data. More...
void | Clear ()
| Clear data. More...
T2 * | GetPtrAt (FX_INT32 nIndex)
| Get a point to data. More...
T2 & | operator[] (FX_INT32 nIndex)
| Subscript([]) operator overload. More...

## Detailed Description

### template<typename T1, typename T2>
class CFX_ListArrayTemplate< T1, T2 >

The class represents the list array template.

## Member Function Documentation

## ◆ Add()

template<typename T1 , typename T2 >

void CFX_ListArrayTemplate< T1, T2 >::Add | ( | FX_INT32 | nStart,
|  | FX_INT32 | nCount
| ) |  |
| inline

Add a list data.

Parameters

  [in] | nStart | The start index of data
  [in] | nCount | The count of data

Returns
  None.

## ◆ Clear()

template<typename T1 , typename T2 >

void CFX_ListArrayTemplate< T1, T2 >::Clear | ( |  | ) |
| inline

Clear data.

Returns
  None.

## ◆ GetPtrAt()

template<typename T1 , typename T2 >

T2* CFX_ListArrayTemplate< T1, T2 >::GetPtrAt | ( | FX_INT32 | nIndex | ) |
| inline

Get a point to data.

Parameters

  [in] | nIndex | The data index.

Returns
  Pointer to the element specified by index.

## ◆ operator[]()

template<typename T1 , typename T2 >

T2& CFX_ListArrayTemplate< T1, T2 >::operator[] | ( | FX_INT32 | nIndex | ) |
| inline

Subscript([]) operator overload.

Parameters

  [in] | nIndex | The data index.

Returns
  The retrieved element.