HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_Defragment::const_iterator Class Reference

#include <GA_Defragment.h>

Public Member Functions

 const_iterator ()
 
 const_iterator (const const_iterator &src)
 
 ~const_iterator ()
 
GA_Offset getA () const
 Get the swap ranges. More...
 
GA_Offset getB () const
 
GA_Size getN () const
 
OPERATION getOp () const
 
const_iteratoroperator= (const const_iterator &src)
 
bool operator== (const const_iterator &src) const
 
bool atEnd () const
 
void advance ()
 
void rewind ()
 
const_iteratoroperator++ ()
 
const_iteratoroperator++ (int)
 

Friends

class GA_Defragment
 

Detailed Description

Class to iterate over all defrag operations. For example:

for (const_iterator it = frag.begin(); !it.atEnd(); ++it) {
switch (it.getOp()) {
moveRange(it.getA(), it.getB(), it.getN());
case SWAP_AB:
swapRange(it.getA(), it.getB(), it.getN());
}
}

Definition at line 180 of file GA_Defragment.h.

Constructor & Destructor Documentation

GA_Defragment::const_iterator::const_iterator ( )
inline

Definition at line 183 of file GA_Defragment.h.

GA_Defragment::const_iterator::const_iterator ( const const_iterator src)
inline

Definition at line 191 of file GA_Defragment.h.

GA_Defragment::const_iterator::~const_iterator ( )
inline

Definition at line 199 of file GA_Defragment.h.

Member Function Documentation

void GA_Defragment::const_iterator::advance ( )
inline

Definition at line 228 of file GA_Defragment.h.

bool GA_Defragment::const_iterator::atEnd ( ) const
inline

Definition at line 224 of file GA_Defragment.h.

GA_Offset GA_Defragment::const_iterator::getA ( ) const
inline

Get the swap ranges.

Definition at line 203 of file GA_Defragment.h.

GA_Offset GA_Defragment::const_iterator::getB ( ) const
inline

Definition at line 204 of file GA_Defragment.h.

GA_Size GA_Defragment::const_iterator::getN ( ) const
inline

Definition at line 205 of file GA_Defragment.h.

OPERATION GA_Defragment::const_iterator::getOp ( ) const
inline

Definition at line 206 of file GA_Defragment.h.

const_iterator& GA_Defragment::const_iterator::operator++ ( )
inline

Definition at line 241 of file GA_Defragment.h.

const_iterator& GA_Defragment::const_iterator::operator++ ( int  )
inline

Definition at line 242 of file GA_Defragment.h.

const_iterator& GA_Defragment::const_iterator::operator= ( const const_iterator src)
inline

Definition at line 208 of file GA_Defragment.h.

bool GA_Defragment::const_iterator::operator== ( const const_iterator src) const
inline

Definition at line 218 of file GA_Defragment.h.

void GA_Defragment::const_iterator::rewind ( )
inline

Definition at line 233 of file GA_Defragment.h.

Friends And Related Function Documentation

friend class GA_Defragment
friend

Definition at line 270 of file GA_Defragment.h.


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