reSIProcate/rutil  9694
Public Member Functions | Public Attributes
Foo Class Reference
Inheritance diagram for Foo:
Inheritance graph
[legend]
Collaboration diagram for Foo:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Examples:

/data/svn/www/dox/resiprocate/rutil/TimeLimitFifo.hxx.

Definition at line 27 of file testFifo.cxx.


Constructor & Destructor Documentation

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.

         : 
      count(0), 
      value()
   {
   }
Foo::Foo ( int  c,
const Data v 
) [inline]

Definition at line 22 of file testInserter.cxx.

                             : 
      count(c),
      value(v)
   {
   }
Foo::Foo ( int  v) [inline]

Definition at line 13 of file testIntrusiveList.cxx.

: va1(v) {}
Foo::Foo ( ) [inline]
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;
      }

Member Function Documentation

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);
   }

Here is the call graph for this function:

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]

Definition at line 28 of file testInserter.cxx.

References count, and value.

   {
      if (count < rhs.count)
      {
         return true;
      }

      if (count > rhs.count)
      {
         return false;
      }

         return value < rhs.value;
   }
bool Foo::operator== ( const Foo rhs) const [inline]

Definition at line 43 of file testInserter.cxx.

   {
      return (!(*this < rhs) && !(rhs < *this));
   }

Member Data Documentation

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<<().


The documentation for this class was generated from the following files: