51 template<
typename Integer>
58 template<
typename T1,
typename T2>
102 template <
typename Element,
typename Index>
104 template <
typename Iterator,
typename IndexIterator>
113 {
return ! (
a & 1); }
127{
return std::abs(
d); }
131{
return std::labs(
d); }
135{
return std::llabs(
d); }
139{
return std::abs(
d); }
143{
return std::abs(
d); }
147{
return std::abs(
d); }
153template<
typename Integer>
159 {
return std::signbit(
a); }
163 {
return std::signbit(
a); }
167 {
return std::signbit(
a); }
173template<
typename T1,
typename T2>
180 {
return std::copysign(
a,
b); }
185 {
return std::copysign(
a,
b); }
190 {
return std::copysign(
a,
b); }
198 {
return a <=
b ?
a :
b; }
203 {
return a <=
b ?
a :
b; }
208 {
return a <=
b ?
a :
b; }
213 {
return a <=
b ?
a :
b; }
218 {
return a <=
b ?
a :
b; }
223 {
return a <=
b ?
a :
b; }
228 {
return a <=
b ?
a :
b; }
233 {
return a <=
b ?
a :
b; }
238 {
return a <=
b ?
a :
b; }
243 {
return a <=
b ?
a :
b; }
250 {
return a >=
b ?
a :
b; }
255 {
return a >=
b ?
a :
b; }
260 {
return a >=
b ?
a :
b; }
265 {
return a >=
b ?
a :
b; }
270 {
return a >=
b ?
a :
b; }
275 {
return a >=
b ?
a :
b; }
280 {
return a >=
b ?
a :
b; }
285 {
return a >=
b ?
a :
b; }
290 {
return a >=
b ?
a :
b; }
295 {
return a >=
b ?
a :
b; }
332 pind = std::lower_bound(array, array +
n,
value);
334 return (
pind - array);
336 return (
pind - array - 1);
347 pind = std::lower_bound(*array, *array +
n,
value);
349 return (
pind - *array);
351 return (
pind - *array - 1);
359 template<
typename Index>
372 template<
typename Index>
387template <
typename Iterator,
typename IndexIterator>
415 for(Index i = 0; i <
n; i++) {
index[i] = i; }
Basic types used by ROOT and required by TInterpreter.
unsigned short UShort_t
Unsigned Short integer 2 bytes (unsigned short)
int Int_t
Signed integer 4 bytes (int)
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
float Float_t
Float 4 bytes (float)
short Short_t
Signed Short integer 2 bytes (short)
double Double_t
Double 8 bytes.
long double LongDouble_t
Long Double (not portable)
long long Long64_t
Portable signed long integer 8 bytes.
unsigned long long ULong64_t
Portable unsigned long integer 8 bytes.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
void SortItr(Iterator first, Iterator last, IndexIterator index, Bool_t down=kTRUE)
Sort the n1 elements of the Short_t array defined by its iterators.
Long_t NextPrime(Long_t x)
T1 Sign(T1 a, T2 b)
Returns a value with the magnitude of a and the sign of b.
Short_t Range(Short_t lb, Short_t ub, Short_t x)
Returns x if lb < x < up, lb if x < lb and ub if x > ub.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
Bool_t Odd(Long_t a)
Returns true if a is odd.
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
Sort the n elements of the array a of generic templated type Element.
Bool_t SignBit(Integer a)
Returns whether the sign of Integer a is negative.
Long64_t BinarySearch(Long64_t n, const T *array, T value)
Binary search in an array of n values to locate value.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
Bool_t Even(Long_t a)
Returns true if a is even.
bool operator()(Index i1, Index i2)
bool operator()(Index i1, Index i2)