Files
Upsilon/cursor.h
Léa Saviot b58ab0a8ca LayoutCursor
2018-06-26 15:11:04 +02:00

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