CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::Query< Tp > Class Template Reference

#include <QueryableVector.h>

Inheritance diagram for ora::Query< Tp >:
ora::LoaderClient

List of all members.

Public Member Functions

template<typename Prim >
void addSelection (const std::string &dataMemberName, SelectionItemType stype, Prim selectionData)
size_t count ()
Range< Tp > execute ()
 Query (boost::shared_ptr< IVectorLoader > &loader)
virtual ~Query ()

Private Attributes

Selection m_selection

Detailed Description

template<typename Tp>
class ora::Query< Tp >

Definition at line 48 of file QueryableVector.h.


Constructor & Destructor Documentation

template<typename Tp>
ora::Query< Tp >::Query ( boost::shared_ptr< IVectorLoader > &  loader) [explicit]

Definition at line 53 of file QueryableVectorImpl.h.

template<typename Tp>
virtual ora::Query< Tp >::~Query ( ) [inline, virtual]

Definition at line 52 of file QueryableVector.h.


Member Function Documentation

template<class Tp >
template<typename Prim >
void ora::Query< Tp >::addSelection ( const std::string &  dataMemberName,
ora::SelectionItemType  stype,
Prim  selectionData 
)

Definition at line 57 of file QueryableVectorImpl.h.

                                                                                                                                       {
  m_selection.addDataItem(dataMemberName, stype, selectionData);
}
template<class Tp >
size_t ora::Query< Tp >::count ( void  )

Definition at line 61 of file QueryableVectorImpl.h.

                                              {
  return loader()->getSelectionCount( m_selection );
}
template<class Tp >
ora::Range< Tp > ora::Query< Tp >::execute ( )

Definition at line 65 of file QueryableVectorImpl.h.

                                                      {
  boost::shared_ptr<QueryableVectorData<Tp> > newData ( new QueryableVectorData<Tp> );
  loader()->loadSelection( m_selection, const_cast<void*>(newData->storageAddress()) );
  return Range<Tp>( newData );
}

Member Data Documentation

template<typename Tp>
Selection ora::Query< Tp >::m_selection [private]

Definition at line 62 of file QueryableVector.h.