Class DInternalMap (unit SDL)

Inherits from

DAssociative

Internal class. Do not use.

Constructors



Functions

function allowsDuplicates : Boolean;

Determine if this map permits duplicates.

procedure cloneTo(newContainer : DContainer);

Clones this map to another one.

destructor Destroy;


function finish : DIterator;

Returns an iterator positioned after the last item.

function lower_bound(obj : array of const) : DIterator;

Position an iterator on the first pair that matches or is greater than the supplied key.

function maxSize : Integer;

Returns the absolute maximum number of items this map can hold.

procedure removeAt(iterator : DIterator);

Removes the pair the iterator is pointing to.

procedure removeIn(_start, _finish : DIterator);

Removes all pairs from start to finish.

function size : Integer;

Returns the number of pairs in this map.

function start : DIterator;

Returns an iterator positioned at the first pair in the map.

function startKey : DIterator;

Returns a key oriented iterator positioned at the first pair.

function upper_bound(obj : array of const) : DIterator;

Position an iterator after the last pair that matches or is less than the supplied key.

procedure _add(const obj : DObject);

Adds an object to this map.

function _count(const key : DObject) : Integer;

Return the number of pairs with keys equal to the specified key.

function _countValues(const value : DObject) : Integer;

Return the number of pairs with values equal to the specified value.

function _getAt(const key : DObject) : DObject;

Retrieve the value for a specified key.

function _locate(const key : DObject) : DIterator;

Returns an iterator positioned at the pair with the specified key.

function _lower_bound(const key : DObject) : DIterator;

Position an iterator on the first pair that matches or is greater than the supplied key.

procedure _putAt(const key, value : DObject);

Add the specified key, value pair to the map.

procedure _remove(const key : DObject);

Removes the all pairs with the specified key.

procedure _removeN(const key : DObject; count : Integer);

Removes the first count pairs with the specified key.

procedure _removeValueN(const value : DObject; count : Integer);

Removes the first pair with the specified value.

function _upper_bound(const key : DObject) : DIterator;

Position an iterator after the last pair that matches or is less than the supplied key.

Properties

Events

Variables


Constructors


Functions


function allowsDuplicates : Boolean;

Determine if this map permits duplicates.


procedure cloneTo(newContainer : DContainer);

Clones this map to another one.


destructor Destroy;


function finish : DIterator;

Returns an iterator positioned after the last item.


function lower_bound(obj : array of const) : DIterator;

Position an iterator on the first pair that matches or is greater than the supplied key. Bound functions are only available on ordered map structures.


function maxSize : Integer;

Returns the absolute maximum number of items this map can hold.


procedure removeAt(iterator : DIterator);

Removes the pair the iterator is pointing to.


procedure removeIn(_start, _finish : DIterator);

Removes all pairs from start to finish.


function size : Integer;

Returns the number of pairs in this map.


function start : DIterator;

Returns an iterator positioned at the first pair in the map.


function startKey : DIterator;

Returns a key oriented iterator positioned at the first pair.


function upper_bound(obj : array of const) : DIterator;

Position an iterator after the last pair that matches or is less than the supplied key. Bound functions are only available on ordered map structures.


procedure _add(const obj : DObject);

Adds an object to this map.


function _count(const key : DObject) : Integer;

Return the number of pairs with keys equal to the specified key.


function _countValues(const value : DObject) : Integer;

Return the number of pairs with values equal to the specified value.


function _getAt(const key : DObject) : DObject;

Retrieve the value for a specified key. The key must exist in the map.


function _locate(const key : DObject) : DIterator;

Returns an iterator positioned at the pair with the specified key. If the key is not found, the iterator is positioned at the end.


function _lower_bound(const key : DObject) : DIterator;

Position an iterator on the first pair that matches or is greater than the supplied key. Bound functions are only available on ordered map structures.


procedure _putAt(const key, value : DObject);

Add the specified key, value pair to the map. Copies are made of the objects.


procedure _remove(const key : DObject);

Removes the all pairs with the specified key.


procedure _removeN(const key : DObject; count : Integer);

Removes the first count pairs with the specified key.


procedure _removeValueN(const value : DObject; count : Integer);

Removes the first pair with the specified value.


function _upper_bound(const key : DObject) : DIterator;

Position an iterator after the last pair that matches or is less than the supplied key. Bound functions are only available on ordered map structures.


Properties


Events


Variables