#include <ulonglong.hh>
|
typedef unsigned int | uint |
|
Definition at line 11 of file ulonglong.hh.
ulonglong::ulonglong |
( |
const uint |
u1_, |
|
|
const uint |
u2_ |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
u1_ | most significant value |
u2_ | least significant value |
Definition at line 33 of file ulonglong.hh.
ulonglong::ulonglong |
( |
const int |
u2_ | ) |
|
|
inline |
Constructor.
- Parameters
-
u2_ | least significant value |
Definition at line 42 of file ulonglong.hh.
ulonglong::ulonglong |
( |
const uint |
u2_ | ) |
|
|
inline |
Constructor.
- Parameters
-
u2_ | least significant value |
Definition at line 51 of file ulonglong.hh.
ulonglong::ulonglong |
( |
const double |
d | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 60 of file ulonglong.hh.
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
ulonglong& ulonglong::operator= |
( |
const int |
i | ) |
|
|
inline |
ulonglong& ulonglong::operator= |
( |
const double |
d | ) |
|
|
inline |
Assignment operator.
Definition at line 90 of file ulonglong.hh.
92 if (
d < (
double) std::numeric_limits<uint>::max()) {
96 u1 = (
uint) (
d / ((
double) std::numeric_limits<uint>::max()));
97 u2 = (
uint) (
d - ((
double)
u1) * (
double) std::numeric_limits<uint>::max());
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
ulonglong::operator double |
( |
| ) |
const |
|
inline |
cast operator
Definition at line 105 of file ulonglong.hh.
107 return ((
double)
u1) * ((double) std::numeric_limits<uint>::max()) + ((
double)
u2);
prefix decrement
Definition at line 113 of file ulonglong.hh.
119 u2 = std::numeric_limits<uint>::max();
prefix increment
Definition at line 127 of file ulonglong.hh.
129 if (
u2 < std::numeric_limits<uint>::max())
postfix decrement
Definition at line 141 of file ulonglong.hh.
148 u2 = std::numeric_limits<uint>::max();
postfix increment
Definition at line 156 of file ulonglong.hh.
159 if (
u2 < std::numeric_limits<uint>::max())
ulonglong ulonglong::operator- |
( |
const int |
x | ) |
|
|
inline |
ulonglong ulonglong::operator+ |
( |
const int |
x | ) |
|
|
inline |
ulonglong& ulonglong::operator+= |
( |
const int |
x | ) |
|
|
inline |
ulonglong& ulonglong::operator-= |
( |
const int |
x | ) |
|
|
inline |
Definition at line 226 of file ulonglong.hh.
232 u2 = (std::numeric_limits<uint>::max() -
x) +
u2 + 1;
bool ulonglong::operator== |
( |
const ulonglong & |
b | ) |
const |
|
inline |
bool ulonglong::operator!= |
( |
const ulonglong & |
b | ) |
const |
|
inline |
bool ulonglong::operator< |
( |
const ulonglong & |
b | ) |
const |
|
inline |
bool ulonglong::operator<= |
( |
const ulonglong & |
b | ) |
const |
|
inline |
bool ulonglong::operator> |
( |
const ulonglong & |
b | ) |
const |
|
inline |
bool ulonglong::operator>= |
( |
const ulonglong & |
b | ) |
const |
|
inline |
uint ulonglong::operator[] |
( |
const int |
i | ) |
|
|
inline |
uint ulonglong::msw |
( |
| ) |
const |
|
inline |
uint ulonglong::lsw |
( |
| ) |
const |
|
inline |
std::ostream& ulonglong::write |
( |
std::ostream & |
out | ) |
const |
|
inline |
Definition at line 324 of file ulonglong.hh.
326 std::ios::fmtflags oldFlags = out.flags();
327 out << std::hex << std::setfill(
'0') << std::setw(8) <<
u1 << std::setw(8) <<
u2;
std::istream& ulonglong::read |
( |
std::istream & |
in | ) |
|
|
inline |
Definition at line 332 of file ulonglong.hh.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
distance between 2 values
- Parameters
-
a | first value |
b | second value |
- Returns
- distance
Definition at line 344 of file ulonglong.hh.
348 value.
u1 = std::max(a.
u1,b.
u1) - std::min(a.
u1,b.
u1);
349 value.
u2 = std::max(a.
u2,b.
u2) - std::min(a.
u2,b.
u2);
354 value.
u2 = std::numeric_limits<uint>::max() - value.
u2 + 1;
The documentation for this class was generated from the following file: