Class DInternalMap (unit SDL) |
Inherits from
DAssociative
Internal class. Do not use.
function allowsDuplicates : Boolean; override;
Determine if this map permits duplicates.
procedure cloneTo(newContainer : DContainer); override;
Clones this map to another one.
destructor Destroy; override;
function finish : DIterator; override;
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; override;
Returns the absolute maximum number of items this map can hold.
procedure removeAt(iterator : DIterator); override;
Removes the pair the iterator is pointing to.
procedure removeIn(_start, _finish : DIterator); override;
Removes all pairs from start to finish.
function size : Integer; override;
Returns the number of pairs in this map.
function start : DIterator; override;
Returns an iterator positioned at the first pair in the map.
function startKey : DIterator; override;
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); override;
Adds an object to this map.
function _count(const key : DObject) : Integer; override;
Return the number of pairs with keys equal to the specified key.
function _countValues(const value : DObject) : Integer; override;
Return the number of pairs with values equal to the specified value.
function _getAt(const key : DObject) : DObject; override;
Retrieve the value for a specified key.
function _locate(const key : DObject) : DIterator; override;
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); override;
Add the specified key, value pair to the map.
procedure _remove(const key : DObject); override;
Removes the all pairs with the specified key.
procedure _removeN(const key : DObject; count : Integer); override;
Removes the first count pairs with the specified key.
procedure _removeValueN(const value : DObject; count : Integer); override;
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.
function allowsDuplicates : Boolean; override;
Determine if this map permits duplicates.
procedure cloneTo(newContainer : DContainer); override;
Clones this map to another one.
destructor Destroy; override;
function finish : DIterator; override;
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; override;
Returns the absolute maximum number of items this map can hold.
procedure removeAt(iterator : DIterator); override;
Removes the pair the iterator is pointing to.
procedure removeIn(_start, _finish : DIterator); override;
Removes all pairs from start to finish.
function size : Integer; override;
Returns the number of pairs in this map.
function start : DIterator; override;
Returns an iterator positioned at the first pair in the map.
function startKey : DIterator; override;
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); override;
Adds an object to this map.
function _count(const key : DObject) : Integer; override;
Return the number of pairs with keys equal to the specified key.
function _countValues(const value : DObject) : Integer; override;
Return the number of pairs with values equal to the specified value.
function _getAt(const key : DObject) : DObject; override;
Retrieve the value for a specified key. The key must exist in the map.
function _locate(const key : DObject) : DIterator; override;
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); override;
Add the specified key, value pair to the map. Copies are made of
the objects.
procedure _remove(const key : DObject); override;
Removes the all pairs with the specified key.
procedure _removeN(const key : DObject; count : Integer); override;
Removes the first count pairs with the specified key.
procedure _removeValueN(const value : DObject; count : Integer); override;
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.