1
/******************************************************************************
2
* $Id: objvisitor.hpp 1385 2009-08-13 15:45:16Z hobu $
4
* Project: libsidx - A C API wrapper around libspatialindex
5
* Purpose: C++ object declarations to implement the object visitor.
6
* Author: Howard Butler, hobu.inc@gmail.com
8
******************************************************************************
9
* Copyright (c) 2009, Howard Butler
11
* All rights reserved.
13
* This library is free software; you can redistribute it and/or modify it under
14
* the terms of the GNU Lesser General Public License as published by the Free
15
* Software Foundation; either version 2.1 of the License, or (at your option)
18
* This library is distributed in the hope that it will be useful, but WITHOUT
19
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
23
* You should have received a copy of the GNU Lesser General Public License
24
* along with this library; if not, write to the Free Software Foundation, Inc.,
25
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26
****************************************************************************/
30
class ObjVisitor : public SpatialIndex::IVisitor
33
std::vector<SpatialIndex::IData*> m_vector;
41
uint32_t GetResultCount() const { return nResults; }
42
std::vector<SpatialIndex::IData*>& GetResults() { return m_vector; }
44
void visitNode(const SpatialIndex::INode& n);
45
void visitData(const SpatialIndex::IData& d);
46
void visitData(std::vector<const SpatialIndex::IData*>& v);