Foxit PDF SDK
foxit.common.fxcrt.Int32Array类 参考

有符号整数值数组。 更多...

类 foxit.common.fxcrt.Int32Array 继承关系图:
foxit.common.fxcrt.BasicArray

Public 成员函数

 Int32Array ()
 构造一个简单对象。
 
 Int32Array (Int32Array other)
 用另一个数组对象构造。 更多...
 
bool Add (int newElement)
 在尾部添加元素。可能会增长数组。 更多...
 
int Find (int data, int iStart)
 从指定位置到最后查找元素。 更多...
 
int GetAt (int nIndex)
 此方法检索由索引号指定的元素。 更多...
 
int GetSize ()
 获取数组中元素的数量。 更多...
 
int GetUpperBound ()
 获取数组中的上界,实际上是最大有效索引。 更多...
 
bool InsertAt (int nIndex, int newElement, int nCount)
 在指定位置插入一个或多个连续元素。 更多...
 
bool InsertAt (int nStartIndex, BasicArray pNewArray)
 在指定位置插入一个数组。 更多...
 
void RemoveAll ()
 清理数组。 更多...
 
bool RemoveAt (int nIndex, int nCount)
 在指定位置移除若干元素。 更多...
 
bool SetAt (int nIndex, int newElement)
 此方法覆盖由索引号指定的元素。 更多...
 
bool SetAtGrow (int nIndex, int newElement)
 在指定位置设置元素值。可能会增长数组。 更多...
 
bool SetSize (int nNewSize, int nGrowBy)
 更改分配的大小和增长量。 更多...
 

详细描述

有符号整数值数组。

构造及析构函数说明

◆ Int32Array()

foxit.pdf.graphics.Int32Array.Int32Array ( Int32Array  other)
inline

用另一个数组对象构造。

参数
[in]other另一个数组对象。

成员函数说明

◆ Add()

bool foxit.common.fxcrt.Int32Array.Add ( int  newElement)
inline

在尾部添加元素。可能会增长数组。

参数
[in]newElement输入的元素。
返回
true 表示成功,false 表示失败(如内存错误)。

◆ Find()

int foxit.common.fxcrt.Int32Array.Find ( int  data,
int  iStart 
)
inline

从指定位置到最后查找元素。

参数
[in]data输入的元素。
[in]iStart指定开始查找的起始元素的基于零的索引。
返回
找到的元素的索引。-1表示未找到。

◆ GetAt()

int foxit.common.fxcrt.Int32Array.GetAt ( int  nIndex)
inline

此方法检索由索引号指定的元素。

参数
[in]nIndex指定元素的基于零的索引。
返回
元素。

◆ GetSize()

int foxit.common.fxcrt.Int32Array.GetSize ( )
inline

获取数组中元素的数量。

返回
数组中元素的数量。

◆ GetUpperBound()

int foxit.common.fxcrt.Int32Array.GetUpperBound ( )
inline

获取数组中的上界,实际上是最大有效索引。

返回
上界。

◆ InsertAt() [1/2]

bool foxit.common.fxcrt.Int32Array.InsertAt ( int  nIndex,
int  newElement,
int  nCount 
)
inline

在指定位置插入一个或多个连续元素。

参数
[in]nIndex指定数组中的从零开始的索引。
[in]newElement指定要插入的元素值。
[in]nCount指定要插入的元素数量。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ InsertAt() [2/2]

bool foxit.common.fxcrt.Int32Array.InsertAt ( int  nStartIndex,
BasicArray  pNewArray 
)
inline

在指定位置插入一个数组。

参数
[in]nStartIndex指定插入位置起始元素的从零开始索引。
[in]pNewArray输入的数组。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ RemoveAll()

void foxit.common.fxcrt.Int32Array.RemoveAll ( )
inline

清理数组。

返回
无。

◆ RemoveAt()

bool foxit.common.fxcrt.Int32Array.RemoveAt ( int  nIndex,
int  nCount 
)
inline

在指定位置移除若干元素。

参数
[in]nIndex指定数组中的基于零的索引。
[in]nCount指定要移除的元素数量。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ SetAt()

bool foxit.common.fxcrt.Int32Array.SetAt ( int  nIndex,
int  newElement 
)
inline

此方法覆盖由索引号指定的元素。

参数
[in]nIndex指定元素的基于零的索引。
[in]newElement元素。
返回
true 表示成功,false 表示失败。

◆ SetAtGrow()

bool foxit.common.fxcrt.Int32Array.SetAtGrow ( int  nIndex,
int  newElement 
)
inline

在指定位置设置元素值。可能会增长数组。

参数
[in]nIndex指定数组中元素的基于零的索引。
[in]newElement输入的元素。
返回
true 表示成功,false 表示失败。

◆ SetSize()

bool foxit.common.fxcrt.Int32Array.SetSize ( int  nNewSize,
int  nGrowBy 
)
inline

更改分配的大小和增长量。

参数
[in]nNewSize期望的新大小(以元素为单位)。
[in]nGrowBy期望的增长量(以元素为单位)。这可以为-1表示增长量不变。
返回
true 表示成功,false 表示失败(如参数或内存错误)。