19 ECHO(SIOVOCB::OrdinalIndex idx);
27 ECHO(SIOVOCB::OrdinalIndex idx(5));
35 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop);
45 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop(
"key_name1", 7));
55 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop =
56 SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex>::makeInvalid());
66 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop(
"key_name2", 8,
false));
76 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop1(
"key_name", 3,
false));
77 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop2(kop1));
87 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop1(
"key_name", 3,
false));
88 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop2);
112 ECHO(
const Ordinal my_int_1_idx1 = oc.
setObj(
"my_int_1", 3));
123 ECHO(
const Ordinal my_int_2_idx1 = oc.
setObj(
"my_int_2", 4));
144 ECHO(
const Ordinal my_int_1_idx = oc.
setObj(
"my_int_1", 3));
173 ECHO(
const Ordinal my_int_1_idx1 = oc.
setObj(
"my_int_1", 3));
179 ECHO(
const Ordinal my_int_1_idx3 = oc.
setObj(
"my_int_1", 4));
198 ECHO(itr->second = 5);
203 ECHO(itr->second = 6);
208 ECHO(itr->second = 7);
239 typedef SIOVOCB::OrdinalIndex OI;
268 typedef SIOVOCB::OrdinalIndex OI;
297 typedef SIOVOCB::OrdinalIndex OI;
326 typedef SIOVOCB::OrdinalIndex OI;
355 typedef SIOVOCB::OrdinalIndex OI;
384 typedef SIOVOCB::OrdinalIndex OI;
C++ Standard Library compatable filtered iterator.
Ordinal getObjOrdinalIndex(const std::string &key) const
Get the ordinal index given the string key.
String indexed ordered value-type object container class.
#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)...
Ordinal setObj(const std::string &key, U &&obj)
Set (or reset) object by value and return its ordinal index.
ConstIterator end() const
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
Ptr< const ObjType > getObjPtr(const Ordinal &idx) const
Get a const semi-persisting association with the stored object indexed by ordinal.
Ordinal numStorage() const
ConstIterator begin() const
void removeObj(const Ordinal &idx)
Remove an object given its ordinal index.
Ordinal numObjects() const
Ptr< ObjType > getNonconstObjPtr(const Ordinal &idx)
Get a nonconst semi-persisting association with the stored object indexed by ordinal.
Base types for StringIndexedOrderedValueObjectContainer.