Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
Loading...
Searching...
No Matches
TdjMultiMap Class Reference

A generic multi-map implementation that maps strings to lists of objects. More...

Inheritance diagram for TdjMultiMap:

Public Member Functions

 ~TdjMultiMap ()
 Destructor for the class.
 Add (const string Key, T Value)
 Adds a value to the collection associated with the specified key.
<> TObjectList T (const string Key)
 Retrieves the list of values associated with the specified key.

Detailed Description

A generic multi-map implementation that maps strings to lists of objects.

This class extends TObjectDictionary, where the key is a string and the value is a TObjectList of type T. It provides functionality to manage a collection of objects grouped by string keys.

Template Parameters
TThe type of objects stored in the multi-map. Must be a class type.

Constructor & Destructor Documentation

◆ ~TdjMultiMap()

TdjMultiMap::~TdjMultiMap ( )

Destructor for the class.

Cleans up any resources used by the instance.

Member Function Documentation

◆ Add()

TdjMultiMap::Add ( const string Key,
T Value )

Adds a value to the collection associated with the specified key.

Parameters
KeyThe key to which the value will be associated.
ValueThe value to be added to the collection.

◆ T()

<> TObjectList TdjMultiMap::T ( const string Key)

Retrieves the list of values associated with the specified key.

Parameters
KeyThe key whose associated values are to be retrieved.
Returns
A TObjectList containing the values associated with the key.