Public Types | Public Member Functions | Private Member Functions | Private Attributes

PD_RDFModelIterator Class Reference

#include <pd_DocumentRDF.h>

List of all members.

Public Types

typedef const PD_RDFModelIteratorself_constref
typedef PD_RDFModelIteratorself_reference
typedef PD_RDFModelIterator self_type

Public Member Functions

 PD_RDFModelIterator ()
 ~PD_RDFModelIterator ()
 PD_RDFModelIterator (PD_RDFModelHandle model, const PP_AttrProp *AP)
self_reference operator++ ()
bool operator== (self_constref other)
PD_RDFModelIteratoroperator= (const PD_RDFModelIterator &other)
self_type operator++ (int)
bool operator!= (self_constref other)
reference operator* ()
self_reference moveToNextSubject ()
void moveToNextSubjectReadPO ()
bool moveToNextSubjectHavePOCol ()

Private Member Functions

void setup_pocol ()

Private Attributes

PD_RDFModelHandle m_model
const PP_AttrPropm_AP
bool m_end
size_t m_apPropertyNumber
std::string m_subject
POCol m_pocol
POCol::iterator m_pocoliter
PD_RDFStatement m_current

Member Typedef Documentation

Constructor & Destructor Documentation

PD_RDFModelIterator::PD_RDFModelIterator (  ) 
PD_RDFModelIterator::~PD_RDFModelIterator (  ) 

References m_model, and xxx_UT_DEBUGMSG.

PD_RDFModelIterator::PD_RDFModelIterator ( PD_RDFModelHandle  model,
const PP_AttrProp AP 

References operator++(), and xxx_UT_DEBUGMSG.

Member Function Documentation

PD_RDFModelIterator::self_reference PD_RDFModelIterator::moveToNextSubject (  ) 
bool PD_RDFModelIterator::moveToNextSubjectHavePOCol (  ) 

References m_pocol.

void PD_RDFModelIterator::moveToNextSubjectReadPO (  ) 
bool PD_RDFModelIterator::operator!= ( self_constref  other  )  [inline]

References operator==().

reference PD_RDFModelIterator::operator* (  )  [inline]
self_type PD_RDFModelIterator::operator++ ( int   )  [inline]
PD_RDFModelIterator::self_reference PD_RDFModelIterator::operator++ (  ) 

We have to walk over each AP using m_apiter until we hit m_apenditer

For each of these AP; we have to walk over all the properties ( each prop is a subject -> list[ pred+obj ] )

For each of these properties; we have to walk over all the pairs in the pocol.


References PP_AttrProp::getPropertyCount(), m_AP, m_apPropertyNumber, m_current, m_end, m_pocol, m_pocoliter, m_subject, and setup_pocol().

Referenced by PD_RDFModelIterator().

PD_RDFModelIterator & PD_RDFModelIterator::operator= ( const PD_RDFModelIterator other  ) 
bool PD_RDFModelIterator::operator== ( self_constref  other  ) 
void PD_RDFModelIterator::setup_pocol (  )  [private]

Member Data Documentation

Referenced by operator=(), and ~PD_RDFModelIterator().

POCol::iterator PD_RDFModelIterator::m_pocoliter [private]
std::string PD_RDFModelIterator::m_subject [private]

The documentation for this class was generated from the following files: