Added in structure for tree transformations.
This commit is contained in:
35
include/NodeTransformation.h
Normal file
35
include/NodeTransformation.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef NODETRANSFORMATION_H
|
||||
#define NODETRANSFORMATION_H
|
||||
|
||||
#include "NodeTree.h"
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
#endif
|
||||
|
||||
template <class FROM, class TO>
|
||||
class NodeTransformation {
|
||||
public:
|
||||
NodeTransformation();
|
||||
virtual ~NodeTransformation();
|
||||
virtual NodeTree<TO>* transform(NodeTree<FROM>* from)=0;
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
template <class FROM, class TO>
|
||||
NodeTransformation<FROM,TO>::NodeTransformation() {
|
||||
//Nothing
|
||||
}
|
||||
|
||||
template <class FROM, class TO>
|
||||
NodeTransformation<FROM,TO>::~NodeTransformation() {
|
||||
//Nothing
|
||||
}
|
||||
|
||||
// template <class FROM, class TO>
|
||||
// NodeTree<TO>* NodeTransformation<FROM,TO>::transform(NodeTree<FROM>* from) {
|
||||
// return (NodeTree<TO>*)0x1234;
|
||||
// }
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user