|
reSIProcate/rutil
9694
|


Public Member Functions | |
| Foo (const Data &val) | |
| Foo () | |
| Foo (int c, const Data &v) | |
| bool | operator< (const Foo &rhs) const |
| bool | operator== (const Foo &rhs) const |
| Foo (int v) | |
| Foo () | |
| ~Foo () | |
| void | getSetTest () |
| void | checkConstAccessors (const KeyValueStore &store) |
| void | getModifyTest () |
| Foo (const Data &val) | |
| ~Foo () | |
Public Attributes | |
| Data | mVal |
| int | count |
| Data | value |
| int | va1 |
| int | va2 |
| KeyValueStore | mStore |
| KeyValueStore::Key | mDataValueKey |
| KeyValueStore::Key | mBoolValueKey |
| KeyValueStore::Key | mCharValueKey |
| KeyValueStore::Key | mShortValueKey |
| KeyValueStore::Key | mUShortValueKey |
| KeyValueStore::Key | mIntValueKey |
| KeyValueStore::Key | mUIntValueKey |
| KeyValueStore::Key | mUInt64ValueKey |
Definition at line 27 of file testFifo.cxx.
| Foo::Foo | ( | const Data & | val | ) | [inline] |
Definition at line 30 of file testFifo.cxx.
: mVal(val) {}
| Foo::Foo | ( | ) | [inline] |
Definition at line 16 of file testInserter.cxx.
| Foo::Foo | ( | int | c, |
| const Data & | v | ||
| ) | [inline] |
Definition at line 22 of file testInserter.cxx.
| Foo::Foo | ( | int | v | ) | [inline] |
Definition at line 13 of file testIntrusiveList.cxx.
: va1(v) {}
| Foo::Foo | ( | ) | [inline] |
Definition at line 25 of file testKeyValueStore.cxx.
References resip::Data::Empty.
: mDataValueKey(mStore.allocateNewKey()) , mBoolValueKey(mStore.allocateNewKey()) , mCharValueKey(mStore.allocateNewKey()) , mShortValueKey(mStore.allocateNewKey()) , mUShortValueKey(mStore.allocateNewKey()) , mIntValueKey(mStore.allocateNewKey()) , mUIntValueKey(mStore.allocateNewKey()) , mUInt64ValueKey(mStore.allocateNewKey()) { assert(mStore.getDataValue(mDataValueKey) == Data::Empty); assert(mStore.getBoolValue(mBoolValueKey) == false); assert(mStore.getCharValue(mCharValueKey) == 0); assert(mStore.getShortValue(mShortValueKey) == 0); assert(mStore.getUShortValue(mUShortValueKey) == 0); assert(mStore.getIntValue(mIntValueKey) == 0); assert(mStore.getUIntValue(mUIntValueKey) == 0); assert(mStore.getUInt64Value(mUInt64ValueKey) == 0); }
| Foo::~Foo | ( | ) | [inline] |
Definition at line 45 of file testKeyValueStore.cxx.
{
}
| Foo::Foo | ( | const Data & | val | ) | [inline] |
Definition at line 26 of file testSharedPtr.cxx.
: mVal(val) { cerr << "Foo created." << endl; }
| Foo::~Foo | ( | ) | [inline] |
Definition at line 32 of file testSharedPtr.cxx.
{
cerr << "Foo destroyed." << endl;
}
| void Foo::checkConstAccessors | ( | const KeyValueStore & | store | ) | [inline] |
Definition at line 77 of file testKeyValueStore.cxx.
References resip::Data::Empty, resip::KeyValueStore::getBoolValue(), resip::KeyValueStore::getCharValue(), resip::KeyValueStore::getDataValue(), resip::KeyValueStore::getIntValue(), resip::KeyValueStore::getShortValue(), resip::KeyValueStore::getUInt64Value(), resip::KeyValueStore::getUIntValue(), and resip::KeyValueStore::getUShortValue().
{
KeyValueStore::Key newDataValueKey = mStore.allocateNewKey();
assert(store.getDataValue(newDataValueKey) == Data::Empty);
assert(store.getDataValue(mDataValueKey) == "test");
assert(store.getBoolValue(mBoolValueKey) == true);
assert(store.getCharValue(mCharValueKey) == 'x');
assert(store.getShortValue(mShortValueKey) == -1000);
assert(store.getUShortValue(mUShortValueKey) == 40000);
assert(store.getIntValue(mIntValueKey) == -80000);
assert(store.getUIntValue(mUIntValueKey) == 4294967295UL);
assert(store.getUInt64Value(mUInt64ValueKey) == 18446744073709551615ULL);
}

