51 ECHO(SIOVOCB::OrdinalIndex idx);
59 ECHO(SIOVOCB::OrdinalIndex idx(5));
67 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop);
77 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop(
"key_name1", 7));
87 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop =
88 SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex>::makeInvalid());
98 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop(
"key_name2", 8,
false));
108 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop1(
"key_name", 3,
false));
109 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop2(kop1));
119 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop1(
"key_name", 3,
false));
120 ECHO(SIOVOCB::KeyObjectPair<SIOVOCB::OrdinalIndex> kop2);
144 ECHO(
const Ordinal my_int_1_idx1 = oc.
setObj(
"my_int_1", 3));
155 ECHO(
const Ordinal my_int_2_idx1 = oc.
setObj(
"my_int_2", 4));
176 ECHO(
const Ordinal my_int_1_idx = oc.
setObj(
"my_int_1", 3));
205 ECHO(
const Ordinal my_int_1_idx1 = oc.
setObj(
"my_int_1", 3));
211 ECHO(
const Ordinal my_int_1_idx3 = oc.
setObj(
"my_int_1", 4));
230 ECHO(itr->second = 5);
235 ECHO(itr->second = 6);
240 ECHO(itr->second = 7);
271 typedef SIOVOCB::OrdinalIndex OI;
300 typedef SIOVOCB::OrdinalIndex OI;
329 typedef SIOVOCB::OrdinalIndex OI;
358 typedef SIOVOCB::OrdinalIndex OI;
387 typedef SIOVOCB::OrdinalIndex OI;
416 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)...
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 setObj(const std::string &key, const ObjType &obj)
Set (or reset) object by value and return its ordinal index.
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.