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

#include <GA_Defragment.h>

Public Member Functions

 swapInfo (GA_Size a, GA_Size b, GA_Size n, OPERATION op)
 
 swapInfo (const swapInfo &i)
 
 ~swapInfo ()
 
swapInfooperator= (const swapInfo &i)
 
bool operator== (const swapInfo &i) const
 
GA_Offset getA () const
 
GA_Offset getB () const
 
GA_Size getN () const
 
OPERATION getOp () const
 
bool operator< (const swapInfo &cmp) const
 
int compare (const swapInfo &cmp) const
 

Static Public Member Functions

static int qsortCompare (const swapInfo *a, const swapInfo *b)
 

Detailed Description

Class to hold information about a swap. Move entries from [a, a+n-1] to [b, b+n-1] Swap entries in the range [a, a+n-1] with [b, b+n-1]

Definition at line 111 of file GA_Defragment.h.

Constructor & Destructor Documentation

GA_Defragment::swapInfo::swapInfo ( GA_Size  a,
GA_Size  b,
GA_Size  n,
OPERATION  op 
)
inline

Definition at line 114 of file GA_Defragment.h.

GA_Defragment::swapInfo::swapInfo ( const swapInfo i)
inline

Definition at line 120 of file GA_Defragment.h.

GA_Defragment::swapInfo::~swapInfo ( )
inline

Definition at line 126 of file GA_Defragment.h.

Member Function Documentation

int GA_Defragment::swapInfo::compare ( const swapInfo cmp) const
inline

Definition at line 153 of file GA_Defragment.h.

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

Definition at line 140 of file GA_Defragment.h.

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

Definition at line 141 of file GA_Defragment.h.

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

Definition at line 142 of file GA_Defragment.h.

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

Definition at line 143 of file GA_Defragment.h.

bool GA_Defragment::swapInfo::operator< ( const swapInfo cmp) const
inline

Definition at line 145 of file GA_Defragment.h.

swapInfo& GA_Defragment::swapInfo::operator= ( const swapInfo i)
inline

Definition at line 127 of file GA_Defragment.h.

bool GA_Defragment::swapInfo::operator== ( const swapInfo i) const
inline

Definition at line 135 of file GA_Defragment.h.

static int GA_Defragment::swapInfo::qsortCompare ( const swapInfo a,
const swapInfo b 
)
inlinestatic

Definition at line 160 of file GA_Defragment.h.


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