Dillo v3.1.1-119-g140d9ebd
|
This list is kept sorted. More...
Public Member Functions | |
SortedFloatsVector (OOFFloatsMgr *oofm, Side side, bool ownerOfObjects) | |
int | findFloatIndex (OOFAwareWidget *lastGB, int lastExtIndex) |
int | find (int y, int start, int end) |
y is given relative to the container. | |
int | findFirst (int y, int h, OOFAwareWidget *lastGB, int lastExtIndex, int *lastReturn) |
int | findLastBeforeSideSpanningIndex (int sideSpanningIndex) |
void | put (Float *vloat) |
lout::container::typed::Iterator< Float > | iterator () |
int | size () |
Float * | get (int pos) |
void | clear () |
Private Attributes | |
OOFFloatsMgr * | oofm |
Side | side |
Private Attributes inherited from lout::container::typed::Collection< T > | |
untyped::Collection * | base |
Additional Inherited Members | |
Private Member Functions inherited from lout::container::typed::Vector< Float > | |
Vector (int initSize, bool ownerOfObjects) | |
void | put (Float *newElement, int newPos=-1) |
void | insert (Float *newElement, int pos) |
int | insertSorted (Float *newElement, object::Comparator *comparator=&object::standardComparator) |
void | remove (int pos) |
Float * | get (int pos) const |
void | clear () |
void | sort (object::Comparator *comparator=&object::standardComparator) |
int | bsearch (Float *key, bool mustExist, int start, int end, object::Comparator *comparator=&object::standardComparator) |
int | bsearch (Float *key, bool mustExist, object::Comparator *comparator=&object::standardComparator) |
Private Member Functions inherited from lout::container::typed::Collection< T > | |
Collection () | |
~Collection () | |
bool | equals (Object *other) |
Returns, whether two objects are equal. | |
int | hashValue () |
Return a hash value for the object. | |
void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. | |
Iterator< T > | iterator () |
int | size () |
Private 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 Object * | clone () |
Return an exact copy of the object. | |
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. | |
This list is kept sorted.
To prevent accessing methods of the base class in an uncontrolled way, the inheritance is private, not public; this means that all methods must be delegated (see iterator(), size() etc. below.)
TODO Update comment: still sorted, but ...
More: add() and change() may check order again.
Definition at line 98 of file ooffloatsmgr.hh.
|
inline |
Definition at line 105 of file ooffloatsmgr.hh.
|
inline |
Definition at line 123 of file ooffloatsmgr.hh.
References lout::container::typed::Vector< T >::clear().
int dw::oof::OOFFloatsMgr::SortedFloatsVector::find | ( | int | y, |
int | start, | ||
int | end | ||
) |
y
is given relative to the container.
Definition at line 229 of file ooffloatsmgr.cc.
References DBG_OBJ_ENTER_O, DBG_OBJ_LEAVE_VAL_O, and dw::oof::OOFFloatsMgr::Float::yReal.
int dw::oof::OOFFloatsMgr::SortedFloatsVector::findFirst | ( | int | y, |
int | h, | ||
OOFAwareWidget * | lastGB, | ||
int | lastExtIndex, | ||
int * | lastReturn | ||
) |
Definition at line 242 of file ooffloatsmgr.cc.
References DBG_OBJ_ENTER_O, DBG_OBJ_LEAVE_VAL_O, and DBG_OBJ_MSGF_O.
Referenced by dw::oof::OOFFloatsMgr::getBorder(), dw::oof::OOFFloatsMgr::getFloatHeight(), and dw::oof::OOFFloatsMgr::hasFloat().
int dw::oof::OOFFloatsMgr::SortedFloatsVector::findFloatIndex | ( | OOFAwareWidget * | lastGB, |
int | lastExtIndex | ||
) |
Definition at line 184 of file ooffloatsmgr.cc.
References dw::oof::OOFFloatsMgr::Float::CompareGBAndExtIndex::compare(), DBG_OBJ_ENTER_O, DBG_OBJ_LEAVE_VAL_O, and dw::oof::OOFFloatsMgr::Float::index.
Referenced by dw::oof::OOFFloatsMgr::getClearPosition().
int dw::oof::OOFFloatsMgr::SortedFloatsVector::findLastBeforeSideSpanningIndex | ( | int | sideSpanningIndex | ) |
Definition at line 278 of file ooffloatsmgr.cc.
References dw::oof::OOFFloatsMgr::Float::sideSpanningIndex.
Referenced by dw::oof::OOFFloatsMgr::tellPosition1().
|
inline |
Definition at line 121 of file ooffloatsmgr.hh.
References lout::container::typed::Vector< T >::get().
Referenced by dw::oof::OOFFloatsMgr::containerSizeChangedForChildren(), dw::oof::OOFFloatsMgr::drawFloats(), dw::oof::OOFFloatsMgr::getClearPosition(), dw::oof::OOFFloatsMgr::getFloatsExtremes(), dw::oof::OOFFloatsMgr::getFloatWidgetAtPoint(), dw::oof::OOFFloatsMgr::getWidget(), dw::oof::OOFFloatsMgr::markSizeChange(), dw::oof::OOFFloatsMgr::sizeAllocateFloats(), and dw::oof::OOFFloatsMgr::tellPosition1().
|
inline |
Definition at line 117 of file ooffloatsmgr.hh.
References lout::container::typed::Collection< T >::iterator().
void dw::oof::OOFFloatsMgr::SortedFloatsVector::put | ( | Float * | vloat | ) |
Definition at line 287 of file ooffloatsmgr.cc.
References dw::oof::OOFFloatsMgr::Float::index, and lout::container::typed::Vector< T >::put().
Referenced by dw::oof::OOFFloatsMgr::addWidgetOOF().
|
inline |
Definition at line 119 of file ooffloatsmgr.hh.
References lout::container::typed::Collection< T >::size().
Referenced by dw::oof::OOFFloatsMgr::addWidgetOOF(), dw::oof::OOFFloatsMgr::containerSizeChangedForChildren(), dw::oof::OOFFloatsMgr::drawFloats(), dw::oof::OOFFloatsMgr::getFloatsExtremes(), dw::oof::OOFFloatsMgr::getFloatWidgetAtPoint(), dw::oof::OOFFloatsMgr::getNumWidgets(), dw::oof::OOFFloatsMgr::getWidget(), dw::oof::OOFFloatsMgr::OOFFloatsMgr(), and dw::oof::OOFFloatsMgr::sizeAllocateFloats().
|
private |
Definition at line 101 of file ooffloatsmgr.hh.
Referenced by SortedFloatsVector().
|
private |
Definition at line 102 of file ooffloatsmgr.hh.
Referenced by SortedFloatsVector().