PTLib  Version 2.10.4
PShortArray Class Reference

Array of short integers. More...

#include <array.h>

Inheritance diagram for PShortArray:
PBaseArray< T > PAbstractArray PContainer PObject PTones PDTMFEncoder

List of all members.

Public Member Functions

Construction
 PShortArray (PINDEX initialSize=0)
 Construct a new dynamic array of shorts.
 PShortArray (short const *buffer, PINDEX length, PBoolean dynamic=true)
 Construct a new dynamic array of shorts.

Detailed Description

Array of short integers.


Constructor & Destructor Documentation

PShortArray::PShortArray ( PINDEX  initialSize = 0)

Construct a new dynamic array of shorts.

The array is initialised to all zeros.

Parameters:
initialSizeInitial number of elements in the array.
PShortArray::PShortArray ( short const *  buffer,
PINDEX  length,
PBoolean  dynamic = true 
)

Construct a new dynamic array of shorts.

Parameters:
bufferPointer to an array of shorts.
lengthNumber of elements pointed to by buffer.
dynamicBuffer is copied and dynamically allocated.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines