GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Range1.h
Go to the documentation of this file.
1 //__________________________________________________________________________
2 /*!
3 
4 \class genie::Range1F_t
5 \brief A simple [min,max] interval for floats.
6 
7 \class genie::Range1D_t
8 \brief A simple [min,max] interval for doubles.
9 
10 \class genie::Range1I_t
11 \brief A simple [min,max] interval for integers.
12 
13 \author Costas Andreopoulos <c.andreopoulos \at cern.ch>
14  University of Liverpool
15 
16 \created May 06, 2004
17 
18 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
19  For the full text of the license visit http://copyright.genie-mc.org
20 */
21 //__________________________________________________________________________
22 
23 #ifndef _RANGE_1_T_H_
24 #define _RANGE_1_T_H_
25 
26 namespace genie {
27 
28 class Range1F_t
29 {
30 public:
31  Range1F_t (void);
32  Range1F_t (float _min, float _max);
33  Range1F_t (const Range1F_t & r);
34  ~Range1F_t (void);
35 
36  void Copy (const Range1F_t & r);
37 
38  float min;
39  float max;
40 };
41 
42 class Range1D_t
43 {
44 public:
45  Range1D_t (void);
46  Range1D_t (double _min, double _max);
47  Range1D_t (const Range1D_t & r);
48  ~Range1D_t (void);
49 
50  void Copy (const Range1D_t & r);
51 
52  double min;
53  double max;
54 };
55 
56 class Range1I_t
57 {
58 public:
59  Range1I_t (void);
60  Range1I_t (int _min, int _max);
61  Range1I_t (const Range1I_t & r);
62  ~Range1I_t (void);
63 
64  void Copy (const Range1I_t & r);
65 
66  int min;
67  int max;
68 };
69 
70 
71 
72 } // genie namespace
73 
74 #endif // _RANGE_1_T_H_
A simple [min,max] interval for integers.
Definition: Range1.h:56
A simple [min,max] interval for doubles.
Definition: Range1.h:42
A simple [min,max] interval for floats.
Definition: Range1.h:28
~Range1F_t(void)
Definition: Range1.cxx:37
Range1D_t(void)
Definition: Range1.cxx:48
void Copy(const Range1D_t &r)
Definition: Range1.cxx:74
double max
Definition: Range1.h:53
~Range1I_t(void)
Definition: Range1.cxx:101
Range1F_t(void)
Definition: Range1.cxx:16
void Copy(const Range1F_t &r)
Definition: Range1.cxx:42
void Copy(const Range1I_t &r)
Definition: Range1.cxx:106
double min
Definition: Range1.h:52
~Range1D_t(void)
Definition: Range1.cxx:69
Range1I_t(void)
Definition: Range1.cxx:80