- Timestamp:
- May 25, 2016, 7:13:59 AM (9 years ago)
- Children:
- a92c27
- Parents:
- 66700f2
- git-author:
- Frederik Heber <heber@…> (07/12/14 11:57:54)
- git-committer:
- Frederik Heber <heber@…> (05/25/16 07:13:59)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SphericalPointDistribution.hpp
r66700f2 r4492f1 19 19 #include <cmath> 20 20 #include <list> 21 #include <map> 22 #include <set> 23 #include <vector> 21 24 22 25 #include "LinearAlgebra/Vector.hpp" … … 48 51 //!> typedef for the list of points with integral weights 49 52 typedef std::list<std::pair<Vector, int> > WeightedPolygon_t; 53 //!> typedef for a sorted list of indices 54 typedef std::set<unsigned int> IndexSet_t; 55 //!> typedef for the adjacency list of a polygon 56 typedef std::map<unsigned int, IndexSet_t > adjacency_t; 50 57 51 58 /** General getter function for the distribution of points on the surface. … … 58 65 { 59 66 ASSERT(0, "SphericalPointDistribution::get() - not specialized for "+toString(N)+"."); 67 } 68 69 template <int N> adjacency_t getConnections() 70 { 71 ASSERT(0, "SphericalPointDistribution::getConnections() - not specialized for "+toString(N)+"."); 60 72 } 61 73 … … 184 196 template <> SphericalPointDistribution::Polygon_t SphericalPointDistribution::get<14>() const; 185 197 198 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<0>(); 199 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<1>(); 200 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<2>(); 201 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<3>(); 202 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<4>(); 203 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<5>(); 204 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<6>(); 205 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<7>(); 206 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<8>(); 207 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<9>(); 208 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<10>(); 209 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<11>(); 210 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<12>(); 211 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<14>(); 212 186 213 #endif /* SPHERICALPOINTDISTRIBUTION_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.
