A generic Container class form Map Objects.
More...
#include <mapobjectcontainer.h>
|
typedef QMap< Idx, ObjC * >::const_iterator | Iterator |
|
|
| MapObjectContainer () |
|
| ~MapObjectContainer () |
|
Idx | add (Idx id, Obj *object, int role) |
| add an object with the specified id and role More...
|
|
Obj * | get (Idx id, int role) |
|
void | clear () |
|
Iterator | begin () |
|
bool | atEnd (Iterator it) |
|
Obj * | get (Iterator it, int role) |
|
Obj * | remove (Idx id, int role) |
| remove the object specified by the id and role. The collection identified by id is not removed. Use remove(int) to remove also the list of roles it is responsibility of the caller to de-allocate the pointer returned More...
|
|
QList< Obj * > | remove (Idx id) |
| Remove all the objects identified by the id, with all roles. The collection identified by id is removed. It is responsibility of the caller to de-allocate the objects returned with the pointer list. More...
|
|
template<typename Obj, typename Idx = int>
class MapObjectContainer< Obj, Idx >
A generic Container class form Map Objects.
◆ Iterator
template<typename Obj, typename Idx = int>
◆ MapObjectContainer()
template<typename Obj, typename Idx = int>
◆ ~MapObjectContainer()
template<typename Obj, typename Idx = int>
◆ add()
template<typename Obj, typename Idx = int>
add an object with the specified id and role
◆ atEnd()
template<typename Obj, typename Idx = int>
◆ begin()
template<typename Obj, typename Idx = int>
◆ clear()
template<typename Obj, typename Idx = int>
◆ get() [1/2]
template<typename Obj, typename Idx = int>
◆ get() [2/2]
template<typename Obj, typename Idx = int>
◆ remove() [1/2]
template<typename Obj, typename Idx = int>
remove the object specified by the id and role. The collection identified by id is not removed. Use remove(int) to remove also the list of roles it is responsibility of the caller to de-allocate the pointer returned
- Returns
- The Pointer to the object removed.
◆ remove() [2/2]
template<typename Obj, typename Idx = int>
Remove all the objects identified by the id, with all roles. The collection identified by id is removed. It is responsibility of the caller to de-allocate the objects returned with the pointer list.
- Returns
- A List od pointers to the objects removed.
The documentation for this class was generated from the following file: