Loading...
Searching...
No Matches
Skeleton_blocker_simple_geometric_traits.h
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
* See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
* Author(s): David Salinas
*
* Copyright (C) 2014 Inria
*
* Modification(s):
* - YYYY/MM Author: Description of the modification
*/
#ifndef SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_GEOMETRIC_TRAITS_H_
#define SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_GEOMETRIC_TRAITS_H_
#include <gudhi/Skeleton_blocker/Skeleton_blocker_simple_traits.h>
#include <string>
#include <sstream>
namespace Gudhi {
namespace skeleton_blocker {
template<typename GeometryTrait>
struct Skeleton_blocker_simple_geometric_traits :
public Skeleton_blocker_simple_traits {
public:
typedef GeometryTrait GT;
typedef typename GT::Point Point;
typedef typename Skeleton_blocker_simple_traits::Root_vertex_handle Root_vertex_handle;
typedef typename Skeleton_blocker_simple_traits::Graph_vertex Simple_vertex;
class Simple_geometric_vertex : public Simple_vertex {
template<class ComplexGeometricTraits> friend class Skeleton_blocker_geometric_complex;
private:
Point point_;
Point& point() {
return point_;
}
const Point& point() const {
return point_;
}
};
class Simple_geometric_edge :
public Skeleton_blocker_simple_traits::Graph_edge {
int index_;
public:
Simple_geometric_edge()
: Skeleton_blocker_simple_traits::Graph_edge(),
index_(-1) { }
int& index() {
return index_;
}
int index() const {
return index_;
}
};
typedef Simple_geometric_vertex Graph_vertex;
typedef Skeleton_blocker_simple_traits::Graph_edge Graph_edge;
};
} // namespace skeleton_blocker
namespace skbl = skeleton_blocker;
} // namespace Gudhi
#endif // SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_GEOMETRIC_TRAITS_H_
Gudhi::skeleton_blocker::Skeleton_blocker_simple_geometric_traits::Simple_geometric_vertex
Vertex with a point attached.
Definition Skeleton_blocker_simple_geometric_traits.h:41
Gudhi
Gudhi namespace.
Definition SimplicialComplexForAlpha.h:14
Gudhi::skeleton_blocker::Skeleton_blocker_simple_geometric_traits
Simple traits that is a model of SkeletonBlockerGeometricDS and can be passed as a template argument ...
Definition Skeleton_blocker_simple_geometric_traits.h:31
Gudhi::skeleton_blocker::Skeleton_blocker_simple_traits::Root_vertex_handle
Global and local handle similar to boost subgraphs. Vertices are stored in a vector....
Definition Skeleton_blocker_simple_traits.h:38
Gudhi::skeleton_blocker::Skeleton_blocker_simple_traits
Simple traits that is a model of SkeletonBlockerDS and can be passed as a template argument to Skelet...
Definition Skeleton_blocker_simple_traits.h:29