Commit b64f0469 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

Modifying CirculatorRange slightly so that Eclipse CDT can parse it.

parent 4290b62f
Pipeline #412 passed with stage
...@@ -1185,66 +1185,66 @@ public: ...@@ -1185,66 +1185,66 @@ public:
class CirculatorRange { class CirculatorRange {
public: public:
CirculatorRange( CirculatorRange(
CONTAINER_TYPE &container, const CONTAINER_TYPE &container,
CENTER_ENTITY_TYPE center) : CENTER_ENTITY_TYPE center) :
container_(container), center_(center) {} container_(container), center_(center) {}
ITER_TYPE begin() { return (container_.*begin_fn)(center_); } ITER_TYPE begin() { return (container_.*begin_fn)(center_); }
ITER_TYPE end() { return (container_.*end_fn)(center_); } ITER_TYPE end() { return (container_.*end_fn)(center_); }
private: private:
CONTAINER_TYPE &container_; const CONTAINER_TYPE &container_;
CENTER_ENTITY_TYPE center_; CENTER_ENTITY_TYPE center_;
}; };
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstVertexVertexCWIter, ConstVertexVertexCWIter,
VertexHandle, VertexHandle,
&PolyConnectivity::cvv_cwbegin, &PolyConnectivity::cvv_cwbegin,
&PolyConnectivity::cvv_cwend> ConstVertexVertexRange; &PolyConnectivity::cvv_cwend> ConstVertexVertexRange;
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstVertexIHalfedgeIter, ConstVertexIHalfedgeIter,
VertexHandle, VertexHandle,
&PolyConnectivity::cvih_begin, &PolyConnectivity::cvih_begin,
&PolyConnectivity::cvih_end> ConstVertexIHalfedgeRange; &PolyConnectivity::cvih_end> ConstVertexIHalfedgeRange;
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstVertexOHalfedgeIter, VertexHandle, ConstVertexOHalfedgeIter, VertexHandle,
&PolyConnectivity::cvoh_begin, &PolyConnectivity::cvoh_begin,
&PolyConnectivity::cvoh_end> ConstVertexOHalfedgeRange; &PolyConnectivity::cvoh_end> ConstVertexOHalfedgeRange;
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstVertexEdgeIter, ConstVertexEdgeIter,
VertexHandle, VertexHandle,
&PolyConnectivity::cve_begin, &PolyConnectivity::cve_begin,
&PolyConnectivity::cve_end> ConstVertexEdgeRange; &PolyConnectivity::cve_end> ConstVertexEdgeRange;
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstVertexFaceIter, ConstVertexFaceIter,
VertexHandle, VertexHandle,
&PolyConnectivity::cvf_begin, &PolyConnectivity::cvf_begin,
&PolyConnectivity::cvf_end> ConstVertexFaceRange; &PolyConnectivity::cvf_end> ConstVertexFaceRange;
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstFaceVertexIter, ConstFaceVertexIter,
FaceHandle, FaceHandle,
&PolyConnectivity::cfv_begin, &PolyConnectivity::cfv_begin,
&PolyConnectivity::cfv_end> ConstFaceVertexRange; &PolyConnectivity::cfv_end> ConstFaceVertexRange;
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstFaceHalfedgeIter, ConstFaceHalfedgeIter,
FaceHandle, FaceHandle,
&PolyConnectivity::cfh_begin, &PolyConnectivity::cfh_begin,
&PolyConnectivity::cfh_end> ConstFaceHalfedgeRange; &PolyConnectivity::cfh_end> ConstFaceHalfedgeRange;
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstFaceEdgeIter, ConstFaceEdgeIter,
FaceHandle, FaceHandle,
&PolyConnectivity::cfe_begin, &PolyConnectivity::cfe_begin,
&PolyConnectivity::cfe_end> ConstFaceEdgeRange; &PolyConnectivity::cfe_end> ConstFaceEdgeRange;
typedef CirculatorRange< typedef CirculatorRange<
const PolyConnectivity, PolyConnectivity,
ConstFaceFaceIter, ConstFaceFaceIter,
FaceHandle, FaceHandle,
&PolyConnectivity::cff_begin, &PolyConnectivity::cff_begin,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment