1#ifndef __LOUT_OBJECT_HH__
2#define __LOUT_OBJECT_HH__
85 static int compareFun(
const void *p1,
const void *p2);
A class for fast concatenation of a large number of strings.
An object::Object wrapper for bool's.
int compareTo(Comparable *other)
Compare two objects, this and other.
void intoStringBuffer(misc::StringBuffer *sb)
Store a textual representation of the object in a misc::StringBuffer.
int hashValue()
Return a hash value for the object.
bool equals(Object *other)
Returns, whether two objects are equal.
Instances of a sub class of may be compared (less, greater).
virtual int compareTo(Comparable *other)=0
Compare two objects, this and other.
Used for other orders as the one defined by Comparable.
static int compareFun(const void *p1, const void *p2)
This static method may be used as compare function for qsort(3) and bsearch(3), for an array of Objec...
static Comparator * compareFunComparator
virtual int compare(Object *o1, Object *o2)=0
Compare two objects o1 and o2.
An object::Object wrapper for constant strings (char*).
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.
bool equals(Object *other)
Returns, whether two objects are equal.
ConstString(const char *str)
int compareTo(Comparable *other)
Compare two objects, this and other.
An object::Object wrapper for int's.
void intoStringBuffer(misc::StringBuffer *sb)
Store a textual representation of the object in a misc::StringBuffer.
int compareTo(Comparable *other)
Compare two objects, this and other.
bool equals(Object *other)
Returns, whether two objects are equal.
int hashValue()
Return a hash value for the object.
This is the base class for many other classes, which defines very common virtual methods.
virtual Object * clone()
Return an exact copy of the object.
virtual size_t sizeOf()
Return the number of bytes, this object totally uses.
virtual ~Object()
The destructor is defined as virtual (but not abstract), so that destruction of Object's works proper...
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 int hashValue()
Return a hash value for the object.
virtual bool equals(Object *other)
Returns, whether two objects are equal.
size_t sizeOf()
Return the number of bytes, this object totally uses.
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.
bool equals(Object *other)
Returns, whether two objects are equal.
Pair(Object *first, Object *second)
An object::Object wrapper for void pointers.
int hashValue()
Return a hash value for the object.
bool equals(Object *other)
Returns, whether two objects are equal.
void intoStringBuffer(misc::StringBuffer *sb)
Store a textual representation of the object in a misc::StringBuffer.
int compare(Object *o1, Object *o2)
Compare two objects o1 and o2.
An object::Object wrapper for strings (char*).
TypedPair(F *first, S *second)
A typed version of object::Pointer.
StandardComparator standardComparator