Go to the documentation of this file.
30 #ifndef CASA_LINEARSEARCH_H
31 #define CASA_LINEARSEARCH_H
34 #include <casacore/casa/aips.h>
124 template<
class Container,
class ElType>
125 Int linearSearch1 (
const Container& container,
const ElType&
value,
127 template<
class Container,
class ElType>
128 Int linearSearch (
Bool& found,
const Container& container,
131 template<
class Container,
class ElType>
132 Int linearSearchBrackets1 (
const Container& container,
const ElType&
value,
134 template<
class Container,
class ElType>
135 Int linearSearchBrackets (
Bool& found,
const Container& container,
144 #ifndef CASACORE_NO_AUTO_TEMPLATES
145 #include <casacore/casa/Utilities/LinearSearch.tcc>
146 #endif //# CASACORE_NO_AUTO_TEMPLATES
Int linearSearchBrackets(Bool &found, const Container &container, const ElType &value, uInt n, uInt lower=0)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Int linearSearch1(const Container &container, const ElType &value, uInt lower=0)
Search container for value.
Int linearSearchBrackets1(const Container &container, const ElType &value, uInt lower=0)
This version of the function is for containers that use [] for indexing.
this file contains all the compiler specific defines
Linear search a linear data structure.
Int linearSearch(Bool &found, const Container &container, const ElType &value, uInt n, uInt lower=0)
bool Bool
Define the standard types used by Casacore.