pointkdtree_invariants.h

Back to Point kd-tree

pastel/geometry/pointkdtree/

// Description: Point kd-tree invariants

#ifndef PASTELGEOMETRY_POINTKDTREE_INVARIANTS_H
#define PASTELGEOMETRY_POINTKDTREE_INVARIANTS_H

#include "pastel/geometry/pointkdtree/pointkdtree.h"

namespace Pastel
{

    //! Returns whether the invariants hold for the point kd-tree.
    /*!
   This function is useful only for debugging;
   a correct implementation always returns true.
   */
    template <typename Settings, template <typename> class Customization>
    bool testInvariants(const PointKdTree<Settings, Customization>& tree);

}

#include "pastel/geometry/pointkdtree/pointkdtree_invariants.hpp"

#endif