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::QueryableVectorLoader Class Reference
Inheritance diagram for ora::QueryableVectorLoader:
ora::IVectorLoader

Public Member Functions

size_t getSelectionCount (const Selection &selection) const override
 
void invalidate () override
 
bool isValid () const override
 
bool load (void *address) const override
 
bool loadSelection (const Selection &selection, void *address) const override
 
 QueryableVectorLoader (const edm::TypeWithDict &objectType, MappingElement &mapping, ContainerSchema &contSchema, const std::vector< int > &fullId)
 
virtual ~QueryableVectorLoader ()
 
- Public Member Functions inherited from ora::IVectorLoader
virtual ~IVectorLoader ()
 

Private Attributes

std::vector< int > m_identity
 
bool m_isValid
 
QVQueryMaker m_queryMaker
 
QVReader m_reader
 

Detailed Description

Definition at line 286 of file QueryableVectorStreamer.cc.

Constructor & Destructor Documentation

ora::QueryableVectorLoader::QueryableVectorLoader ( const edm::TypeWithDict objectType,
MappingElement mapping,
ContainerSchema contSchema,
const std::vector< int > &  fullId 
)
inline

Definition at line 291 of file QueryableVectorStreamer.cc.

292  :
293  m_isValid(true),
294  m_reader( objectType, mapping, contSchema ),
295  m_queryMaker( objectType, mapping, contSchema ),
296  m_identity(fullId){
297  }
virtual ora::QueryableVectorLoader::~QueryableVectorLoader ( )
inlinevirtual

Definition at line 300 of file QueryableVectorStreamer.cc.

300  {
301  }

Member Function Documentation

size_t ora::QueryableVectorLoader::getSelectionCount ( const Selection selection) const
inlineoverridevirtual

Implements ora::IVectorLoader.

Definition at line 326 of file QueryableVectorStreamer.cc.

References m_identity, m_isValid, m_queryMaker, runTheMatrix::ret, and ora::QVQueryMaker::selectionCount().

326  {
327  size_t ret = 0;
328  if(m_isValid) {
329  ret = m_queryMaker.selectionCount( m_identity, selection );
330  }
331  return ret;
332  }
tuple ret
prodAgent to be discontinued
size_t selectionCount(const std::vector< int > &fullId, const Selection &selection)
void ora::QueryableVectorLoader::invalidate ( )
inlineoverridevirtual

Implements ora::IVectorLoader.

Definition at line 334 of file QueryableVectorStreamer.cc.

References m_isValid.

334  {
335  m_isValid = false;
336  }
bool ora::QueryableVectorLoader::isValid ( void  ) const
inlineoverridevirtual

Implements ora::IVectorLoader.

Definition at line 338 of file QueryableVectorStreamer.cc.

References m_isValid.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

338  {
339  return m_isValid;
340  }
bool ora::QueryableVectorLoader::load ( void *  address) const
inlineoverridevirtual

Implements ora::IVectorLoader.

Definition at line 306 of file QueryableVectorStreamer.cc.

References m_identity, m_isValid, m_reader, ora::QVReader::read(), and runTheMatrix::ret.

Referenced by MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().

306  {
307  bool ret = false;
308  if(m_isValid) {
309  m_reader.read( m_identity, address );
310  ret = true;
311  }
312  return ret;
313  }
tuple ret
prodAgent to be discontinued
void read(const std::vector< int > &fullId, void *destinationAddress)
bool ora::QueryableVectorLoader::loadSelection ( const Selection selection,
void *  address 
) const
inlineoverridevirtual

Implements ora::IVectorLoader.

Definition at line 315 of file QueryableVectorStreamer.cc.

References ora::QVQueryMaker::build(), ora::QVQueryMaker::executeAndLoad(), m_identity, m_isValid, m_queryMaker, runTheMatrix::ret, and ora::QVQueryMaker::select().

315  {
316  bool ret = false;
317  if(m_isValid) {
319  m_queryMaker.select( m_identity, selection );
320  m_queryMaker.executeAndLoad( address );
321  ret = true;
322  }
323  return ret;
324  }
tuple ret
prodAgent to be discontinued
void executeAndLoad(void *address)
void select(const std::vector< int > &fullId, const Selection &selection)

Member Data Documentation

std::vector<int> ora::QueryableVectorLoader::m_identity
private

Definition at line 346 of file QueryableVectorStreamer.cc.

Referenced by getSelectionCount(), load(), and loadSelection().

bool ora::QueryableVectorLoader::m_isValid
private
QVQueryMaker ora::QueryableVectorLoader::m_queryMaker
mutableprivate

Definition at line 345 of file QueryableVectorStreamer.cc.

Referenced by getSelectionCount(), and loadSelection().

QVReader ora::QueryableVectorLoader::m_reader
mutableprivate

Definition at line 344 of file QueryableVectorStreamer.cc.

Referenced by load().