![]() |
#include <HSEP/HSEPObject.h>#include <HSEP/Exceptions.h>#include <map>#include <string>#include <functional>
Include dependency graph for Dictionary.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | HSEP::Dictionary< T > |
| Provides a pair container where the key is a string and the content element is a pointer to a template definition. More... | |
Namespaces | |
| namespace | HSEP |
| HSEP generic namespace, including basic processing tools. | |
Macros | |
| #define | SETSTRDICT(dict, name, value) |
| Adds a string object to the dictionary. | |
Typedefs | |
| typedef Dictionary< string > | HSEP::StringDictionary |
| Dictionary of strings. | |
| typedef Dictionary< int > | HSEP::IntDictionary |
| Dictionary of integers. | |
| typedef Dictionary< double > | HSEP::DoubleDictionary |
| Dictionary of double float numbers. | |
| typedef Dictionary < StringDictionary > | HSEP::StringDictionaryDictionary |
| Dictionary of String Dictionaries. | |
| #define SETSTRDICT | ( | dict, | |
| name, | |||
| value | |||
| ) |
Adds a string object to the dictionary.
This macro is very important, because let the string to be added as a "string" instance by using a temporary local variable for that purpose.
As the string has a copy constructor, the dictionary will include a "copy" of the string, so it is safe to dispose the referred local variable by the automatic scope disposing mechanism. When this is not the desired behavior, it is better to create a pointer to a string in he heap, and to pass the pointer to the dictionary; this way, the dictionary will take control of that string and will dispose it appropriately when the dictionary life is finished.
Definition at line 325 of file Dictionary.h.