#include <asner.h>
Public Member Functions | |
PINDEX | GetSize () const |
PBoolean | SetSize (PINDEX newSize) |
PASN_Object & | operator[] (PINDEX i) const |
void | Append (PASN_Object *obj) |
void | RemoveAt (PINDEX i) |
void | RemoveAll () |
virtual Comparison | Compare (const PObject &obj) const |
virtual void | PrintOn (ostream &strm) const |
virtual void | SetConstraintBounds (ConstraintType type, int lower, unsigned upper) |
virtual PString | GetTypeAsString () const |
virtual PINDEX | GetDataLength () const |
virtual PBoolean | IsPrimitive () const |
virtual PBoolean | Decode (PASN_Stream &) |
virtual void | Encode (PASN_Stream &) const |
virtual PASN_Object * | CreateObject () const =0 |
PASN_Array & | operator= (const PASN_Array &other) |
Protected Member Functions | |
PASN_Array (unsigned tag=UniversalSequence, TagClass tagClass=UniversalTagClass) | |
PASN_Array (const PASN_Array &other) | |
Protected Attributes | |
PASN_ObjectArray | array |
Class for ASN Array type.
PASN_Array::PASN_Array | ( | unsigned | tag = UniversalSequence , |
|
TagClass | tagClass = UniversalTagClass | |||
) | [protected] |
PASN_Array::PASN_Array | ( | const PASN_Array & | other | ) | [protected] |
void PASN_Array::Append | ( | PASN_Object * | obj | ) | [inline] |
References array.
virtual Comparison PASN_Array::Compare | ( | const PObject & | obj | ) | const [virtual] |
virtual PASN_Object* PASN_Array::CreateObject | ( | ) | const [pure virtual] |
virtual PBoolean PASN_Array::Decode | ( | PASN_Stream & | ) | [virtual] |
Implements PASN_Object.
virtual void PASN_Array::Encode | ( | PASN_Stream & | ) | const [virtual] |
Implements PASN_Object.
virtual PINDEX PASN_Array::GetDataLength | ( | ) | const [virtual] |
Implements PASN_Object.
PINDEX PASN_Array::GetSize | ( | ) | const [inline] |
References array.
virtual PString PASN_Array::GetTypeAsString | ( | ) | const [virtual] |
Return a string giving the type of the object
Implements PASN_Object.
virtual PBoolean PASN_Array::IsPrimitive | ( | ) | const [virtual] |
Reimplemented from PASN_Object.
PASN_Array& PASN_Array::operator= | ( | const PASN_Array & | other | ) |
PASN_Object& PASN_Array::operator[] | ( | PINDEX | i | ) | const [inline] |
References array.
virtual void PASN_Array::PrintOn | ( | ostream & | strm | ) | const [virtual] |
Output the contents of the object to the stream. The exact output is dependent on the exact semantics of the descendent class. This is primarily used by the standard operator<< function.
The default behaviour is to print the class name.
Reimplemented from PObject.
void PASN_Array::RemoveAll | ( | ) | [inline] |
References array.
void PASN_Array::RemoveAt | ( | PINDEX | i | ) | [inline] |
References array.
virtual void PASN_Array::SetConstraintBounds | ( | ConstraintType | type, | |
int | lower, | |||
unsigned | upper | |||
) | [virtual] |
Reimplemented from PASN_Object.
PBoolean PASN_Array::SetSize | ( | PINDEX | newSize | ) |
PASN_ObjectArray PASN_Array::array [protected] |
Referenced by Append(), GetSize(), operator[](), RemoveAll(), and RemoveAt().