Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JGridMap.hh
Go to the documentation of this file.
1#ifndef __JTOOLS__JGRIDMAP__
2#define __JTOOLS__JGRIDMAP__
3
6#include "JTools/JElement.hh"
7
8
9/**
10 * \author mdejong
11 */
12
13namespace JTOOLS {}
14namespace JPP { using namespace JTOOLS; }
15
16namespace JTOOLS {
17
18
19 /**
20 * Map of equidistant pair-wise elements.
21 *
22 * The key_type and mapped_type refer to the pair-wise element of this map, respectively.
23 */
24 template<class JKey_t,
25 class JValue_t,
26 class JDistance_t = JDistance<JKey_t> >
27 class JGridMap :
28 public JGridCollection<JElement2D<JKey_t, JValue_t>, JDistance_t>
29 {
30 public:
31
32 typedef JKey_t key_type;
33 typedef JValue_t mapped_type;
34
36
40
45
46
47 /**
48 * Default constructor.
49 */
51 {}
52 };
53
54
55 /**
56 * Specialisation of JMapCollection for JGridMap.
57 */
58 template<>
60 /**
61 * Collection of elements.
62 */
63 template<class JElement_t,
66 public JGridCollection<JElement_t, JDistance_t>
67 {};
68 };
69}
70
71#endif
The elements in a collection are sorted according to their abscissa values and a given distance opera...
General purpose class for collection of elements, see: <a href="JTools.PDF";>Collection of elements....
Definition JSet.hh:22
General purpose class for collection of equidistant elements.
collection_type::reverse_iterator reverse_iterator
collection_type::abscissa_type abscissa_type
collection_type::const_reverse_iterator const_reverse_iterator
collection_type::ordinate_type ordinate_type
collection_type::const_iterator const_iterator
collection_type::value_type value_type
collection_type::iterator iterator
Map of equidistant pair-wise elements.
Definition JGridMap.hh:29
JValue_t mapped_type
Definition JGridMap.hh:33
collection_type::value_type value_type
Definition JGridMap.hh:39
JGridMap()
Default constructor.
Definition JGridMap.hh:50
collection_type::abscissa_type abscissa_type
Definition JGridMap.hh:37
collection_type::ordinate_type ordinate_type
Definition JGridMap.hh:38
JGridCollection< JElement2D< JKey_t, JValue_t >, JDistance_t > collection_type
Definition JGridMap.hh:35
collection_type::reverse_iterator reverse_iterator
Definition JGridMap.hh:44
collection_type::iterator iterator
Definition JGridMap.hh:43
collection_type::const_reverse_iterator const_reverse_iterator
Definition JGridMap.hh:42
collection_type::const_iterator const_iterator
Definition JGridMap.hh:41
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for multi-dimensional interpolations and histograms.
Template class for distance evaluation.
Definition JDistance.hh:24
Template class to define the corresponding JCollection for a given template JMap.
Definition JSpline.hh:773