Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes
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::setAscending ( bool  asc)
inline

Definition at line 33 of file qgscomposerattributetable.h.

References mAscending.

Referenced by QgsComposerAttributeTable::getFeatureAttributes().

void QgsComposerAttributeTableCompare::setSortColumn ( int  col)
inline

Member Data Documentation

bool QgsComposerAttributeTableCompare::mAscending
private

Definition at line 36 of file qgscomposerattributetable.h.

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

int QgsComposerAttributeTableCompare::mCurrentSortColumn
private

Definition at line 35 of file qgscomposerattributetable.h.

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


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