- Timestamp:
- Aug 20, 2014, 1:06:16 PM (11 years ago)
- Children:
- 0b517b
- Parents:
- ef3885
- git-author:
- Frederik Heber <heber@…> (07/12/14 11:57:54)
- git-committer:
- Frederik Heber <heber@…> (08/20/14 13:06:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SphericalPointDistribution.hpp
ref3885 r42c742 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" … … 49 52 //!> typedef for the list of points with integral weights 50 53 typedef std::list<std::pair<Vector, int> > WeightedPolygon_t; 54 //!> typedef for a sorted list of indices 55 typedef std::set<unsigned int> IndexSet_t; 56 //!> typedef for the adjacency list of a polygon 57 typedef std::map<unsigned int, IndexSet_t > adjacency_t; 51 58 52 59 /** General getter function for the distribution of points on the surface. … … 61 68 } 62 69 70 template <int N> adjacency_t getConnections() 71 { 72 ASSERT(0, "SphericalPointDistribution::getConnections() - not specialized for "+toString(N)+"."); 73 } 63 74 64 75 /** Matches a given spherical distribution with another containing more … … 193 204 template <> SphericalPointDistribution::Polygon_t SphericalPointDistribution::get<14>(); 194 205 206 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<0>(); 207 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<1>(); 208 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<2>(); 209 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<3>(); 210 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<4>(); 211 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<5>(); 212 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<6>(); 213 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<7>(); 214 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<8>(); 215 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<9>(); 216 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<10>(); 217 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<11>(); 218 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<12>(); 219 template <> SphericalPointDistribution::adjacency_t SphericalPointDistribution::getConnections<14>(); 220 195 221 #endif /* SPHERICALPOINTDISTRIBUTION_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.
