Skip to content

Commit

Permalink
Remove most non-const accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jul 1, 2020
1 parent 33c1c8b commit ce4bac4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Octree/include/CGAL/Octree/Octree_node.h
Expand Up @@ -202,24 +202,16 @@ namespace CGAL {

bool is_leaf() const { return (m_children == NULL); }

Node *parent() { return m_parent; }

const Node *parent() const { return m_parent; }

void set_parent(Node *parent) { m_parent = parent; }

size_t num_points() const {
return std::distance(m_points_begin, m_points_end);
}

bool is_empty() const { return (num_points() == 0); }

IntPoint &location() { return m_location; }

const IntPoint &location() const { return m_location; }

uint8_t &depth() { return m_depth; }

const uint8_t &depth() const { return m_depth; }

std::bitset<3> index() const {
Expand All @@ -245,7 +237,7 @@ namespace CGAL {
/*!
* \brief Compares the topology of a pair of nodes
*
* \todo
* \todo Maybe this should compare more than just the topology
*
* \param rhs
* \return
Expand Down

0 comments on commit ce4bac4

Please sign in to comment.