283
|
1 #ifndef INCLUDED_SCENE_GRAPH_ITERATOR
|
|
2 #define INCLUDED_SCENE_GRAPH_ITERATOR
|
|
3
|
|
4 #ifndef INCLUDED_SCENE_GRAPH
|
|
5 # include "SceneGraph.h"
|
|
6 #endif
|
|
7
|
|
8 class SceneGraphIterator {
|
|
9 public:
|
|
10 // 走査する SceneGraphList
|
|
11 SceneGraphPtr list;
|
|
12
|
|
13 // 現在参照中の SceneGraph
|
|
14 SceneGraphPtr cur;
|
|
15
|
|
16 void set(SceneGraphPtr list);
|
|
17 int hasNext(void);
|
|
18 int hasNext(int id);
|
|
19 void next(void);
|
|
20 void next(int id);
|
|
21 void remove(void);
|
|
22 SceneGraphPtr get(void);
|
|
23 };
|
|
24
|
|
25 typedef SceneGraphIterator *SceneGraphIteratorPtr;
|
|
26
|
|
27 #endif
|