diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2014-12-05 13:32:54 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2014-12-05 13:32:54 +0000 |
commit | 425b462d361286822ee0ed7b5fe00881ba312ea3 (patch) | |
tree | e8f641a8604418882b916573cf32c87b78d33472 /src/Skeleton_blocker/concept/SkeletonBlockerGeometricDS.h | |
parent | 952b77f3b1e2415602d5d9ffc2fb7ff45cc3edc4 (diff) |
Moved into trunk
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@341 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Diffstat (limited to 'src/Skeleton_blocker/concept/SkeletonBlockerGeometricDS.h')
-rw-r--r-- | src/Skeleton_blocker/concept/SkeletonBlockerGeometricDS.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/Skeleton_blocker/concept/SkeletonBlockerGeometricDS.h b/src/Skeleton_blocker/concept/SkeletonBlockerGeometricDS.h new file mode 100644 index 00000000..23edaaef --- /dev/null +++ b/src/Skeleton_blocker/concept/SkeletonBlockerGeometricDS.h @@ -0,0 +1,65 @@ +/* + * SkeletonBlockerGeometricDS.h + * + * Created on: Feb 20, 2014 + * Author: David Salinas + * Copyright 2013 INRIA. All rights reserved + */ + +#ifndef GUDHI_SKELETONBLOCKERGEOMETRICDS_H_ +#define GUDHI_SKELETONBLOCKERGEOMETRICDS_H_ + +/** \brief Concept that must be passed to + * the template class Skeleton_blocker_geometric_complex + * + */ +template<typename GeometryTrait> +struct SkeletonBlockerGeometricDS : public SkeletonBlockerDS +{ + + /** + * Geometry information. + */ + typedef GeometryTrait GT ; + + /** + * Type of point (should be the same as GT::Point). + */ + typedef typename GeometryTrait::Point Point; + + /** + * @brief Vertex that stores a point. + */ + class Graph_vertex : public SkeletonBlockerDS::Graph_vertex{ + public: + /** + * @brief Access to the point. + */ + Point& point(){ return point_; } + /** + * @brief Access to the point. + */ + const Point& point() const { return point_; } + }; + + /** + * @brief Edge that allows to access to an index. + * The indices of the edges are used to store heap information + * in the edge contraction algorithm. + */ + class Graph_Edge : public SkeletonBlockerDS::Graph_edge{ + public: + /** + * @brief Access to the index. + */ + int& index(); + /** + * @brief Access to the index. + */ + int index(); + }; +}; + + + +#endif /* GUDHI_SKELETONBLOCKERGEOMETRICDS_H_ */ |