| void Foo::getModifyTest | ( | ) | [inline] |
Definition at line 91 of file testKeyValueStore.cxx.
Referenced by main().
{
KeyValueStore::Key newDataValueKey = mStore.allocateNewKey();
mStore.getDataValue(newDataValueKey) = "newDataValue";
mStore.getDataValue(mDataValueKey) = "test2";
mStore.getBoolValue(mBoolValueKey) = false;
mStore.getCharValue(mCharValueKey) = 'y';
short testShort = -2000;
mStore.getShortValue(mShortValueKey) = testShort;
unsigned short testUShort = 40001;
mStore.getUShortValue(mUShortValueKey) = testUShort;
int testInt = -80001;
mStore.getIntValue(mIntValueKey) = testInt;
unsigned int testUInt = 4294967294UL;
mStore.getUIntValue(mUIntValueKey) = testUInt;
UInt64 testUInt64 = 18446744073709551614ULL;
mStore.getUInt64Value(mUInt64ValueKey) = testUInt64;
assert(mStore.getDataValue(newDataValueKey) == "newDataValue");
assert(mStore.getDataValue(mDataValueKey) == "test2");
assert(mStore.getBoolValue(mBoolValueKey) == false);
assert(mStore.getCharValue(mCharValueKey) == 'y');
assert(mStore.getShortValue(mShortValueKey) == testShort);
assert(mStore.getUShortValue(mUShortValueKey) == testUShort);
assert(mStore.getIntValue(mIntValueKey) == testInt);
assert(mStore.getUIntValue(mUIntValueKey) == testUInt);
assert(mStore.getUInt64Value(mUInt64ValueKey) == testUInt64);
}
| void Foo::getSetTest | ( | ) | [inline] |
Definition at line 49 of file testKeyValueStore.cxx.
Referenced by main().
{
mStore.setDataValue(mDataValueKey, "test");
mStore.setBoolValue(mBoolValueKey, true);
mStore.setCharValue(mCharValueKey, 'x');
short testShort = -1000;
mStore.setShortValue(mShortValueKey, testShort);
unsigned short testUShort = 40000;
mStore.setUShortValue(mUShortValueKey, testUShort);
int testInt = -80000;
mStore.setIntValue(mIntValueKey, testInt);
unsigned int testUInt = 4294967295UL;
mStore.setUIntValue(mUIntValueKey, testUInt);
UInt64 testUInt64 = 18446744073709551615ULL;
mStore.setUInt64Value(mUInt64ValueKey, testUInt64);
assert(mStore.getDataValue(mDataValueKey) == "test");
assert(mStore.getBoolValue(mBoolValueKey) == true);
assert(mStore.getCharValue(mCharValueKey) == 'x');
assert(mStore.getShortValue(mShortValueKey) == testShort);
assert(mStore.getUShortValue(mUShortValueKey) == testUShort);
assert(mStore.getIntValue(mIntValueKey) == testInt);
assert(mStore.getUIntValue(mUIntValueKey) == testUInt);
assert(mStore.getUInt64Value(mUInt64ValueKey) == testUInt64);
checkConstAccessors(mStore);
}
| bool Foo::operator< | ( | const Foo & | rhs | ) | const [inline] |
| bool Foo::operator== | ( | const Foo & | rhs | ) | const [inline] |
Definition at line 43 of file testInserter.cxx.
{
return (!(*this < rhs) && !(rhs < *this));
}
| int Foo::count |
Definition at line 48 of file testInserter.cxx.
Referenced by operator<(), and operator<<().
Definition at line 123 of file testKeyValueStore.cxx.
Definition at line 124 of file testKeyValueStore.cxx.
Definition at line 122 of file testKeyValueStore.cxx.
Definition at line 127 of file testKeyValueStore.cxx.
Definition at line 125 of file testKeyValueStore.cxx.
Definition at line 121 of file testKeyValueStore.cxx.
Definition at line 129 of file testKeyValueStore.cxx.
Definition at line 128 of file testKeyValueStore.cxx.
Definition at line 126 of file testKeyValueStore.cxx.
Definition at line 34 of file testFifo.cxx.
Referenced by main().
| int Foo::va1 |
Definition at line 14 of file testIntrusiveList.cxx.
Referenced by main().
| int Foo::va2 |
Definition at line 15 of file testIntrusiveList.cxx.
Definition at line 49 of file testInserter.cxx.
Referenced by operator<(), and operator<<().
1.7.5.1