Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JTools
JGridMap.hh
Go to the documentation of this file.
1
#ifndef __JTOOLS__JGRIDMAP__
2
#define __JTOOLS__JGRIDMAP__
3
4
#include "
JTools/JGridCollection.hh
"
5
#include "
JTools/JMapCollection.hh
"
6
7
8
/**
9
* \author mdejong
10
*/
11
12
namespace
JTOOLS {}
13
namespace
JPP {
using namespace
JTOOLS; }
14
15
namespace
JTOOLS {
16
17
18
/**
19
* Map of equidistant pair-wise elements.
20
*
21
* The key_type and mapped_type refer to the pair-wise element of this map, respectively.
22
*/
23
template
<
class
JKey_t,
24
class
JValue_t,
25
class
JDistance_t =
JDistance<JKey_t>
>
26
class
JGridMap
:
27
public
JGridCollection
<JElement2D<JKey_t, JValue_t>, JDistance_t>
28
{
29
public
:
30
31
typedef
JKey_t
key_type
;
32
typedef
JValue_t
mapped_type
;
33
34
typedef
JGridCollection<JElement2D<JKey_t, JValue_t>
, JDistance_t>
collection_type
;
35
36
typedef
typename
collection_type::abscissa_type
abscissa_type
;
37
typedef
typename
collection_type::ordinate_type
ordinate_type
;
38
typedef
typename
collection_type::value_type
value_type
;
39
40
typedef
typename
collection_type::const_iterator
const_iterator
;
41
typedef
typename
collection_type::const_reverse_iterator
const_reverse_iterator
;
42
typedef
typename
collection_type::iterator
iterator
;
43
typedef
typename
collection_type::reverse_iterator
reverse_iterator
;
44
45
46
/**
47
* Default constructor.
48
*/
49
JGridMap
()
50
{}
51
};
52
53
54
/**
55
* Specialisation of JMapCollection for JGridMap.
56
*/
57
template
<>
58
struct
JMapCollection
<
JGridMap
> {
59
/**
60
* Collection of elements.
61
*/
62
template
<
class
JElement_t,
63
class
JDistance_t =
JDistance<typename JElement_t::abscissa_type>
>
64
struct
collection_type
:
65
public
JGridCollection
<JElement_t, JDistance_t>
66
{};
67
};
68
}
69
70
#endif
JTOOLS::JCollection< JElement2D< JKey_t, JHistogram_t >, JDistance_t >::reverse_iterator
container_type::reverse_iterator reverse_iterator
Definition:
JCollection.hh:94
JTOOLS::JGridMap::key_type
JKey_t key_type
Definition:
JGridMap.hh:31
JTOOLS::JGridMap::value_type
collection_type::value_type value_type
Definition:
JGridMap.hh:38
JTOOLS::JGridMap::JGridMap
JGridMap()
Default constructor.
Definition:
JGridMap.hh:49
JTOOLS::JCollection
General purpose class for collection of elements, see: <a href="JTools.PDF";>Collection of elements...
Definition:
JCollection.hh:73
JTOOLS::JGridMap::collection_type
JGridCollection< JElement2D< JKey_t, JValue_t >, JDistance_t > collection_type
Definition:
JGridMap.hh:34
JTOOLS::JGridMap::reverse_iterator
collection_type::reverse_iterator reverse_iterator
Definition:
JGridMap.hh:43
JTOOLS::JDistance
Template class for distance evaluation.
Definition:
JDistance.hh:24
JTOOLS::JCollection< JElement2D< JKey_t, JHistogram_t >, JDistance_t >::abscissa_type
JElement2D< JKey_t, JHistogram_t >::abscissa_type abscissa_type
Definition:
JCollection.hh:82
JGridCollection.hh
JTOOLS::JCollection< JElement2D< JKey_t, JHistogram_t >, JDistance_t >::iterator
container_type::iterator iterator
Definition:
JCollection.hh:93
JTOOLS::JGridMap::iterator
collection_type::iterator iterator
Definition:
JGridMap.hh:42
JTOOLS::JGridCollection
General purpose class for collection of equidistant elements.
Definition:
JGridCollection.hh:30
JTOOLS::JGridMap::ordinate_type
collection_type::ordinate_type ordinate_type
Definition:
JGridMap.hh:37
JTOOLS::JCollection< JElement2D< JKey_t, JHistogram_t >, JDistance_t >::const_reverse_iterator
container_type::const_reverse_iterator const_reverse_iterator
Definition:
JCollection.hh:92
JTOOLS::JMapCollection
Template class to define the corresponding JCollection for a given template JMap. ...
Definition:
JMapCollection.hh:20
JTOOLS::JCollection< JElement2D< JKey_t, JHistogram_t >, JDistance_t >::ordinate_type
JElement2D< JKey_t, JHistogram_t >::ordinate_type ordinate_type
Definition:
JCollection.hh:83
JTOOLS::JGridMap
Map of equidistant pair-wise elements.
Definition:
JGridMap.hh:26
JTOOLS::JGridMap::const_iterator
collection_type::const_iterator const_iterator
Definition:
JGridMap.hh:40
JTOOLS::JGridMap::abscissa_type
collection_type::abscissa_type abscissa_type
Definition:
JGridMap.hh:36
JTOOLS::JElement2D
2D Element.
Definition:
JElement.hh:46
JTOOLS::JCollection< JElement2D< JKey_t, JHistogram_t >, JDistance_t >::const_iterator
container_type::const_iterator const_iterator
Definition:
JCollection.hh:91
JTOOLS::JGridMap::mapped_type
JValue_t mapped_type
Definition:
JGridMap.hh:32
JTOOLS::JGridMap::const_reverse_iterator
collection_type::const_reverse_iterator const_reverse_iterator
Definition:
JGridMap.hh:41
JMapCollection.hh
Generated by
1.8.5