22 bool operator()(
const T& x)
const
27 template<
typename IntegralType>
30 bool operator()(
const IntegralType& x)
const
31 {
return ( (x % 2) == 0 ); }
35 template<
typename IntegralType>
38 bool operator()(
const IntegralType& x)
const
39 {
return ( (x % 2) != 0 ); }
84 typedef std::pair<int,int> value_t;
202 ECHO(
const int v0 = *itr++);
204 ECHO(
const int v1 = *itr++);
206 ECHO(
const int v2 = *itr++);
235 ECHO(
const int v0 = *itr--);
237 ECHO(
const int v1 = *itr--);
239 ECHO(
const int v2 = *itr);
282 ECHO(
const int v0 = *itr++);
284 ECHO(
const int v1 = *itr++);
297 ECHO(
const int v0 = *itr++);
299 ECHO(
const int v1 = *itr++);
340 ECHO(
const int v0 = *itr--);
342 ECHO(
const int v1 = *itr);
355 ECHO(
const int v0 = *itr--);
357 ECHO(
const int v1 = *itr);
363 #ifdef HAVE_TEUCHOS_ARRAY_BOUNDSCHECK
370 FilteredIterator<int*,SelectAll<int> > itr_end((&a_raw)+1, &a_raw, (&a_raw)+1);
371 FilteredIterator<int*,SelectAll<int> > itr = itr_end;
383 FilteredIterator<int*,SelectAll<int> > itr_begin(&a_raw, &a_raw, (&a_raw)+1);
384 FilteredIterator<int*,SelectAll<int> > itr = itr_begin;
392 #endif // HAVE_TEUCHOS_ARRAY_BOUNDSCHECK
C++ Standard Library compatable filtered iterator.
#define ECHO(statement)
Echo the given statement before it is executed.
#define TEST_ITER_EQUALITY(iter1, iter2)
Assert that two iterators are equal.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails)...
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
IteratorType current() const
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
Templated array class derived from the STL std::vector.
void push_back(const value_type &x)
IteratorType begin() const
std::vector< T >::iterator iterator
The type of a forward iterator.
Defines basic traits returning the name of a type in a portable and readable way. ...
#define TEST_ITER_INEQUALITY(iter1, iter2)
Assert that two iterators are NOT equal.
Replacement for std::vector that is compatible with the Teuchos Memory Management classes...