Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
dw::oof::OOFFloatsMgr::SortedFloatsVector Class Reference

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< Floatiterator ()
 
int size ()
 
Floatget (int pos)
 
void clear ()
 

Private Attributes

OOFFloatsMgroofm
 
Side side
 
- Private Attributes inherited from lout::container::typed::Collection< T >
untyped::Collectionbase
 

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 Objectclone ()
 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SortedFloatsVector()

dw::oof::OOFFloatsMgr::SortedFloatsVector::SortedFloatsVector ( OOFFloatsMgr oofm,
Side  side,
bool  ownerOfObjects 
)
inline

Definition at line 105 of file ooffloatsmgr.hh.

References oofm, and side.

Member Function Documentation

◆ clear()

void dw::oof::OOFFloatsMgr::SortedFloatsVector::clear ( )
inline

Definition at line 123 of file ooffloatsmgr.hh.

References lout::container::typed::Vector< T >::clear().

◆ find()

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.

◆ findFirst()

int dw::oof::OOFFloatsMgr::SortedFloatsVector::findFirst ( int  y,
int  h,
OOFAwareWidget lastGB,
int  lastExtIndex,
int *  lastReturn 
)

◆ findFloatIndex()

int dw::oof::OOFFloatsMgr::SortedFloatsVector::findFloatIndex ( OOFAwareWidget lastGB,
int  lastExtIndex 
)

◆ findLastBeforeSideSpanningIndex()

int dw::oof::OOFFloatsMgr::SortedFloatsVector::findLastBeforeSideSpanningIndex ( int  sideSpanningIndex)

◆ get()

◆ iterator()

lout::container::typed::Iterator< Float > dw::oof::OOFFloatsMgr::SortedFloatsVector::iterator ( )
inline

◆ put()

void dw::oof::OOFFloatsMgr::SortedFloatsVector::put ( Float vloat)

◆ size()

Member Data Documentation

◆ oofm

OOFFloatsMgr* dw::oof::OOFFloatsMgr::SortedFloatsVector::oofm
private

Definition at line 101 of file ooffloatsmgr.hh.

Referenced by SortedFloatsVector().

◆ side

Side dw::oof::OOFFloatsMgr::SortedFloatsVector::side
private

Definition at line 102 of file ooffloatsmgr.hh.

Referenced by SortedFloatsVector().


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