55 bool operator()(
const T& x)
const 60 template<
typename IntegralType>
63 bool operator()(
const IntegralType& x)
const 64 {
return ( (x % 2) == 0 ); }
68 template<
typename IntegralType>
71 bool operator()(
const IntegralType& x)
const 72 {
return ( (x % 2) != 0 ); }
117 typedef std::pair<int,int> value_t;
235 ECHO(
const int v0 = *itr++);
237 ECHO(
const int v1 = *itr++);
239 ECHO(
const int v2 = *itr++);
268 ECHO(
const int v0 = *itr--);
270 ECHO(
const int v1 = *itr--);
272 ECHO(
const int v2 = *itr);
315 ECHO(
const int v0 = *itr++);
317 ECHO(
const int v1 = *itr++);
330 ECHO(
const int v0 = *itr++);
332 ECHO(
const int v1 = *itr++);
373 ECHO(
const int v0 = *itr--);
375 ECHO(
const int v1 = *itr);
388 ECHO(
const int v0 = *itr--);
390 ECHO(
const int v1 = *itr);
396 #ifdef HAVE_TEUCHOS_ARRAY_BOUNDSCHECK 403 FilteredIterator<int*,SelectAll<int> > itr_end((&a_raw)+1, &a_raw, (&a_raw)+1);
404 FilteredIterator<int*,SelectAll<int> > itr = itr_end;
416 FilteredIterator<int*,SelectAll<int> > itr_begin(&a_raw, &a_raw, (&a_raw)+1);
417 FilteredIterator<int*,SelectAll<int> > itr = itr_begin;
425 #endif // HAVE_TEUCHOS_ARRAY_BOUNDSCHECK C++ Standard Library compatable filtered iterator.
IteratorType current() const
#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_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails)...
IteratorType begin() const
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
#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)
TEST_EQUALITY(rcp_dynamic_cast< const EnhancedNumberValidator< double > >(castedDep1->getValuesAndValidators().find("val1") ->second, true) ->getMax(), double1Vali->getMax())
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...