NCBI C++ ToolKit
Public Types | Public Member Functions | Private Types | List of all members
CTypeConstIterator< C, TypeGetter > Class Template Reference

Search Toolkit Book for CTypeConstIterator

Template class for iteration on objects of class C (non-medifiable version) More...

#include <serial/iterator.hpp>

+ Inheritance diagram for CTypeConstIterator< C, TypeGetter >:
+ Collaboration diagram for CTypeConstIterator< C, TypeGetter >:

Public Types

using iterator_category = forward_iterator_tag
 
using value_type = C
 
using difference_type = ptrdiff_t
 
using pointer = C *
 
using reference = C &
 
typedef CParent::TBeginInfo TBeginInfo
 

Public Member Functions

 CTypeConstIterator (void)
 
 CTypeConstIterator (const TBeginInfo &beginInfo)
 
 CTypeConstIterator (const TBeginInfo &beginInfo, const string &filter)
 
 CTypeConstIterator (const CSerialObject &object)
 
CTypeConstIterator< C, TypeGetter > & operator= (const TBeginInfo &beginInfo)
 
const Coperator* (void) const
 
const Coperator-> (void) const
 
 CTypeConstIterator (const CTypeConstIterator &it)
 
CTypeConstIteratoroperator= (const CTypeConstIterator &it)
 
CTypeConstIteratorbegin (void)
 
CTypeConstIterator end (void)
 
CTypeConstIteratoroperator++ (void)
 
CTypeConstIterator operator++ (int)
 
bool operator== (const CTypeConstIterator &it) const
 
bool operator!= (const CTypeConstIterator &it) const
 
- Public Member Functions inherited from CTreeConstIterator
void GoRoot ()
 
bool GoParent ()
 
bool GoChild ()
 
bool GoSibling ()
 
bool GoNode (const CTreeContNodeBase *pNode)
 
bool GoAncestor (const CTreeContNodeBase *node)
 
const CTreeContNodeBaseGetNode () const
 
bool BelongSubtree (const CTreeContNodeBase *subtree_root) const
 
bool AboveNode (const CTreeContNodeBase *node) const
 
 CTreeConstIterator (const CTreeCont *tree)
 
virtual ~CTreeConstIterator ()
 

Private Types

typedef CTypeIteratorBase< CTreeConstIteratorCParent
 

Additional Inherited Members

- Protected Types inherited from CTypeIteratorBase< CTreeConstIterator >
typedef CParent::TBeginInfo TBeginInfo
 
- Protected Member Functions inherited from CTypeIteratorBase< CTreeConstIterator >
 CTypeIteratorBase (TTypeInfo needType)
 
 CTypeIteratorBase (TTypeInfo needType, const TBeginInfo &beginInfo)
 
 CTypeIteratorBase (TTypeInfo needType, const TBeginInfo &beginInfo, const string &filter)
 
virtual bool CanSelect (const CConstObjectInfo &object)
 
virtual bool CanEnter (const CConstObjectInfo &object)
 
TTypeInfo GetIteratorType (void) const
 
void Assign (const CTypeIteratorBase &it)
 

Detailed Description

template<class C, class TypeGetter = C>
class CTypeConstIterator< C, TypeGetter >

Template class for iteration on objects of class C (non-medifiable version)

Definition at line 766 of file iterator.hpp.


The documentation for this class was generated from the following file:
Modified on Wed Apr 24 14:14:09 2024 by modify_doxy.py rev. 669887