Class DVector (unit SDL)

Inherits from

DSequence

DVector is an abstract base class for containers that hold their items in an integer-addressable sequence.

Constructors



Functions

function capacity : Integer; virtual; abstract;

Returns the number of elements that can fit into this vector without any expansion.

procedure insertAt(index : Integer; objs : array of const); virtual;

Inserts values before the object at position index.

procedure insertAtIter(iterator : DIterator; objs : array of const); virtual;

Inserts values before the object the iterator is positioned over.

procedure insertMultipleAt(index : Integer; count : Integer; obj : array of const); virtual;

Inserts count copies of a value before the object at position index.

procedure insertMultipleAtIter(iterator : DIterator; count : Integer; obj : array of const); virtual;

Inserts count copies of a value before the object the iterator is positioned at.

procedure insertRangeAt(index : Integer; _start, _finish : DIterator); virtual; abstract;

Inserts copies of the objects in a given range before the object at position index.

procedure insertRangeAtIter(iterator : DIterator; _start, _finish : DIterator); virtual; abstract;

Inserts copies of the objects in a given range before the object the iterator is over.

procedure removeAt(index : Integer); virtual; abstract;

Remove the object at the given index.

procedure removeBetween(_begin, _end : Integer); virtual; abstract;

Remove all objects between two indicies.

procedure removeWithin(_begin, _end : Integer; objs : array of const); override;

Remove every occurence of a value between two indicies.

procedure setCapacity(amount : Integer); virtual; abstract;

Ensure that this vector can accomodate at least amount objects without expanding.

procedure _insertAt(index : Integer; const obj : DObject); virtual; abstract;

Inserts an object before the object at position index.

procedure _insertAtIter(iterator : DIterator; const obj : DObject); virtual; abstract;

Inserts an object before the object the iterator is positioned over.

procedure _insertMultipleAt(index : Integer; count : Integer; const obj : DObject); virtual; abstract;

Inserts count copies of obj before the object at position index.

procedure _insertMultipleAtIter(iterator : DIterator; count : Integer; const obj : DObject); virtual; abstract;

Inserts count copies of obj before the object iterator is positioned at.

procedure _removeWithin(_begin, _end : Integer; const obj : DObject); override; abstract;

Remove every occurrence of object between two indicies.

Properties

Events

Variables


Constructors


Functions


function capacity : Integer; virtual; abstract;

Returns the number of elements that can fit into this vector without any expansion.


procedure insertAt(index : Integer; objs : array of const); virtual;

Inserts values before the object at position index. If the iterator is atEnd, the object will be added at the end. The values will appear in the order specified.


procedure insertAtIter(iterator : DIterator; objs : array of const); virtual;

Inserts values before the object the iterator is positioned over. If the iterator is atEnd, the object will be added at the end. The values will appear in the order specified.


procedure insertMultipleAt(index : Integer; count : Integer; obj : array of const); virtual;

Inserts count copies of a value before the object at position index.


procedure insertMultipleAtIter(iterator : DIterator; count : Integer; obj : array of const); virtual;

Inserts count copies of a value before the object the iterator is positioned at.


procedure insertRangeAt(index : Integer; _start, _finish : DIterator); virtual; abstract;

Inserts copies of the objects in a given range before the object at position index.


procedure insertRangeAtIter(iterator : DIterator; _start, _finish : DIterator); virtual; abstract;

Inserts copies of the objects in a given range before the object the iterator is over.


procedure removeAt(index : Integer); virtual; abstract;

Remove the object at the given index.


procedure removeBetween(_begin, _end : Integer); virtual; abstract;

Remove all objects between two indicies.


procedure removeWithin(_begin, _end : Integer; objs : array of const); override;

Remove every occurence of a value between two indicies.


procedure setCapacity(amount : Integer); virtual; abstract;

Ensure that this vector can accomodate at least amount objects without expanding.


procedure _insertAt(index : Integer; const obj : DObject); virtual; abstract;

Inserts an object before the object at position index. If the iterator is atEnd, the object will be added at the end.


procedure _insertAtIter(iterator : DIterator; const obj : DObject); virtual; abstract;

Inserts an object before the object the iterator is positioned over. If the iterator is atEnd, the object will be added at the end.


procedure _insertMultipleAt(index : Integer; count : Integer; const obj : DObject); virtual; abstract;

Inserts count copies of obj before the object at position index.


procedure _insertMultipleAtIter(iterator : DIterator; count : Integer; const obj : DObject); virtual; abstract;

Inserts count copies of obj before the object iterator is positioned at.


procedure _removeWithin(_begin, _end : Integer; const obj : DObject); override; abstract;

Remove every occurrence of object between two indicies.


Properties


Events


Variables