Revision: | 1 |
Committed: | 2004-05-12T23:36:53-07:00 (21 years, 1 month ago) by Douglas Thrift |
File size: | 373 byte(s) |
Log Message: | w00t! |
# | Content |
---|---|
1 | // Node |
2 | // |
3 | // Douglas Thrift |
4 | // |
5 | // $Id$ |
6 | |
7 | #ifndef _Node_hpp_ |
8 | #define _Node_hpp_ |
9 | |
10 | template<typename Type> |
11 | class Node |
12 | { |
13 | private: |
14 | Type value; |
15 | public: |
16 | Node() {} |
17 | Node(const Type& value) : value(value) {} |
18 | virtual ~Node() {} |
19 | virtual void setValue(const Type& value) { this->value = value; } |
20 | virtual const Type& getValue(void) const { return value; } |
21 | }; |
22 | |
23 | #endif // _Node_hpp_ |