#include <Manager.h>
Public Member Functions | |
| Manager () | |
| virtual | ~Manager () |
| template<class I> | |
| I * | own (I *item) |
| Takes over ownership of a Manageable allocated with new. | |
| template<class MI> | |
| MI * | own_add (MI *item) |
| A shortcut. | |
Private Member Functions | |
| Manager (const Manager &) | |
Private Attributes | |
| boost::ptr_vector< Manageable > | mitems |
It can work as an owner Manageable instances, and is therefore responsible for their destruction afterwards. The major advantage over holding MakefileItem s in auto-variables is that they get out of scope easily. before Makefile::writeMakefile and cause problems. This class is independent from Makefile. The usage:
Definition at line 58 of file Manager.h.
|
|
|
|
|
Definition at line 30 of file Manager.cpp. |
|
|
|
|
||||||||||
|
Takes over ownership of a Manageable allocated with new. On destruction of the Manager item is deleted too.
Definition at line 75 of file Manager.h. Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::AssistantMakefilelibExport::createItems(), and main(). |
|
||||||||||
|
A shortcut. Calls Manager::own and Makefile::add for objects we don't need to deal with any further.
Definition at line 86 of file Manager.h. Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::AssistantMakefilelibExport::createItems(), and main(). |
|
|
|
1.3.9.1