mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 17:50:04 +01:00
18 lines
347 B
C++
18 lines
347 B
C++
#ifndef CURSOR_H
|
|
#define CURSOR_H
|
|
|
|
#include "tree_node.h"
|
|
#include "tree_reference.h"
|
|
|
|
class Cursor {
|
|
template <typename T>
|
|
friend class TreeReference;
|
|
public:
|
|
bool isDefined() const { return m_treeReference.isDefined(); }
|
|
protected:
|
|
Cursor(TreeNode * node) : m_treeReference(node) {}
|
|
TreeReference<TreeNode> m_treeReference;
|
|
};
|
|
|
|
#endif
|