Initial
This commit is contained in:
46
bsptree/TREENDEX.HPP
Normal file
46
bsptree/TREENDEX.HPP
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef _BSPTREE_TREENODEEX_HPP_
|
||||
#define _BSPTREE_TREENODEEX_HPP_
|
||||
#ifndef _BSPTREE_TREENODE_HPP_
|
||||
#include <bsptree/treenode.hpp>
|
||||
#endif
|
||||
#ifndef _BSPTREE_COLORKEY_HPP_
|
||||
#include <bsptree/colorkey.hpp>
|
||||
#endif
|
||||
#ifndef _BSPTREE_RGBNDX_HPP_
|
||||
#include <bsptree/rgbndx.hpp>
|
||||
#endif
|
||||
|
||||
class TreeNodeEx : public TreeNode<RGBIndex>, public ColorKey
|
||||
{
|
||||
public:
|
||||
TreeNodeEx(void);
|
||||
TreeNodeEx(const TreeNodeEx &someTreeNodeEx);
|
||||
TreeNodeEx(const TreeNode<RGBIndex> &someTreeNode,const ColorKey &someColorKey);
|
||||
~TreeNodeEx();
|
||||
private:
|
||||
};
|
||||
|
||||
inline
|
||||
TreeNodeEx::TreeNodeEx(void)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
TreeNodeEx::TreeNodeEx(const TreeNodeEx &someTreeNodeEx)
|
||||
{
|
||||
((TreeNode<RGBIndex> &)*this)=(TreeNode<RGBIndex>&)someTreeNodeEx;
|
||||
((ColorKey&)*this)=(ColorKey&)(ColorKey&)someTreeNodeEx;
|
||||
}
|
||||
|
||||
inline
|
||||
TreeNodeEx::TreeNodeEx(const TreeNode<RGBIndex> &someTreeNode,const ColorKey &someColorKey)
|
||||
{
|
||||
((TreeNode<RGBIndex>&)*this)=someTreeNode;
|
||||
((ColorKey&)*this)=someColorKey;
|
||||
}
|
||||
|
||||
inline
|
||||
TreeNodeEx::~TreeNodeEx()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user