Webmaster  |  Imprint 
C++ Server Pages
Main  |  License  |  Documentation  |  Download 

Result::const_iterator Class Reference

#include <tntdb/bits/result_iterator.h>

List of all members.

Public Types

typedef const value_typeconst_reference
typedef const value_typeconst_pointer

Public Member Functions

 const_iterator (const Result &r, size_type off)
bool operator== (const const_iterator &it) const
bool operator!= (const const_iterator &it) const
const_iteratoroperator++ ()
 Advances the iterator to the next element and returns the iterator to that element.
const_iterator operator++ (int)
 Advances the iterator to the next element and returns the previous iterator.
const_iterator operator-- ()
 Moves the iterator to the previous element and returns the iterator to that element.
const_iterator operator-- (int)
 Moves the iterator to the previous element and returns the previous iterator.
const_reference operator * () const
 returns a reference to the current Row-object.
const_pointer operator-> () const
 returns a pointer to the current Row-object.
const_iteratoroperator+= (difference_type n)
 Advances the iterator n elements and returns the iterator to that element.
const_iterator operator+ (difference_type n) const
 Returns a iterator, which points n elements further.
const_iteratoroperator-= (difference_type n)
 Moves the iterator n elements back and returns the iterator to that element.
const_iterator operator- (difference_type n) const
 Returns a iterator, which points n elements back.
difference_type operator- (const const_iterator &it) const


Detailed Description

This implements a constant iterator to a result-set.


Member Function Documentation

bool operator== ( const const_iterator it  )  const

Returns true, if the passed iterator points to the same row. The iterators should point to the same resultset. This is not checked. Only the offsets are considered.

bool operator!= ( const const_iterator it  )  const

Returns true, if the passed iterator points to different rows. The iterators should point to the same resultset. This is not checked. Only the offsets are considered.

difference_type operator- ( const const_iterator it  )  const

Returns the distance between 2 iterators. The iterators should point to the same resultset. This is not checked. Only the offsets are used.

Copyright © 2008 The Tntnet Development Team
Tntnet 1.6