CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::QueryableVectorLoader Class Reference

Inheritance diagram for ora::QueryableVectorLoader:
ora::IVectorLoader

List of all members.

Public Member Functions

size_t getSelectionCount (const Selection &selection) const
void invalidate ()
bool isValid () const
bool load (void *address) const
bool loadSelection (const Selection &selection, void *address) const
 QueryableVectorLoader (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema, const std::vector< int > &fullId)
virtual ~QueryableVectorLoader ()

Private Attributes

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

Detailed Description

Definition at line 288 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 293 of file QueryableVectorStreamer.cc.

                                                            :
        m_isValid(true),
        m_reader( objectType, mapping, contSchema ),
        m_queryMaker( objectType, mapping, contSchema ),
        m_identity(fullId){
      }

virtual ora::QueryableVectorLoader::~QueryableVectorLoader ( ) [inline, virtual]

Definition at line 302 of file QueryableVectorStreamer.cc.

            :

Member Function Documentation

size_t ora::QueryableVectorLoader::getSelectionCount ( const Selection selection) const [inline, virtual]

Implements ora::IVectorLoader.

Definition at line 328 of file QueryableVectorStreamer.cc.

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

                      {
          ret = m_queryMaker.selectionCount( m_identity, selection );
        }
        return ret;
      }

void ora::QueryableVectorLoader::invalidate ( ) [inline, virtual]

Implements ora::IVectorLoader.

Definition at line 336 of file QueryableVectorStreamer.cc.

                          {
bool ora::QueryableVectorLoader::isValid ( void  ) const [inline, virtual]

Implements ora::IVectorLoader.

Definition at line 340 of file QueryableVectorStreamer.cc.

             :
bool ora::QueryableVectorLoader::load ( void *  address) const [inline, virtual]

Implements ora::IVectorLoader.

Definition at line 308 of file QueryableVectorStreamer.cc.

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

                      {
          m_reader.read( m_identity, address );
          ret = true;
        }
        return ret;
      }

bool ora::QueryableVectorLoader::loadSelection ( const Selection selection,
void *  address 
) const [inline, virtual]

Implements ora::IVectorLoader.

Definition at line 317 of file QueryableVectorStreamer.cc.

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

                      {
          m_queryMaker.build();
          m_queryMaker.select( m_identity, selection );
          m_queryMaker.executeAndLoad( address );
          ret = true;
        }
        return ret;
      }


Member Data Documentation

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

Definition at line 348 of file QueryableVectorStreamer.cc.

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

Definition at line 345 of file QueryableVectorStreamer.cc.

Definition at line 347 of file QueryableVectorStreamer.cc.

Referenced by getSelectionCount(), and loadSelection().

Definition at line 346 of file QueryableVectorStreamer.cc.

Referenced by load().