C++ main module for emicrom Package
1.0
|
#include <OMP_ArrayElement.h>
Public Member Functions | |
OMP_ArrayElement (const OMP_ArrayElement &S) | |
create a new copy instance of the array element S More... | |
OMP_ArrayElement (const T &v, const size_t &i) | |
create an instance of Array Element with initial value More... | |
OMP_ArrayElement () | |
create a default array element More... | |
~OMP_ArrayElement () | |
destroy the array element More... | |
tBoolean | operator< (const OMP_ArrayElement< T > &elt) const |
compare 2 elements More... | |
tBoolean | operator<= (const OMP_ArrayElement< T > &elt) const |
compare 2 elements More... | |
tBoolean | operator> (const OMP_ArrayElement< T > &elt) const |
compare 2 elements More... | |
tBoolean | operator>= (const OMP_ArrayElement< T > &elt) const |
compare 2 elements More... | |
tBoolean | operator== (const OMP_ArrayElement< T > &elt) const |
compare 2 elements More... | |
tBoolean | operator!= (const OMP_ArrayElement< T > &elt) const |
compare 2 elements More... | |
const T & | value () const |
return the value of the element More... | |
T & | value () |
return the value of the element More... | |
const size_t & | index () const |
return the index of the element More... | |
size_t & | index () |
return the index of the element More... | |
void | setElement (const T &v, const size_t &i) |
set the value and index of the element More... | |
Static Public Member Functions | |
static const OMP_ArrayElement< T > & | min (const OMP_ArrayElement< T > &a, const OMP_ArrayElement< T > &b) |
return the min element of a & b More... | |
static const OMP_ArrayElement< T > & | max (const OMP_ArrayElement< T > &a, const OMP_ArrayElement< T > &b) |
return the max element of a & b More... | |
static const std::pair< T, tUIndex > & | pmin (const std::pair< T, tUIndex > &a, const std::pair< T, tUIndex > &b) |
return the min element of a & b More... | |
static const std::pair< T, tUIndex > & | pmax (const std::pair< T, tUIndex > &a, const std::pair< T, tUIndex > &b) |
return the max element of a & b More... | |
Private Attributes | |
T | mValue |
size_t | mIndex |
|
inline |
create a new copy instance of the array element S
S | the array element class to copy |
References OMP_ArrayElement< T >::index(), and OMP_ArrayElement< T >::value().
|
inline |
create an instance of Array Element with initial value
v | value of the element |
i | index of the element |
|
inline |
create a default array element
|
inline |
destroy the array element
|
inline |
return the index of the element
References OMP_ArrayElement< T >::mIndex.
Referenced by OMP_ArrayElement< T >::OMP_ArrayElement().
|
inline |
return the index of the element
References OMP_ArrayElement< T >::mIndex.
|
inlinestatic |
return the max element of a & b
a | element |
b | element to compare return the element whose value is max |
References OMP_ArrayElement< T >::value().
|
inlinestatic |
return the min element of a & b
a | element |
b | element to compare return the element whose value is min |
References OMP_ArrayElement< T >::value().
|
inline |
compare 2 elements
elt | the element to compare |
References OMP_ArrayElement< T >::value().
|
inline |
compare 2 elements
elt | the element to compare |
|
inline |
compare 2 elements
elt | the element to compare |
|
inline |
compare 2 elements
elt | the element to compare |
References OMP_ArrayElement< T >::value().
|
inline |
compare 2 elements
elt | the element to compare |
References OMP_ArrayElement< T >::value().
|
inline |
compare 2 elements
elt | the element to compare |
References OMP_ArrayElement< T >::value().
|
inlinestatic |
return the max element of a & b
a | element |
b | element to compare return the element whose value is max |
|
inlinestatic |
return the min element of a & b
a | element |
b | element to compare return the element whose value is min |
|
inline |
set the value and index of the element
v | value |
i | index |
|
inline |
return the value of the element
References OMP_ArrayElement< T >::mValue.
Referenced by OMP_ArrayElement< T >::max(), OMP_ArrayElement< T >::min(), OMP_ArrayElement< T >::OMP_ArrayElement(), OMP_ArrayElement< T >::operator!=(), OMP_ArrayElement< T >::operator==(), OMP_ArrayElement< T >::operator>(), and OMP_ArrayElement< T >::operator>=().
|
inline |
return the value of the element
References OMP_ArrayElement< T >::mValue.
|
private |
Referenced by OMP_ArrayElement< T >::index().
|
private |
Referenced by OMP_ArrayElement< T >::value().