Dillo v3.1.1-99-gf3103cc4
|
#include <ooffloatsmgr.hh>
Public Member Functions | |
CompareGBAndExtIndex (OOFFloatsMgr *oofm) | |
int | compare (Object *o1, Object *o2) |
Compare two objects o1 and o2. | |
Public Member Functions inherited from lout::object::Object | |
virtual | ~Object () |
The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. | |
virtual bool | equals (Object *other) |
Returns, whether two objects are equal. | |
virtual int | hashValue () |
Return a hash value for the object. | |
virtual Object * | clone () |
Return an exact copy of the object. | |
virtual void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. | |
Private Attributes | |
OOFFloatsMgr * | oofm |
Additional Inherited Members | |
Static Public Member Functions inherited from lout::object::Comparator | |
static int | compareFun (const void *p1, const void *p2) |
This static method may be used as compare function for qsort(3) and bsearch(3), for an array of Object* (Object*[] or Object**). | |
Static Public Attributes inherited from lout::object::Comparator | |
static Comparator * | compareFunComparator = NULL |
Definition at line 59 of file ooffloatsmgr.hh.
|
inline |
Definition at line 65 of file ooffloatsmgr.hh.
References oofm.
|
virtual |
Compare two objects o1 and o2.
Return a value < 0, when o1 is less than o2, a value > 0, when o1 is greater than o2, or 0, when o1 and o2 are equal.
If o1.equals(o2) (as defined in Object), compare(o1, o2) must be 0, but, unlike you may expect, the reversed is not necessarily true. This method returns 0, if, according to the rules for sorting, there is no difference, but there may still be differences (not relevant for sorting), which "equals" will care about.
Implements lout::object::Comparator.
Definition at line 129 of file ooffloatsmgr.cc.
References DBG_OBJ_ENTER_O, DBG_OBJ_LEAVE_VAL_O, DBG_OBJ_MSGF_O, dw::oof::OOFFloatsMgr::Float::externalIndex, dw::oof::OOFFloatsMgr::Float::generator, dw::core::Widget::generator, dw::oof::OOFFloatsMgr::TBInfo::getOOFAwareWidget(), dw::oof::OOFFloatsMgr::Float::index, dw::oof::OOFFloatsMgr::TBInfo::index, and dw::oof::OOFFloatsMgr::TBInfo::parent.
Referenced by dw::oof::OOFFloatsMgr::SortedFloatsVector::findFloatIndex().
|
private |
Definition at line 62 of file ooffloatsmgr.hh.
Referenced by CompareGBAndExtIndex().