blob: b0a083dce9fb4bf0f5a0dda3738b8e64a3308bd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef KINDERGARTEN_H
#define KINDERGARTEN_H
#include <list>
#include "abstract.h"
class KinderGarten
{
public:
typedef std::list<Abstract*> ChildList;
KinderGarten() {}
~KinderGarten();
void addChild(Abstract* child);
Abstract* releaseChild(Abstract* child);
ChildList children() { return m_children; }
void killChildren();
void killChild(Abstract* child);
void show();
private:
ChildList m_children;
};
#endif // KINDERGARTEN_H
|