Dillo
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
dw::core::CharIterator Class Reference

#include <iterator.hh>

Public Types

enum  { START = 257, END = 258 }
 

Public Member Functions

 CharIterator (Widget *widget, bool followReferences)
 ... More...
 
 ~CharIterator ()
 
lout::object::Objectclone ()
 Return an exact copy of the object. More...
 
int compareTo (lout::object::Comparable *other)
 Compare two objects, this and other. More...
 
bool next ()
 
bool prev ()
 
int getChar ()
 
CharIteratorcloneCharIterator ()
 
- 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. More...
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal. More...
 
virtual int hashValue ()
 Return a hash value for the object. More...
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer. More...
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object. More...
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses. More...
 

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

DeepIteratorit
 
int pos
 
int ch
 

Member Enumeration Documentation

anonymous enum
Enumerator
START 
END 

Constructor & Destructor Documentation

dw::core::CharIterator::CharIterator ( )
private
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.

References dw::core::DeepIterator::DeepIterator(), dw::core::Widget::iterator(), dw::core::Content::maskForSelection(), and dw::core::Iterator::unref().

dw::core::CharIterator::~CharIterator ( )

Member Function Documentation

object::Object * dw::core::CharIterator::clone ( )
virtual

Return an exact copy of the object.

Reimplemented from lout::object::Object.

References ch, dw::core::DeepIterator::cloneDeepIterator(), it, and pos.

Referenced by cloneCharIterator().

CharIterator* dw::core::CharIterator::cloneCharIterator ( )
inline
int dw::core::CharIterator::compareTo ( lout::object::Comparable other)
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.

References lout::object::Comparable::compareTo(), it, and pos.

int dw::core::CharIterator::getChar ( )
inline

References ch.

Referenced by highlight(), and dw::core::FindtextState::search0().

void dw::core::CharIterator::highlight ( CharIterator it1,
CharIterator it2,
HighlightLayer  layer 
)
static
bool dw::core::CharIterator::next ( )
bool dw::core::CharIterator::prev ( )
static void dw::core::CharIterator::scrollTo ( CharIterator it1,
CharIterator it2,
HPosition  hpos,
VPosition  vpos 
)
inlinestatic
void dw::core::CharIterator::unhighlight ( CharIterator it1,
CharIterator it2,
HighlightLayer  layer 
)
static

Member Data Documentation

int dw::core::CharIterator::ch
private

Referenced by clone(), and getChar().

DeepIterator* dw::core::CharIterator::it
private
int dw::core::CharIterator::pos
private

Referenced by clone(), compareTo(), highlight(), and scrollTo().


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