Dillo v3.1.1-46-g8a360e32
|
#include <iterator.hh>
Public Types | |
enum | { START = 257 , END = 258 } |
Public Member Functions | |
CharIterator (Widget *widget, bool followReferences) | |
... | |
~CharIterator () | |
lout::object::Object * | clone () |
Return an exact copy of the object. | |
int | compareTo (lout::object::Comparable *other) |
Compare two objects, this and other. | |
bool | next () |
bool | prev () |
int | getChar () |
CharIterator * | cloneCharIterator () |
![]() | |
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 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. | |
Static Public Member Functions | |
static void | highlight (CharIterator *it1, CharIterator *it2, HighlightLayer layer) |
static void | unhighlight (CharIterator *it1, CharIterator *it2, HighlightLayer layer) |
static void | scrollTo (CharIterator *it1, CharIterator *it2, HPosition hpos, VPosition vpos) |
Private Member Functions | |
CharIterator () | |
Private Attributes | |
DeepIterator * | it |
int | pos |
int | ch |
Definition at line 230 of file iterator.hh.
anonymous enum |
Enumerator | |
---|---|
START | |
END |
Definition at line 235 of file iterator.hh.
|
private |
Definition at line 736 of file iterator.cc.
dw::core::CharIterator::CharIterator | ( | Widget * | widget, |
bool | followReferences | ||
) |
...
If followReferences is true, only the reference are followed, when the container and generator for a widget is different. If false, only the container is followed.
Definition at line 748 of file iterator.cc.
References dw::core::DeepIterator::DeepIterator(), dw::core::Widget::iterator(), dw::core::Content::maskForSelection(), and dw::core::Iterator::unref().
dw::core::CharIterator::~CharIterator | ( | ) |
Definition at line 757 of file iterator.cc.
|
virtual |
Return an exact copy of the object.
Reimplemented from lout::object::Object.
Definition at line 763 of file iterator.cc.
References ch, dw::core::DeepIterator::cloneDeepIterator(), it, and pos.
Referenced by cloneCharIterator().
|
inline |
Definition at line 253 of file iterator.hh.
References clone().
Referenced by dw::core::FindtextState::search(), and dw::core::FindtextState::unhighlight().
|
virtual |
Compare two objects, this and other.
Return a value < 0, when this is less than other, a value > 0, when this is greater than other, or 0, when this and other are equal.
If c1.equals(c2) (as defined in Object), c1.compareTo(c2) 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::Comparable.
Definition at line 772 of file iterator.cc.
References lout::object::Comparable::compareTo(), it, and pos.
|
inline |
Definition at line 252 of file iterator.hh.
References ch.
Referenced by highlight(), and dw::core::FindtextState::search0().
|
static |
Definition at line 857 of file iterator.cc.
References dw::core::DeepIterator::cloneDeepIterator(), dw::core::DeepIterator::compareTo(), END, getChar(), dw::core::DeepIterator::getContent(), dw::core::DeepIterator::highlight(), it, dw::core::DeepIterator::next(), pos, prev(), dw::core::Content::TEXT, dw::core::Content::text, and dw::core::Content::type.
Referenced by dw::core::FindtextState::search().
bool dw::core::CharIterator::next | ( | ) |
Definition at line 782 of file iterator.cc.
References dw::core::Content::BREAK, dw::core::DeepIterator::next(), and dw::core::Content::TEXT.
Referenced by dw::core::FindtextState::search(), and dw::core::FindtextState::search0().
bool dw::core::CharIterator::prev | ( | ) |
Definition at line 821 of file iterator.cc.
References dw::core::Content::BREAK, dw::core::DeepIterator::prev(), and dw::core::Content::TEXT.
Referenced by highlight(), dw::core::FindtextState::search(), dw::core::FindtextState::search0(), and dw::core::FindtextState::unhighlight().
|
inlinestatic |
Definition at line 260 of file iterator.hh.
References it, pos, and dw::core::DeepIterator::scrollTo().
Referenced by dw::core::FindtextState::search().
|
static |
Definition at line 887 of file iterator.cc.
References dw::core::DeepIterator::cloneDeepIterator(), dw::core::DeepIterator::compareTo(), it, dw::core::DeepIterator::next(), and dw::core::DeepIterator::unhighlight().
Referenced by dw::core::FindtextState::unhighlight().
|
private |
Definition at line 239 of file iterator.hh.
|
private |
Definition at line 238 of file iterator.hh.
Referenced by clone(), compareTo(), highlight(), scrollTo(), and unhighlight().
|
private |
Definition at line 239 of file iterator.hh.
Referenced by clone(), compareTo(), highlight(), and scrollTo().