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 ()
void remove (int contId)
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 30 of file DatabaseSession.h.


Constructor & Destructor Documentation

ora::ContainerUpdateTable::ContainerUpdateTable ( )

Definition at line 17 of file DatabaseSession.cc.

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

Definition at line 21 of file DatabaseSession.cc.

                                              {
}

Member Function Documentation

void ora::ContainerUpdateTable::clear ( void  )

Definition at line 41 of file DatabaseSession.cc.

                                   {
  m_table.clear();
}
void ora::ContainerUpdateTable::remove ( int  contId)

Definition at line 33 of file DatabaseSession.cc.

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

Definition at line 37 of file DatabaseSession.cc.

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

Definition at line 24 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 39 of file DatabaseSession.h.