test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::ContainerUpdateTable Class Reference

#include <DatabaseSession.h>

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 33 of file DatabaseSession.h.

Constructor & Destructor Documentation

ora::ContainerUpdateTable::ContainerUpdateTable ( )

Definition at line 17 of file DatabaseSession.cc.

17  :
18  m_table(){
19 }
std::map< int, unsigned int > m_table
ora::ContainerUpdateTable::~ContainerUpdateTable ( )

Definition at line 21 of file DatabaseSession.cc.

21  {
22 }

Member Function Documentation

void ora::ContainerUpdateTable::clear ( void  )
void ora::ContainerUpdateTable::remove ( int  contId)

Definition at line 33 of file DatabaseSession.cc.

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

Definition at line 37 of file DatabaseSession.cc.

37  {
38  return m_table;
39 }
std::map< int, unsigned int > m_table
void ora::ContainerUpdateTable::takeNote ( int  contId,
unsigned int  size 
)

Definition at line 24 of file DatabaseSession.cc.

References findQualityFiles::size.

25  {
26  std::map<int, unsigned int>::iterator iC = m_table.find( contId );
27  if( iC == m_table.end() ){
28  iC = m_table.insert( std::make_pair( contId, 0 ) ).first;
29  }
30  iC->second = size;
31 }
std::map< int, unsigned int > m_table
tuple size
Write out results.

Member Data Documentation

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

Definition at line 42 of file DatabaseSession.h.