This file is indexed.

/usr/include/geos/operation/relate/EdgeEndBundle.h is in libgeos-dev 3.2.2-3ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
/**********************************************************************
 * $Id: EdgeEndBundle.h 2557 2009-06-08 09:30:55Z strk $
 *
 * GEOS - Geometry Engine Open Source
 * http://geos.refractions.net
 *
 * Copyright (C) 2006 Refractions Research Inc.
 *
 * This is free software; you can redistribute and/or modify it under
 * the terms of the GNU Lesser General Public Licence as published
 * by the Free Software Foundation. 
 * See the COPYING file for more information.
 *
 **********************************************************************
 *
 * Last port: operation/relate/EdgeEndBundle.java rev. 1.17 (JTS-1.10)
 *
 **********************************************************************/

#ifndef GEOS_OP_RELATE_EDGEENDBUNDLE_H
#define GEOS_OP_RELATE_EDGEENDBUNDLE_H

#include <geos/export.h>

#include <geos/geomgraph/EdgeEnd.h> // for EdgeEndBundle inheritance

#include <string>

// Forward declarations
namespace geos {
	namespace algorithm {
		class BoundaryNodeRule;
	}
	namespace geom {
		class IntersectionMatrix;
	}
}


namespace geos {
namespace operation { // geos::operation
namespace relate { // geos::operation::relate

/** \brief
 * A collection of geomgraph::EdgeEnd objects which
 * originate at the same point and have the same direction.
 */
class GEOS_DLL EdgeEndBundle: public geomgraph::EdgeEnd 
{
public:
	EdgeEndBundle(geomgraph::EdgeEnd *e);
	virtual ~EdgeEndBundle();
	geomgraph::Label *getLabel();
	std::vector<geomgraph::EdgeEnd*>* getEdgeEnds();
	void insert(geomgraph::EdgeEnd *e);

	void computeLabel(const algorithm::BoundaryNodeRule& bnr); 

	void updateIM(geom::IntersectionMatrix *im);
	std::string print();
protected:
	std::vector<geomgraph::EdgeEnd*> *edgeEnds;

	/**
	 * Compute the overall ON location for the list of EdgeStubs.
	 *
	 * (This is essentially equivalent to computing the self-overlay of
	 * a single Geometry)
	 *
	 * edgeStubs can be either on the boundary (eg Polygon edge)
	 * OR in the interior (e.g. segment of a LineString)
	 * of their parent Geometry.
	 *
	 * In addition, GeometryCollections use a algorithm::BoundaryNodeRule
	 * to determine whether a segment is on the boundary or not.
	 *
	 * Finally, in GeometryCollections it can occur that an edge
	 * is both
	 * on the boundary and in the interior (e.g. a LineString segment
	 * lying on
	 * top of a Polygon edge.) In this case the Boundary is
	 * given precendence.
	 * 
	 * These observations result in the following rules for computing
	 * the ON location:
	 *  - if there are an odd number of Bdy edges, the attribute is Bdy
	 *  - if there are an even number >= 2 of Bdy edges, the attribute
	 *    is Int
	 *  - if there are any Int edges, the attribute is Int
	 *  - otherwise, the attribute is NULL.
	 * 
	 */
	void computeLabelOn(int geomIndex,
		const algorithm::BoundaryNodeRule& boundaryNodeRule);

	void computeLabelSides(int geomIndex);
	void computeLabelSide(int geomIndex,int side);
};

} // namespace geos:operation:relate
} // namespace geos:operation
} // namespace geos

#endif // GEOS_OP_RELATE_EDGEENDBUNDLE_H

/**********************************************************************
 * $Log$
 * Revision 1.1  2006/03/21 13:11:29  strk
 * opRelate.h header split
 *
 **********************************************************************/