PASN_Array Class Reference

#include <asner.h>

Inheritance diagram for PASN_Array:

PASN_ConstrainedObject PASN_Object PObject List of all members.

Public Member Functions

PINDEX GetSize () const
BOOL SetSize (PINDEX newSize)
PASN_Objectoperator[] (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 BOOL IsPrimitive () const
virtual BOOL Decode (PASN_Stream &)
virtual void Encode (PASN_Stream &) const
virtual PASN_ObjectCreateObject () const=0
PASN_Arrayoperator= (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

Detailed Description

Class for ASN Array type.


Constructor & Destructor Documentation

PASN_Array::PASN_Array ( unsigned  tag = UniversalSequence,
TagClass  tagClass = UniversalTagClass 
) [protected]

PASN_Array::PASN_Array ( const PASN_Array other  )  [protected]


Member Function Documentation

PINDEX PASN_Array::GetSize (  )  const [inline]

BOOL PASN_Array::SetSize ( PINDEX  newSize  ) 

PASN_Object& PASN_Array::operator[] ( PINDEX  i  )  const [inline]

void PASN_Array::Append ( PASN_Object obj  )  [inline]

void PASN_Array::RemoveAt ( PINDEX  i  )  [inline]

void PASN_Array::RemoveAll (  )  [inline]

virtual Comparison PASN_Array::Compare ( const PObject obj  )  const [virtual]

Compare the two objects and return their relative rank. This function is usually overridden by descendent classes to yield the ranking according to the semantics of the object.

The default function is to use the CompareObjectMemoryDirect()# function to do a byte wise memory comparison of the two objects.

Returns:
LessThan#, EqualTo# or GreaterThan# according to the relative rank of the objects.

Reimplemented from PObject.

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.

virtual void PASN_Array::SetConstraintBounds ( ConstraintType  type,
int  lower,
unsigned  upper 
) [virtual]

Reimplemented from PASN_Object.

virtual PString PASN_Array::GetTypeAsString (  )  const [virtual]

Return a string giving the type of the object

Implements PASN_Object.

virtual PINDEX PASN_Array::GetDataLength (  )  const [virtual]

Implements PASN_Object.

virtual BOOL PASN_Array::IsPrimitive (  )  const [virtual]

Reimplemented from PASN_Object.

virtual BOOL PASN_Array::Decode ( PASN_Stream  )  [virtual]

Implements PASN_Object.

virtual void PASN_Array::Encode ( PASN_Stream  )  const [virtual]

Implements PASN_Object.

virtual PASN_Object* PASN_Array::CreateObject (  )  const [pure virtual]

PASN_Array& PASN_Array::operator= ( const PASN_Array other  ) 


Member Data Documentation

PASN_ObjectArray PASN_Array::array [protected]


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:25:03 2008 for PTLib by  doxygen 1.5.1