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 Reflex::Type &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 287 of file QueryableVectorStreamer.cc.

Constructor & Destructor Documentation

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

Definition at line 292 of file QueryableVectorStreamer.cc.

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

Definition at line 301 of file QueryableVectorStreamer.cc.

301  {
302  }

Member Function Documentation

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

Implements ora::IVectorLoader.

Definition at line 327 of file QueryableVectorStreamer.cc.

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

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

Implements ora::IVectorLoader.

Definition at line 335 of file QueryableVectorStreamer.cc.

References m_isValid.

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

Implements ora::IVectorLoader.

Definition at line 339 of file QueryableVectorStreamer.cc.

References m_isValid.

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

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

Implements ora::IVectorLoader.

Definition at line 307 of file QueryableVectorStreamer.cc.

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

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

307  {
308  bool ret = false;
309  if(m_isValid) {
310  m_reader.read( m_identity, address );
311  ret = true;
312  }
313  return ret;
314  }
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 316 of file QueryableVectorStreamer.cc.

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

316  {
317  bool ret = false;
318  if(m_isValid) {
320  m_queryMaker.select( m_identity, selection );
321  m_queryMaker.executeAndLoad( address );
322  ret = true;
323  }
324  return ret;
325  }
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 347 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 346 of file QueryableVectorStreamer.cc.

Referenced by getSelectionCount(), and loadSelection().

QVReader ora::QueryableVectorLoader::m_reader
mutableprivate

Definition at line 345 of file QueryableVectorStreamer.cc.

Referenced by load().