BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::IndexClerkIter Class Reference

#include <bdlc_indexclerk.h>

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (IndexClerkIter, bslmf::IsBitwiseCopyable)
 
 IndexClerkIter ()
 Create an unbound iterator.
 
 IndexClerkIter (const int *index)
 Create an iterator referring to the specified integer index.
 
 IndexClerkIter (const IndexClerkIter &original)
 
IndexClerkIteroperator= (const IndexClerkIter &rhs)
 
IndexClerkIteroperator++ ()
 
IndexClerkIteroperator-- ()
 
int operator* () const
 

Friends

bool operator== (const IndexClerkIter &lhs, const IndexClerkIter &rhs)
 
bool operator!= (const IndexClerkIter &lhs, const IndexClerkIter &rhs)
 

Detailed Description

This class defines an in-core value-semantic iterator providing sequential read-only access to the decommissioned indices of a IndexClerk. The order of iteration is implementation dependent.

See bdlc_indexclerk

Constructor & Destructor Documentation

◆ IndexClerkIter() [1/3]

bdlc::IndexClerkIter::IndexClerkIter ( )
inline

◆ IndexClerkIter() [2/3]

bdlc::IndexClerkIter::IndexClerkIter ( const int *  index)
inline

◆ IndexClerkIter() [3/3]

bdlc::IndexClerkIter::IndexClerkIter ( const IndexClerkIter original)
inline

Create an iterator having the same value as the specified original iterator.

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION()

bdlc::IndexClerkIter::BSLMF_NESTED_TRAIT_DECLARATION ( IndexClerkIter  ,
bslmf::IsBitwiseCopyable   
)

◆ operator*()

int bdlc::IndexClerkIter::operator* ( ) const
inline

Return the value of the integer to which this iterator currently refers. The behavior is undefined unless the iterator is within the range [ begin() .. end() ).

◆ operator++()

IndexClerkIter & bdlc::IndexClerkIter::operator++ ( )
inline

Increment this iterator to refer to the next index in the corresponding sequence of decommissioned indices. Return a reference to this modifiable iterator. The behavior is undefined unless the current index is within the range [ begin() .. end() ).

◆ operator--()

IndexClerkIter & bdlc::IndexClerkIter::operator-- ( )
inline

Decrement this iterator to refer to the previous index in the corresponding sequence of decommissioned indices. Return a reference to this modifiable iterator. The behavior is undefined unless the current index is within the range ( begin() .. end() ].

◆ operator=()

IndexClerkIter & bdlc::IndexClerkIter::operator= ( const IndexClerkIter rhs)
inline

Create an iterator having the same value as the specified rhs iterator.

Friends And Related Symbol Documentation

◆ operator!=

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

Return true if lhs and rhs do not have the same value and false otherwise. Two iterators do not have the same value if they do not refer to the same element of the same container or if one has the end iterator value of a container and the other refers to an element (not the end) of the same container. The behavior is undefined unless lhs and rhs refer to the same container and are non-singular (i.e., are not default-constructed or copies of singular iterators).

◆ operator==

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

Return true if lhs and rhs have the same value and false otherwise. Two iterators have the same value if they refer to the same element of the same container or if they both have the end iterator value for the same container. The behavior is undefined unless lhs and rhs refer to the same container and are non-singular (i.e., are not default-constructed or copies of singular iterators).


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