dumper Template Class Reference

Main Page Class Hierarchy Compound List File List Compound Members File Members

# dumper Class Template Reference

List of all members.

## Public Methods
void | dump_vector (const cmt_vector<T>& vector, const cmt_string& title)

## Member Function Documentation

template<classT>
void dumper<T>::dump_vector ( | const cmt_vector< T >& vector,
| const cmt_string & title )`[inline]`

| Definition at line 9 of file cmt_database.cxx. Referenced by Database::dump().
    00011       {
    00012         int i;
    00013
    00014         {
    00015             //const cmt_vector<T>::frame_ptr frame = vector.get_frame ();
    00016           T** frame = vector.get_frame ();
    00017
    00018           cout << title << " frame=" << frame << " size=" << vector.size () << endl;
    00019
    00020           int element = 0;
    00021
    00022           for (i = 0; i < vector.get_frame_number (); i++)
    00023             {
    00024                 //cmt_vector<T>::element_ptr ptr = frame[i];
    00025               T* ptr = frame[i];
    00026               for (int j = 0; j < vector.get_frame_size (); j++)
    00027                 {
    00028                   element++;
    00029                   if (element >= vector.size ()) break;
    00030
    00031                   cout << "   frame[" << i << "][" << j << "]=" << &ptr[j] << endl;
    00032                 }
    00033
    00034               if (element >= vector.size ()) break;
    00035             }
    00036         }
    00037       }

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

- cmt_database.cxx