CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::ContainerUpdateTable Class Reference

#include <DatabaseSession.h>

List of all members.

Public Member Functions

void clear ()
 ContainerUpdateTable ()
const std::map< int, unsigned
int > & 
table ()
void takeNote (int contId, unsigned int size)
 ~ContainerUpdateTable ()

Private Attributes

std::map< int, unsigned int > m_table

Detailed Description

Definition at line 29 of file DatabaseSession.h.


Constructor & Destructor Documentation

ora::ContainerUpdateTable::ContainerUpdateTable ( )

Definition at line 16 of file DatabaseSession.cc.

                                             :
  m_table(){
}
ora::ContainerUpdateTable::~ContainerUpdateTable ( )

Definition at line 20 of file DatabaseSession.cc.

                                              {
}

Member Function Documentation

void ora::ContainerUpdateTable::clear ( void  )

Definition at line 36 of file DatabaseSession.cc.

                                   {
  m_table.clear();
}
const std::map< int, unsigned int > & ora::ContainerUpdateTable::table ( )

Definition at line 32 of file DatabaseSession.cc.

                                                               {
  return m_table;
}
void ora::ContainerUpdateTable::takeNote ( int  contId,
unsigned int  size 
)

Definition at line 23 of file DatabaseSession.cc.

References findQualityFiles::size.

                                                             {
  std::map<int, unsigned int>::iterator iC = m_table.find( contId );
  if( iC == m_table.end() ){
    iC = m_table.insert( std::make_pair( contId, 0 ) ).first;
  }
  iC->second = size;
}

Member Data Documentation

std::map<int, unsigned int> ora::ContainerUpdateTable::m_table [private]

Definition at line 37 of file DatabaseSession.h.