add is_empty function to indicated that no landmarks where generated

This commit is contained in:
Michael Hemmer 2011-02-21 09:22:44 +00:00
parent 8057032188
commit 73c28d947c
2 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,8 @@ protected:
bool updated;
int num_small_not_updated_changes;
public:
bool is_empty() const { return nn.is_empty(); }
private:
/*! Copy constructor - not supported. */

View File

@ -156,6 +156,9 @@ protected:
Tree *m_tree; // The search tree.
bool m_is_empty; // Is the search tree empty.
public:
bool is_empty() const{ return m_is_empty; }
private:
/*! Copy constructor - not supported. */