include/swkey.h File Reference

#include <swobject.h>
#include <defs.h>
#include <sysdata.h>
#include <utilstr.h>
Include dependency graph for swkey.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SWKey::LocaleCache
class  SW_POSITION
class  SWKey

Defines

#define BOTTOM   SW_POSITION(POS_BOTTOM)
#define KEYERR_OUTOFBOUNDS   1
#define POS_BOTTOM   ((char)2)
#define POS_TOP   ((char)1)
#define SWKEY_OPERATORS
#define TOP   SW_POSITION(POS_TOP)

Define Documentation

#define BOTTOM   SW_POSITION(POS_BOTTOM)

Definition at line 69 of file swkey.h.

#define KEYERR_OUTOFBOUNDS   1

Definition at line 35 of file swkey.h.

#define POS_BOTTOM   ((char)2)

Definition at line 66 of file swkey.h.

#define POS_TOP   ((char)1)

Definition at line 65 of file swkey.h.

#define SWKEY_OPERATORS
Value:
SWKey &operator =(const char *ikey) { setText(ikey); return *this; } \
  SWKey &operator =(const SWKey &ikey) { positionFrom(ikey); return *this; } \
  SWKey &operator =(SW_POSITION pos) { setPosition(pos); return *this; } \
  operator const char *() const { return getText(); } \
  bool operator ==(const SWKey &ikey) { return equals(ikey); } \
  bool operator !=(const SWKey &ikey) { return !equals(ikey); } \
  virtual bool operator >(const SWKey &ikey) { return (compare(ikey) > 0); } \
  virtual bool operator <(const SWKey &ikey) { return (compare(ikey) < 0); } \
  virtual bool operator >=(const SWKey &ikey) { return (compare(ikey) > -1); }  \
  virtual bool operator <=(const SWKey &ikey) { return (compare(ikey) < 1); } \
  SWKey &operator -=(int steps) { decrement(steps); return *this; } \
  SWKey &operator +=(int steps) { increment(steps); return *this; } \
  SWKey &operator ++()    { increment(1); return *this; } \
  SWKey  operator ++(int) { SWKey temp = *this; increment(1); return temp; } \
  SWKey &operator --()    { decrement(1); return *this; } \
  SWKey  operator --(int) { SWKey temp = *this; decrement(1); return temp; }

Definition at line 37 of file swkey.h.

#define TOP   SW_POSITION(POS_TOP)

Definition at line 68 of file swkey.h.


Generated on 18 Mar 2013 for The SWORD Project by  doxygen 1.6.1