QgsComposerAttributeTableCompare Class Reference

Helper class for sorting, takes into account sorting column and ascending / descending. More...

#include <qgscomposerattributetable.h>

List of all members.

Public Member Functions

 QgsComposerAttributeTableCompare ()
bool operator() (const QgsAttributeMap &m1, const QgsAttributeMap &m2)
void setSortColumn (int col)
void setAscending (bool asc)

Private Attributes

int mCurrentSortColumn
bool mAscending


Detailed Description

Helper class for sorting, takes into account sorting column and ascending / descending.

Definition at line 27 of file qgscomposerattributetable.h.


Constructor & Destructor Documentation

QgsComposerAttributeTableCompare::QgsComposerAttributeTableCompare (  ) 

Definition at line 23 of file qgscomposerattributetable.cpp.


Member Function Documentation

bool QgsComposerAttributeTableCompare::operator() ( const QgsAttributeMap m1,
const QgsAttributeMap m2 
)

Definition at line 28 of file qgscomposerattributetable.cpp.

References mAscending, and mCurrentSortColumn.

void QgsComposerAttributeTableCompare::setSortColumn ( int  col  )  [inline]

void QgsComposerAttributeTableCompare::setAscending ( bool  asc  )  [inline]

Definition at line 33 of file qgscomposerattributetable.h.

References mAscending.

Referenced by QgsComposerAttributeTable::getFeatureAttributes().


Member Data Documentation

Definition at line 35 of file qgscomposerattributetable.h.

Referenced by operator()(), and setSortColumn().

Definition at line 36 of file qgscomposerattributetable.h.

Referenced by operator()(), and setAscending().


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

Generated on Sat Feb 4 19:17:25 2012 for Quantum GIS API Documentation by  doxygen 1.5.6