CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::RelationalVectorLoader Class Reference

Inheritance diagram for ora::RelationalVectorLoader:
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
 RelationalVectorLoader (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema, const std::vector< int > &fullId)
virtual ~RelationalVectorLoader ()

Private Attributes

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

Detailed Description

Definition at line 279 of file QueryableVectorStreamer.cc.


Constructor & Destructor Documentation

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

Definition at line 284 of file QueryableVectorStreamer.cc.

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

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

Definition at line 292 of file QueryableVectorStreamer.cc.

            :

Member Function Documentation

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

Implements ora::IVectorLoader.

Definition at line 320 of file QueryableVectorStreamer.cc.

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

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

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

Implements ora::IVectorLoader.

Definition at line 328 of file QueryableVectorStreamer.cc.

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

Implements ora::IVectorLoader.

Definition at line 332 of file QueryableVectorStreamer.cc.

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

Implements ora::IVectorLoader.

Definition at line 298 of file QueryableVectorStreamer.cc.

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

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

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

Implements ora::IVectorLoader.

Definition at line 309 of file QueryableVectorStreamer.cc.

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

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


Member Data Documentation

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

Definition at line 339 of file QueryableVectorStreamer.cc.

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

Definition at line 337 of file QueryableVectorStreamer.cc.

Definition at line 338 of file QueryableVectorStreamer.cc.

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