template < class Class, class Arg, int T_nGranularity > class Array

Base Classes

Background

The class Array defines the basic array manager type. Any descendant can manage a buffer of objects of any other class, but all elements must be the same class, and the type cannot require a destructor. Also, Array requires the type define several operators, including ==, =, >, and <. The operators must be const.

Constructors, Destructors, and Type Methods

Member Access Methods

Buffer Size and Allocation Management

Buffer Move Methods

  • inline void Move( int destIndex, int srcIndex, int moveCount )

Collection Management

  • int Add( Arg object )
  • int Del( int index )
  • void DirectCopy( Array<Class, Arg, T_nGranularity> & source )
  • int Ins( Arg object, int index )
  • Class Remove( int index )
  • int Swap( Array<Class, Arg, T_nGranularity> & p_roArray )

Search Methods

  • inline int At( Arg object ) const
  • int Find( Arg object, int startIndex ) const
  • int GetIndex( const Class & object ) const
  • inline int In( Arg object ) const

Sorted Collection Management

Array Operators

Member Variables

DeclarationDocumentation If Applicable
Class * objectsThe `objects` member stores a pointer to the array of objects managed by the Array object.