

Go to the source code of this file.
Defines | |
| #define | IMP_EXPOSE_ITERATORS(ContainerType, container_name, Ucname, lcname) |
| #define | IMP_LIST(protection, Ucname, lcname, Data, PluralData) |
| A macro to provide a uniform interface for storing lists of objects. | |
| #define | IMP_LIST_IMPL(Class, Ucname, lcname, Data, PluralData, OnAdd,OnChanged, OnRemoved) |
| This should go in a .cpp file for the respective class. | |
| #define | IMP_PROTECTION(protection) protection: |
Copyright 2007-2010 IMP Inventors. All rights reserved.
| #define IMP_EXPOSE_ITERATORS | ( | ContainerType, | |||
| container_name, | |||||
| Ucname, | |||||
| lcname | ) |
Internal use only.
| #define IMP_LIST | ( | protection, | |||
| Ucname, | |||||
| lcname, | |||||
| Data, | |||||
| PluralData | ) |
A macro to provide a uniform interface for storing lists of objects.
This macro is designed to be used in the body of an object to add a set of methods for manipulating a list of contained objects. It adds methods
| [in] | protection | The level of protection for the container (public, private). |
| [in] | Ucname | The name of the type of container in uppercase. |
| [in] | lcname | The name of the type of container in lower case. |
| [in] | Data | The type of the data to store. |
| [in] | PluralData | The plural of the data name. This should be a container type. |
.cpp file.
@name short description
longer description
@{
@}
| #define IMP_LIST_IMPL | ( | Class, | |||
| Ucname, | |||||
| lcname, | |||||
| Data, | |||||
| PluralData, | |||||
| OnAdd, | |||||
| OnChanged, | |||||
| OnRemoved | ) |
This should go in a .cpp file for the respective class.
This code should go in a .cpp file. One macro for each IMP_CONTAINER.
| [in] | Class | The name of the class containing this container. |
| [in] | Ucname | The name of the type of container in uppercase. |
| [in] | lcname | The name of the type of container in lower case. |
| [in] | Data | The type of the data to store. |
| [in] | PluralData | The plural of the data name. This should be a container type. |
| [in] | OnAdd | Code to modify the passed in object. The object is obj and its index index. |
| [in] | OnChanged | Code to get executed when the container changes. |
| [in] | OnRemoved | Code to get executed when the an object is removed. |