NCBI C++ ToolKit
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
xml::attributes::const_iterator Class Reference

Search Toolkit Book for xml::attributes::const_iterator

Const Iterator class for accessing attribute pairs. More...

#include <misc/xmlwrapp/attributes.hpp>

+ Collaboration diagram for xml::attributes::const_iterator:

Public Types

typedef const attr value_type
 
typedef std::ptrdiff_t difference_type
 
typedef value_typepointer
 
typedef value_typereference
 
typedef std::forward_iterator_tag iterator_category
 

Public Member Functions

 const_iterator (void)
 
 const_iterator (const const_iterator &other)
 
 const_iterator (const iterator &other)
 
const_iteratoroperator= (const const_iterator &other)
 
 ~const_iterator (void)
 
reference operator* (void) const
 
pointer operator-> (void) const
 
const_iteratoroperator++ (void)
 prefix increment More...
 
const_iterator operator++ (int)
 postfix increment (avoid if possible better for performance) More...
 

Private Member Functions

 const_iterator (void *node, void *prop, bool def_prop, bool from_find)
 
void swap (const_iterator &other)
 

Private Attributes

impl::ait_implpimpl_
 

Friends

class attributes
 
bool operator== (const const_iterator &lhs, const const_iterator &rhs)
 
bool operator!= (const const_iterator &lhs, const const_iterator &rhs)
 

Detailed Description

Const Iterator class for accessing attribute pairs.

Definition at line 320 of file attributes.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 323 of file attributes.hpp.

◆ iterator_category

typedef std::forward_iterator_tag xml::attributes::const_iterator::iterator_category

Definition at line 326 of file attributes.hpp.

◆ pointer

Definition at line 324 of file attributes.hpp.

◆ reference

Definition at line 325 of file attributes.hpp.

◆ value_type

Definition at line 322 of file attributes.hpp.

Constructor & Destructor Documentation

◆ const_iterator() [1/4]

xml::attributes::const_iterator::const_iterator ( void  )

Definition at line 198 of file ait_impl.cpp.

◆ const_iterator() [2/4]

xml::attributes::const_iterator::const_iterator ( const const_iterator other)

Definition at line 213 of file ait_impl.cpp.

References pimpl_.

◆ const_iterator() [3/4]

xml::attributes::const_iterator::const_iterator ( const iterator other)

Definition at line 217 of file ait_impl.cpp.

References xml::attributes::iterator::pimpl_.

◆ ~const_iterator()

xml::attributes::const_iterator::~const_iterator ( void  )

Definition at line 232 of file ait_impl.cpp.

◆ const_iterator() [4/4]

xml::attributes::const_iterator::const_iterator ( void *  node,
void *  prop,
bool  def_prop,
bool  from_find 
)
private

Definition at line 202 of file ait_impl.cpp.

Member Function Documentation

◆ operator*()

xml::attributes::const_iterator::reference xml::attributes::const_iterator::operator* ( void  ) const

◆ operator++() [1/2]

xml::attributes::const_iterator xml::attributes::const_iterator::operator++ ( int  )

postfix increment (avoid if possible better for performance)

Definition at line 261 of file ait_impl.cpp.

References tmp.

◆ operator++() [2/2]

xml::attributes::const_iterator & xml::attributes::const_iterator::operator++ ( void  )

prefix increment

Definition at line 255 of file ait_impl.cpp.

◆ operator->()

xml::attributes::const_iterator::pointer xml::attributes::const_iterator::operator-> ( void  ) const

◆ operator=()

xml::attributes::const_iterator & xml::attributes::const_iterator::operator= ( const const_iterator other)

Definition at line 222 of file ait_impl.cpp.

References swap(), and tmp.

◆ swap()

void xml::attributes::const_iterator::swap ( const_iterator other)
private

Definition at line 228 of file ait_impl.cpp.

References pimpl_, and swap().

Friends And Related Function Documentation

◆ attributes

friend class attributes
friend

Definition at line 349 of file attributes.hpp.

◆ operator!=

bool operator!= ( const const_iterator lhs,
const const_iterator rhs 
)
friend

Definition at line 645 of file ait_impl.cpp.

◆ operator==

bool operator== ( const const_iterator lhs,
const const_iterator rhs 
)
friend

Definition at line 640 of file ait_impl.cpp.

Member Data Documentation

◆ pimpl_

impl::ait_impl* xml::attributes::const_iterator::pimpl_
private

Definition at line 346 of file attributes.hpp.

Referenced by const_iterator(), xml::operator==(), and swap().


The documentation for this class was generated from the following files:
Modified on Sat Mar 02 10:55:26 2024 by modify_doxy.py rev. 669887