Added a bit more documentation, more to follow (I hope)
This commit is contained in:
parent
262869d0ae
commit
07bc61e694
1 changed files with 18 additions and 5 deletions
|
|
@ -28,7 +28,20 @@
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
/// Base class for functors to get a nice hierarchy diagram
|
/** Base class for functors to get a nice hierarchy diagram
|
||||||
|
|
||||||
|
That's actually quite an understatement as it does quite a bit more than
|
||||||
|
just that. By having all functors derive from the same base class, we can
|
||||||
|
do some memory management that would otherwise be very hard.
|
||||||
|
|
||||||
|
The memory management base class is called eoFunctorStore, and it supports
|
||||||
|
a member add() to add a pointer to a functor. When the functorStore is
|
||||||
|
destroyed, it will delete all those pointers. So beware: do not delete
|
||||||
|
the functorStore before you are done with anything that might have been allocated.
|
||||||
|
|
||||||
|
@see eoFunctorStore
|
||||||
|
|
||||||
|
*/
|
||||||
class eoFunctorBase
|
class eoFunctorBase
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
|
|
|
||||||
Reference in a new issue