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::InsertCache Class Reference

#include <MultiRecordInsertOperation.h>

Public Member Functions

 InsertCache (const RecordSpec &m_spec, const coral::AttributeList &data)
 
void processNextIteration ()
 
const std::vector< Record * > & records () const
 
 ~InsertCache ()
 

Private Attributes

const coral::AttributeList & m_data
 
std::vector< Record * > m_records
 
const RecordSpecm_spec
 

Detailed Description

Definition at line 15 of file MultiRecordInsertOperation.h.

Constructor & Destructor Documentation

ora::InsertCache::InsertCache ( const RecordSpec m_spec,
const coral::AttributeList &  data 
)

Definition at line 11 of file MultiRecordInsertOperation.cc.

12  :
13  m_spec(spec),m_records(),m_data( data ){
14 }
std::vector< Record * > m_records
const coral::AttributeList & m_data
const RecordSpec & m_spec
ora::InsertCache::~InsertCache ( )

Definition at line 16 of file MultiRecordInsertOperation.cc.

16  {
17  for(std::vector<Record*>::const_iterator iR = m_records.begin();
18  iR != m_records.end(); ++iR ){
19  delete *iR;
20  }
21 }
std::vector< Record * > m_records

Member Function Documentation

void ora::InsertCache::processNextIteration ( )

Definition at line 23 of file MultiRecordInsertOperation.cc.

References SiStripGain_Fake_cff::Record.

Referenced by ora::QueryableVectorWriter::write(), ora::CArrayWriter::write(), and ora::STLContainerWriter::write().

23  {
24  Record* rec = new Record(m_spec);
25  newRecordFromAttributeList(*rec, m_data );
26  m_records.push_back( rec );
27 }
std::vector< Record * > m_records
const coral::AttributeList & m_data
const RecordSpec & m_spec
const std::vector< ora::Record * > & ora::InsertCache::records ( ) const

Definition at line 29 of file MultiRecordInsertOperation.cc.

29  {
30  return m_records;
31 }
std::vector< Record * > m_records

Member Data Documentation

const coral::AttributeList& ora::InsertCache::m_data
private

Definition at line 24 of file MultiRecordInsertOperation.h.

std::vector<Record*> ora::InsertCache::m_records
private

Definition at line 23 of file MultiRecordInsertOperation.h.

const RecordSpec& ora::InsertCache::m_spec
private

Definition at line 22 of file MultiRecordInsertOperation.h.