#include <array.h>
Inheritance diagram for PCharArray:
Public Member Functions | |
PDECLARE_BASEARRAY (PCharArray, char) | |
Overrides from class PObject | |
virtual void | PrintOn (ostream &strm) const |
Print the array. | |
virtual void | ReadFrom (istream &strm) |
Read the array. |
PCharArray::PCharArray | ( | PINDEX | initialSize = 0 |
) |
Construct a new dynamic array of char. The array is initialised to all zero bytes.
initialSize | Initial number of elements in the array. |
PCharArray::PCharArray | ( | char const * | buffer, | |
PINDEX | length, | |||
BOOL | dynamic = TRUE | |||
) |
Construct a new dynamic array of char.
buffer | Pointer to an array of chars. |
length | Number of elements pointed to by buffer#. |
dynamic | Buffer is copied and dynamically allocated. |
PCharArray::PCharArray | ( | PINDEX | initialSize = 0 |
) |
Construct a new dynamic array of char. The array is initialised to all zero bytes.
initialSize | Initial number of elements in the array. |
PCharArray::PCharArray | ( | char const * | buffer, | |
PINDEX | length, | |||
BOOL | dynamic = TRUE | |||
) |
Construct a new dynamic array of char.
buffer | Pointer to an array of chars. |
length | Number of elements pointed to by buffer#. |
dynamic | Buffer is copied and dynamically allocated. |
PCharArray::PDECLARE_BASEARRAY | ( | PCharArray | , | |
char | ||||
) |
virtual void PCharArray::PrintOn | ( | ostream & | strm | ) | const [virtual] |
virtual void PCharArray::ReadFrom | ( | istream & | strm | ) | [virtual] |