Jpp
|
Data structure for detector header. More...
#include <JDetectorHeader.hh>
Classes | |
class | JDetectorHeaderHelper |
Auxiliary class for I/O of detector header. More... | |
Public Types | |
typedef JRange< T, JComparator_t > | range_type |
typedef JLANG::JClass< T > ::argument_type | argument_type |
typedef T | key_type |
typedef T | mapped_type |
Public Member Functions | |
JDetectorHeader () | |
Default constructor. More... | |
JDetectorHeader (const JUTCTimeRange &range, const JUTMGrid &grid, const JUTMPosition &pos) | |
Constructor. More... | |
JProperties | getProperties (const JEquationParameters &equation=JDetectorHeader::getEquationParameters()) |
Get properties of this class. More... | |
JProperties | getProperties (const JEquationParameters &equation=JDetectorHeader::getEquationParameters()) const |
Get properties of this class. More... | |
const range_type & | getRange () const |
Get range. More... | |
void | setRange (const range_type &range) |
Set range. More... | |
void | setRange (argument_type x, argument_type y) |
Set lower and uppper limit. More... | |
template<class iterator_type , class value_type , class result_type > | |
void | setRange (iterator_type __begin, iterator_type __end, result_type value_type::*member) |
Set lower and uppper limit. More... | |
template<class iterator_type , class value_type , class result_type > | |
void | setRange (iterator_type __begin, iterator_type __end, result_type(value_type::*function)() const) |
Set lower and uppper limit. More... | |
T | getLowerLimit () const |
Get lower limit. More... | |
T | getUpperLimit () const |
Get upper limit. More... | |
void | setLowerLimit (argument_type x) |
Set lower limit. More... | |
void | setUpperLimit (argument_type y) |
Set upper limit. More... | |
void | fixLowerLimit (argument_type x) |
Fix lower limit. More... | |
void | fixUpperLimit (argument_type y) |
Fix upper limit. More... | |
bool | equals (const range_type &range) const |
Equal method. More... | |
T | getLength () const |
Get length (difference between upper and lower limit). More... | |
bool | is_valid () const |
Check validity of range. More... | |
bool | operator() (argument_type x) const |
Test whether value is inside range. More... | |
T | constrain (argument_type x) const |
Constrain value to range. More... | |
bool | overlap (const range_type &range) const |
Test overlap with given range. More... | |
range_type | include (argument_type x) |
Include given value to range. More... | |
range_type & | join (const range_type &range) |
Join ranges. More... | |
range_type & | combine (const range_type &range) |
Combine ranges. More... | |
range_type & | add (argument_type x) |
Add offset. More... | |
range_type & | add (const range_type &range) |
Add offset. More... | |
range_type & | sub (argument_type x) |
Subtract offset. More... | |
range_type & | sub (const range_type &range) |
Subtract offset. More... | |
range_type & | mul (const double factor) |
Multiply range. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
range_type & | div (const double factor) |
Divide range. More... | |
T | getN (const double R) const |
Get expected number of occurances of given rate within this interval. More... | |
const key_type & | getKey () const |
const mapped_type & | getValue () const |
mapped_type & | getValue () |
const std::string & | getKey () const |
Get key. More... | |
const std::string & | getWGS () const |
Get WGS. More... | |
const std::string & | getUTMZone () const |
Get UTM zone. More... | |
std::string | toString () const |
Convert UTM grid. More... | |
JPosition3D | getPosition () const |
Get position. More... | |
double | getUTMEast () const |
Get UTM east. More... | |
double | getUTMNorth () const |
Get UTM north. More... | |
double | getUTMZ () const |
Get UTM Z. More... | |
Static Public Member Functions | |
static JEquationParameters & | getEquationParameters () |
Get equation parameters. More... | |
static void | setEquationParameters (const JEquationParameters &equation) |
Set equation parameters. More... | |
static T | getMinimum () |
Get minimum possible value. More... | |
static T | getMaximum () |
Get maximum possible value. More... | |
static JUTMGrid | valueOf (const std::string &buffer) |
Extract UTM grid. More... | |
Public Attributes | |
JComparator_t | compare |
Function object. More... | |
T | first |
T | second |
Static Public Attributes | |
static const JRange< T, JComparator_t > | DEFAULT_RANGE |
Default range. More... | |
Protected Attributes | |
std::string | key |
std::string | wgs |
std::string | zone |
double | east |
double | north |
double | z |
Friends | |
std::istream & | operator>> (std::istream &in, JDetectorHeader &header) |
Read detector header from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JDetectorHeader &header) |
Write detector header to output. More... | |
JReader & | operator>> (JReader &in, JDetectorHeader &header) |
Read detector header from input. More... | |
JWriter & | operator<< (JWriter &out, const JDetectorHeader &header) |
Write detector header to output. More... | |
Data structure for detector header.
Definition at line 35 of file JDetectorHeader.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
Default constructor.
Definition at line 44 of file JDetectorHeader.hh.
|
inline |
Constructor.
range | UTC time range |
grid | UTM grid |
pos | UTM position |
Definition at line 58 of file JDetectorHeader.hh.
|
inlinestatic |
Get equation parameters.
Definition at line 144 of file JDetectorHeader.hh.
|
inlinestatic |
Set equation parameters.
equation | equation parameters |
Definition at line 158 of file JDetectorHeader.hh.
|
inline |
Get properties of this class.
equation | equation parameters |
Definition at line 169 of file JDetectorHeader.hh.
|
inline |
Get properties of this class.
equation | equation parameters |
Definition at line 180 of file JDetectorHeader.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set lower and uppper limit.
__begin | begin of data |
__end | end of data |
member | pointer to data member |
Definition at line 147 of file JRange.hh.
|
inlineinherited |
Set lower and uppper limit.
__begin | begin of data |
__end | end of data |
function | pointer to member method |
Definition at line 165 of file JRange.hh.
|
inlineinherited |
Get lower limit.
|
inlineinherited |
Get upper limit.
|
inlineinherited |
Set lower limit.
x | lower limit |
|
inlineinherited |
Set upper limit.
y | upper limit |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Test overlap with given range.
The result is equivalent to join(range).is_valid().
range | range |
Definition at line 321 of file JRange.hh.
|
inlineinherited |
Include given value to range.
The new lower limit is the minimim of the original lower limit and given value and the new upper limit is the maximum of the original upper limit and given value;
x | value |
Definition at line 336 of file JRange.hh.
|
inlineinherited |
Join ranges.
The new lower limit is the maximim of the two lower limits and the new upper limit is the minimum of the two upper limits. This operation results in an equal or smaller range and may result in an unphysical range (i.e. lower limit > upper limit).
range | range |
Definition at line 354 of file JRange.hh.
|
inlineinherited |
Combine ranges.
The new lower limit is the minimim of the two lower limits and the new upper limit is the maximum of the two upper limits. This operation results in an equal or larger range.
range | range |
Definition at line 371 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
Get maximum possible value.
Definition at line 496 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
Extract UTM grid.
buffer | WGS and UTM zone |
Definition at line 113 of file JUTMGrid.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
friend |
Read detector header from input.
in | input stream |
header | header |
Definition at line 74 of file JDetectorHeader.hh.
|
friend |
Write detector header to output.
out | output stream |
header | header |
Definition at line 91 of file JDetectorHeader.hh.
|
friend |
Read detector header from input.
in | input stream |
header | header |
Definition at line 112 of file JDetectorHeader.hh.
|
friend |
Write detector header to output.
out | output stream |
header | header |
Definition at line 129 of file JDetectorHeader.hh.
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
Definition at line 183 of file JUTMGrid.hh.
|
protectedinherited |
Definition at line 184 of file JUTMGrid.hh.
|
protectedinherited |
Definition at line 185 of file JUTMGrid.hh.
|
protectedinherited |
Definition at line 169 of file JUTMPosition.hh.
|
protectedinherited |
Definition at line 170 of file JUTMPosition.hh.
|
protectedinherited |
Definition at line 171 of file JUTMPosition.hh.