CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::OMSServiceResultIterator Class Reference

#include <OMSAccess.h>

Public Member Functions

 OMSServiceResultIterator ()=delete
 
 OMSServiceResultIterator (boost::property_tree::ptree::const_iterator iter)
 
bool operator!= (const OMSServiceResultIterator &rhs)
 
OMSServiceResultRef operator* ()
 
OMSServiceResultIteratoroperator++ ()
 
bool operator== (const OMSServiceResultIterator &rhs)
 

Private Attributes

boost::property_tree::ptree::const_iterator m_iter
 

Detailed Description

Definition at line 127 of file OMSAccess.h.

Constructor & Destructor Documentation

◆ OMSServiceResultIterator() [1/2]

cond::OMSServiceResultIterator::OMSServiceResultIterator ( )
delete

◆ OMSServiceResultIterator() [2/2]

cond::OMSServiceResultIterator::OMSServiceResultIterator ( boost::property_tree::ptree::const_iterator  iter)

Definition at line 15 of file OMSAccess.cc.

15 : m_iter(iter) {}
boost::property_tree::ptree::const_iterator m_iter
Definition: OMSAccess.h:139

Member Function Documentation

◆ operator!=()

bool cond::OMSServiceResultIterator::operator!= ( const OMSServiceResultIterator rhs)

Definition at line 28 of file OMSAccess.cc.

References m_iter.

28 { return m_iter != rhs.m_iter; }
boost::property_tree::ptree::const_iterator m_iter
Definition: OMSAccess.h:139

◆ operator*()

OMSServiceResultRef cond::OMSServiceResultIterator::operator* ( )

Definition at line 17 of file OMSAccess.cc.

References m_iter.

17  {
18  auto& attributeList = m_iter->second.get_child("attributes");
19  return OMSServiceResultRef(&attributeList);
20  }
boost::property_tree::ptree::const_iterator m_iter
Definition: OMSAccess.h:139

◆ operator++()

OMSServiceResultIterator & cond::OMSServiceResultIterator::operator++ ( )

Definition at line 22 of file OMSAccess.cc.

References m_iter.

22  {
23  m_iter++;
24  return *this;
25  }
boost::property_tree::ptree::const_iterator m_iter
Definition: OMSAccess.h:139

◆ operator==()

bool cond::OMSServiceResultIterator::operator== ( const OMSServiceResultIterator rhs)

Definition at line 27 of file OMSAccess.cc.

References m_iter.

27 { return m_iter == rhs.m_iter; }
boost::property_tree::ptree::const_iterator m_iter
Definition: OMSAccess.h:139

Member Data Documentation

◆ m_iter

boost::property_tree::ptree::const_iterator cond::OMSServiceResultIterator::m_iter
private

Definition at line 139 of file OMSAccess.h.

Referenced by operator!=(), operator*(), operator++(), and operator==().