source: src/Tesselation/BoundaryMaps.hpp

Candidate_v1.6.1
Last change on this file was 59fff1, checked in by Frederik Heber <heber@…>, 13 years ago

Replaced the molecule::const_iterator by a true const version of the transform_iterator.

  • lots of places used const_iterator where it made no sense, atom some others one could have sensibly done so but details prevented it, e.g.
    • FormatParserStorage::save() requires vector<atom*> not const atom *,
    • Boundaries (and most of Tesselation for that) requires atom *, not const atom *.
  • Added new function molecule::isInMolecule() to check whether atomic id is in molecule::atomIds.
  • Added const version of atom::GetTrueFather().
  • Property mode set to 100644
File size: 3.2 KB
Line 
1/*
2 * BoundaryMaps.hpp
3 *
4 * Created on: Jul 29, 2010
5 * Author: heber
6 */
7
8#ifndef BOUNDARYMAPS_HPP_
9#define BOUNDARYMAPS_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
17class BoundaryPointSet;
18class BoundaryLineSet;
19class BoundaryTriangleSet;
20class BoundaryPolygonSet;
21class CandidateForTesselation;
22class TesselPoint;
23
24#include <list>
25#include <map>
26#include <set>
27
28typedef std::map <int, int> IndexToIndex;
29
30// ============= TesselPoint maps ======================== //
31typedef std::pair < double, TesselPoint * > TesselPointDistancePair;
32//typedef std::multimap < double, class TesselPoint * > TesselPointDistanceMap;
33//typedef std::pair < TesselPointDistanceMap::iterator, bool > TesselPointDistanceTestPair;
34
35typedef std::list <TesselPoint *> TesselPointList;
36typedef std::set <TesselPoint *> TesselPointSet;
37
38typedef std::list<std::list <TesselPoint *> *> ListOfTesselPointList;
39
40// ============= BoundaryPointSet maps ======================== //
41typedef std::map < int, class BoundaryPointSet * > PointMap;
42typedef std::set < class BoundaryPointSet * > PointSet;
43typedef std::list < class BoundaryPointSet * > PointList;
44typedef std::pair < int, class BoundaryPointSet * > PointPair;
45typedef std::pair < PointMap::iterator, bool > PointTestPair;
46
47typedef std::multimap <double, class BoundaryPointSet * > DistanceToPointMap;
48typedef std::pair <double, class BoundaryPointSet * > DistanceToPointPair;
49
50// ============= BoundaryLineSet maps ======================== //
51typedef std::multimap < int, class BoundaryLineSet * > LineMap;
52typedef std::set < class BoundaryLineSet * > LineSet;
53typedef std::list < class BoundaryLineSet * > LineList;
54typedef std::pair < int, class BoundaryLineSet * > LinePair;
55typedef std::pair < LineMap::iterator, bool > LineTestPair;
56
57// ============= BoundaryTriangleSet maps ======================== //
58typedef std::map < int, class BoundaryTriangleSet * > TriangleMap;
59typedef std::set < class BoundaryTriangleSet * > TriangleSet;
60typedef std::list < class BoundaryTriangleSet * > TriangleList;
61typedef std::pair < int, class BoundaryTriangleSet * > TrianglePair;
62typedef std::pair < TriangleMap::iterator, bool > TriangleTestPair;
63
64// ============= BoundaryPolygonSet maps ======================== //
65typedef std::map < int, class BoundaryPolygonSet * > PolygonMap;
66typedef std::set < class BoundaryPolygonSet * > PolygonSet;
67typedef std::list < class BoundaryPolygonSet * > PolygonList;
68
69// ============= CandidateForTesselation maps ======================== //
70typedef std::list <class CandidateForTesselation *> CandidateList;
71typedef std::map <class BoundaryLineSet *, class CandidateForTesselation *> CandidateMap;
72
73// ============= Various maps ======================== //
74typedef std::map <double, TesselPointDistancePair > Boundaries;
75typedef std::pair<double, TesselPointDistancePair > BoundariesPair;
76typedef std::pair< Boundaries::iterator, bool> BoundariesTestPair;
77
78typedef std::multimap <double, std::pair < PointMap::iterator, PointMap::iterator> > DistanceMultiMap;
79typedef std::pair <double, std::pair < PointMap::iterator, PointMap::iterator> > DistanceMultiMapPair;
80
81enum centers {Opt, OtherOpt};
82
83
84
85
86#endif /* BOUNDARYMAPS_HPP_ */
Note: See TracBrowser for help on using the repository browser.