iterator< C > Class Template Reference

#include <iterator.hpp>

List of all members.

Public Types

Public Member Functions

Protected Attributes

Friends


Detailed Description

template<typename C>
class mmx::iterator< C >

Definition at line 65 of file iterator.hpp.


Member Typedef Documentation

typedef C value_type

Definition at line 66 of file iterator.hpp.


Constructor & Destructor Documentation

iterator ( iterator_rep< C > *  rep2  )  [inline]

Definition at line 95 of file iterator.hpp.

00097 { return it.rep->is_busy (); }

iterator ( const iterator_rep< C > *  rep2,
bool  with_inc 
) [inline]

Definition at line 95 of file iterator.hpp.

00097 { return it.rep->is_busy (); }

iterator ( const iterator< C > &  x  )  [inline]

Definition at line 95 of file iterator.hpp.

00097 { return it.rep->is_busy (); }

~iterator (  )  [inline]

Definition at line 95 of file iterator.hpp.

00097 { return it.rep->is_busy (); }

iterator (  )  [inline]

Definition at line 255 of file iterator.hpp.

References mmx::C, Format, and iterator< C >::rep.

00255                     {
00256   C* a= mmx_new<C> (0);
00257   rep= new finite_iterator_rep<C> (a, 0, Format (no_format ()));
00258 }

iterator ( const format< C > &  fm  )  [inline]

Definition at line 261 of file iterator.hpp.

References mmx::C, and iterator< C >::rep.

00261                                     {
00262   C* a= mmx_new<C> (0);
00263   rep= new finite_iterator_rep<C> (a, 0, fm);
00264 }

iterator ( const C c  )  [inline]

Definition at line 267 of file iterator.hpp.

References mmx::C, mmx::get_format(), and iterator< C >::rep.

00267                               {
00268   C* a= mmx_new<C> (1);
00269   a[0]= c;
00270   rep= new finite_iterator_rep<C> (a, 1, get_format (c));
00271 }


Member Function Documentation

void operator delete ( void *  ptr,
size_t  sz 
) [inline]

Definition at line 66 of file iterator.hpp.

00067 :
  iterator ();

void operator delete[] ( void *  ptr,
size_t  sz 
) [inline]

Definition at line 66 of file iterator.hpp.

00067 :
  iterator ();

void* operator new ( size_t  sz,
void *  where 
) [inline]

Definition at line 66 of file iterator.hpp.

00067 :
  iterator ();

void* operator new ( size_t  sz  )  [inline]

Definition at line 66 of file iterator.hpp.

00067 :
  iterator ();

void* operator new[] ( size_t  sz,
void *  where 
) [inline]

Definition at line 66 of file iterator.hpp.

00067 :
  iterator ();

void* operator new[] ( size_t  sz  )  [inline]

Definition at line 66 of file iterator.hpp.

00067 :
  iterator ();

C operator* (  )  const [inline]

Definition at line 71 of file iterator.hpp.

00071 { return rep->current(); }

const iterator<C>& operator++ (  )  const [inline]

Definition at line 72 of file iterator.hpp.

00072                                        {
00073     /*
00074     if (rep->ref_count>1) {
00075       rep->ref_count--;
00076       *(const_cast<Iterator_rep**> (&rep))= rep->clone ();
00077     }
00078     */
00079     rep->advance(); return *this; }

const iterator<C>& operator-- (  )  const [inline]

Definition at line 80 of file iterator.hpp.

00080                                        {
00081     /*
00082     if (rep->ref_count>1) {
00083       rep->ref_count--;
00084       *(const_cast<Iterator_rep**> (&rep))= rep->clone ();
00085     }
00086     */
00087     rep->regress(); return *this; }

iterator_rep< C > * operator-> (  )  [inline]

Definition at line 95 of file iterator.hpp.

00097 { return it.rep->is_busy (); }

const iterator_rep< C > * operator-> (  )  const [inline]

Definition at line 95 of file iterator.hpp.

00097 { return it.rep->is_busy (); }

iterator< C > & operator= ( const iterator< C > &  x  )  [inline]

Definition at line 95 of file iterator.hpp.

00097 { return it.rep->is_busy (); }

void secure (  )  [inline]

Definition at line 95 of file iterator.hpp.

00097 { return it.rep->is_busy (); }


Friends And Related Function Documentation

bool busy ( const iterator< C > &  it  )  [friend]
iterator<C> copy ( const iterator< C > &  it  )  [friend]
bool done ( const iterator< C > &  it  )  [friend]
nat exact_hash ( const iterator< C > &  it  )  [friend]
nat hash ( const iterator< C > &  it  )  [friend]
bool init ( const iterator< C > &  it  )  [friend]

Member Data Documentation

iterator_rep< C >* rep [protected]

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

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1