scg3  0.6
Leaf.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright 2014 Volker Ahlers
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */
24 
25 #ifndef LEAF_H_
26 #define LEAF_H_
27 
28 #include "Node.h"
29 
30 namespace scg {
31 
32 
36 class Leaf: public Node {
37 
38 public:
39 
43  Leaf();
44 
48  virtual ~Leaf() = 0;
49 
53  virtual void traverse(Traverser* traverser);
54 
55 };
56 
57 
58 } /* namespace scg */
59 
60 #endif /* LEAF_H_ */
virtual ~Leaf()=0
Base class for all leaf nodes, i.e., nodes without children (composite pattern, abstract).
Definition: Leaf.h:36
Base class for all traversers (visitor pattern, abstract).
Definition: Traverser.h:36
Base class for all nodes (composite pattern, abstract).
virtual void traverse(Traverser *traverser)
Definition: Animation.h:28
Base class for all nodes (composite pattern, abstract).
Definition: Node.h:47