My Project
Public Member Functions | Private Member Functions | Private Attributes
IteratedFor Class Reference

#include <fac_iterfor.h>

Public Member Functions

 IteratedFor (int from, int to, int max)
 
 IteratedFor (const IteratedFor &)
 
 ~IteratedFor ()
 
IteratedForoperator= (const IteratedFor &)
 
int from () const
 
int to () const
 
int n () const
 
int max () const
 
void nextiteration ()
 
void operator++ ()
 
void operator++ (int)
 
bool iterations_left () const
 
int operator[] (int) const
 

Private Member Functions

void fill (int from, int n)
 

Private Attributes

int MAX
 
int FROM
 
int TO
 
int N
 
bool last
 
int * index
 
int * imax
 

Detailed Description

Definition at line 18 of file fac_iterfor.h.

Constructor & Destructor Documentation

◆ IteratedFor() [1/2]

IteratedFor::IteratedFor ( int  from,
int  to,
int  max 
)

◆ IteratedFor() [2/2]

IteratedFor::IteratedFor ( const IteratedFor )

◆ ~IteratedFor()

IteratedFor::~IteratedFor ( )

Member Function Documentation

◆ fill()

void IteratedFor::fill ( int  from,
int  n 
)
private

◆ from()

int IteratedFor::from ( ) const
inline

Definition at line 34 of file fac_iterfor.h.

34{ return FROM; }

◆ iterations_left()

bool IteratedFor::iterations_left ( ) const
inline

Definition at line 41 of file fac_iterfor.h.

41{ return ! last; }

◆ max()

int IteratedFor::max ( ) const
inline

Definition at line 37 of file fac_iterfor.h.

37{ return MAX; }

◆ n()

int IteratedFor::n ( ) const
inline

Definition at line 36 of file fac_iterfor.h.

36{ return N; };

◆ nextiteration()

void IteratedFor::nextiteration ( )

◆ operator++() [1/2]

void IteratedFor::operator++ ( )
inline

Definition at line 39 of file fac_iterfor.h.

39{ nextiteration(); }
void nextiteration()

◆ operator++() [2/2]

void IteratedFor::operator++ ( int  )
inline

Definition at line 40 of file fac_iterfor.h.

40{ nextiteration(); }

◆ operator=()

IteratedFor & IteratedFor::operator= ( const IteratedFor )

◆ operator[]()

int IteratedFor::operator[] ( int  ) const

◆ to()

int IteratedFor::to ( ) const
inline

Definition at line 35 of file fac_iterfor.h.

35{ return TO; }

Field Documentation

◆ FROM

int IteratedFor::FROM
private

Definition at line 22 of file fac_iterfor.h.

◆ imax

int* IteratedFor::imax
private

Definition at line 27 of file fac_iterfor.h.

◆ index

int* IteratedFor::index
private

Definition at line 26 of file fac_iterfor.h.

◆ last

bool IteratedFor::last
private

Definition at line 25 of file fac_iterfor.h.

◆ MAX

int IteratedFor::MAX
private

Definition at line 21 of file fac_iterfor.h.

◆ N

int IteratedFor::N
private

Definition at line 24 of file fac_iterfor.h.

◆ TO

int IteratedFor::TO
private

Definition at line 23 of file fac_iterfor.h.


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