#include <ObjectTable.h>
Public Member Functions | |
ObjectTable () | |
ObjectTable (const ObjectTable &Coll) | |
ObjectTable (const JString &xml) | |
ObjectTable (XMLNode *node) | |
virtual | ~ObjectTable () |
Object * | clone () const |
bool | isCollection () |
bool | unitTest () |
virtual unsigned long | getPayloadSize () const |
Get total size of payload. | |
bool | addAll (const ObjectTable *c) |
bool | copyAll (const ObjectTable *c) |
bool | takeAll (ObjectTable *c) |
bool | addAll (const ObjectTable &c) |
bool | copyAll (const ObjectTable &c) |
bool | takeAll (ObjectTable &c) |
bool | addAll (const CollectionEntry *f, bool copy=false) |
const ObjectTable & | operator= (const ObjectTable &c) |
bool | equals (const Object *o2) const |
bool | operator== (ObjectTable &c) |
bool | operator!= (ObjectTable &c) |
int | getCount () const |
int | getPos (const Object *obj) const |
int | getPosKey (const Object *key) const |
bool | containsKey (const Object *key) const |
bool | contains (const Object *value) const |
bool | removeFirst () |
bool | removeLast () |
bool | remove (int pos) |
bool | removeAll () |
bool | removeAllNoDelete () |
bool | removeNoDelete (int pos) |
bool | removeNoDelete (const Object *key) |
int | removeNoDelete (const Object *value, bool removeAll) |
ObjectCollection * | getAllKeysCopy () |
JString | toHTML () |
JString | toXML () |
bool | fromXML (const JString &xml) |
bool | fromXML (XMLNode *node) |
JString | print () const |
JString | printListLine (const JString &separator, const JString &equalsign=" = ", const JString "es="") const |
bool | sortKeys () |
bool | sortValues () |
bool | sortKeysReverse () |
Get the binary data containing objects. | |
bool | sortValuesReverse () |
bool | sortRandomMix () |
void | noDelete () |
void | doDelete () |
int | addAndReturnPosition (Object *key, Object *value) |
ObjectCollection * | getAllBetweenKeys (const Object *key1, const Object *key2) |
ObjectCollection * | getAllBetween (const Object *value1, const Object *value2) |
Object * | getFirstAfterKey (const Object *key) |
Object * | getFirstAfter (const Object *value) |
Object * | getLastBeforeKey (const Object *key) |
Object * | getLastBefore (const Object *value) |
int | removeAllBetweenKeys (const Object *key1, const Object *key2) |
int | removeAllBetween (const Object *value1, const Object *value2) |
ObjectCollection * | getAllEntriesBetweenKeys (const Object *key1, const Object *key2) |
ObjectCollection * | getAllEntriesBetween (const Object *value1, const Object *value2) |
CollectionEntry * | getFirstEntryAfterKey (const Object *key) |
CollectionEntry * | getFirstEntryAfter (const Object *value) |
CollectionEntry * | getLastEntryBeforeKey (const Object *key) |
CollectionEntry * | getLastEntryBefore (const Object *value) |
int | removeAllEntriesBetweenKeys (const Object *key1, const Object *key2) |
int | removeAllEntriesBetween (const Object *value1, const Object *value2) |
int | removeAllBeforeKey (const Object *key) |
int | removeAllBefore (const Object *value) |
int | removeAllAfterKey (const Object *key) |
int | removeAllAfter (const Object *value) |
long | getBinarySize (int chunk) |
Get the size of binary data chunk, -1 for all chunks. | |
int | getBinaryChunkCount () |
Get the number of data chunks. | |
long | toBinaryBuffer (int chunk, char *buffer, int maxlen) |
Write binary data to buffer at chunk number 'chunk'. | |
bool | fromBinaryBuffer (int chunk, char *buffer, long len) |
Set the data after separate reception. | |
bool | add (Object *key, Object *value) |
Get the binary data containing objects. | |
bool | addLast (Object *key, Object *value) |
bool | addFirst (Object *key, Object *value) |
bool | addAfter (const Object *obj, Object *key, Object *value) |
bool | addBefore (const Object *obj, Object *key, Object *value) |
bool | addBefore (int pos, Object *key, Object *value) |
bool | addAfter (int pos, Object *key, Object *value) |
bool | addBeforeEntry (CollectionEntry *entry, Object *key, Object *value) |
bool | addAfterEntry (CollectionEntry *entry, Object *key, Object *value) |
bool | addBetweenEntries (CollectionEntry *prevItem, CollectionEntry *nextItem, Object *key, Object *value) |
bool | replace (const Object *obj, Object *key, Object *value) |
bool | replace (int pos, Object *key, Object *value) |
bool | replaceEntry (CollectionEntry *entry, Object *key, Object *value) |
bool | remove (const Object *key) |
int | remove (const Object *value, bool removeAll) |
bool | removeEntry (CollectionEntry *entry) |
Object * | get (const Object *key) const |
Object * | get (int pos) const |
Object * | get (int pos) |
Object * | getNext () |
Object * | getPrevious () |
Object * | getFirst () |
Object * | getLast () |
Object * | take (const Object *key) |
Object * | take (int pos) |
Object * | getKey (int pos) const |
Object * | getKey (int pos) |
Object * | getFirstKey () |
Object * | getLastKey () |
Object * | getNextKey () |
Object * | getPreviousKey () |
CollectionEntry * | getEntryKey (const Object *key) const |
CollectionEntry * | getEntryValue (const Object *key) const |
CollectionEntry * | getEntry (int pos) const |
CollectionEntry * | getEntry (int pos) |
CollectionEntry * | getNextEntry () |
CollectionEntry * | getPreviousEntry () |
CollectionEntry * | getFirstEntry () |
CollectionEntry * | getLastEntry () |
int | getEntryPos (CollectionEntry *entry) const |
CollectionEntry ** | findClosestKeys (const Object *key) const |
CollectionEntry ** | findClosestValues (const Object *value) const |
JString | print (const Object *key) const |
JString | printEntry (const CollectionEntry *item, const JString &separator=" = ", const JString "es="") const |
bool | isKeyBigger (CollectionEntry *entry1, CollectionEntry *entry2) |
bool | isValueBigger (CollectionEntry *entry1, CollectionEntry *entry2) |
CollectionEntry * | createEntry (Object *key, Object *value) |
Public Attributes | |
JString | type |
bool | deleteOnDestroy |
int | count |
int | currentPos |
CollectionEntry * | current |
CollectionEntry * | first |
CollectionEntry * | last |
int | sorting |
JMutex * | accessMutex |
HashTable * | hashTable |
Definition at line 136 of file ObjectTable.h.
cmlabs::ObjectTable::ObjectTable | ( | ) |
Definition at line 37 of file ObjectTable.cpp.
cmlabs::ObjectTable::ObjectTable | ( | const ObjectTable & | Coll | ) |
Definition at line 51 of file ObjectTable.cpp.
cmlabs::ObjectTable::ObjectTable | ( | const JString & | xml | ) |
Definition at line 65 of file ObjectTable.cpp.
cmlabs::ObjectTable::ObjectTable | ( | XMLNode * | node | ) |
Definition at line 83 of file ObjectTable.cpp.
cmlabs::ObjectTable::~ObjectTable | ( | ) | [virtual] |
Definition at line 99 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::clone | ( | ) | const [virtual] |
bool cmlabs::ObjectTable::isCollection | ( | ) |
Definition at line 106 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::unitTest | ( | ) | [virtual] |
unsigned long cmlabs::ObjectTable::getPayloadSize | ( | ) | const [virtual] |
Get total size of payload.
Reimplemented from cmlabs::Object.
Definition at line 2658 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::addAll | ( | const ObjectTable * | c | ) |
Definition at line 2581 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::copyAll | ( | const ObjectTable * | c | ) |
Definition at line 2588 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::takeAll | ( | ObjectTable * | c | ) |
Definition at line 2595 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::addAll | ( | const ObjectTable & | c | ) |
Definition at line 2603 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::copyAll | ( | const ObjectTable & | c | ) |
Definition at line 2610 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::takeAll | ( | ObjectTable & | c | ) |
Definition at line 2617 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::addAll | ( | const CollectionEntry * | f, | |
bool | copy = false | |||
) |
Definition at line 2625 of file ObjectTable.cpp.
const ObjectTable & cmlabs::ObjectTable::operator= | ( | const ObjectTable & | c | ) |
Definition at line 110 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::equals | ( | const Object * | o2 | ) | const [virtual] |
bool cmlabs::ObjectTable::operator== | ( | ObjectTable & | c | ) |
Definition at line 163 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::operator!= | ( | ObjectTable & | c | ) |
Definition at line 167 of file ObjectTable.cpp.
int cmlabs::ObjectTable::getCount | ( | ) | const |
Definition at line 262 of file ObjectTable.cpp.
int cmlabs::ObjectTable::getPos | ( | const Object * | obj | ) | const |
Definition at line 290 of file ObjectTable.cpp.
int cmlabs::ObjectTable::getPosKey | ( | const Object * | key | ) | const |
Definition at line 325 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::containsKey | ( | const Object * | key | ) | const |
Definition at line 266 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::contains | ( | const Object * | value | ) | const |
Definition at line 270 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::removeFirst | ( | ) |
Definition at line 546 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::removeLast | ( | ) |
Definition at line 582 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::remove | ( | int | pos | ) |
Definition at line 682 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::removeAll | ( | ) |
Definition at line 184 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::removeAllNoDelete | ( | ) |
Definition at line 228 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::removeNoDelete | ( | int | pos | ) |
Definition at line 236 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::removeNoDelete | ( | const Object * | key | ) |
Definition at line 244 of file ObjectTable.cpp.
int cmlabs::ObjectTable::removeNoDelete | ( | const Object * | value, | |
bool | removeAll | |||
) |
Definition at line 252 of file ObjectTable.cpp.
ObjectCollection * cmlabs::ObjectTable::getAllKeysCopy | ( | ) |
Definition at line 274 of file ObjectTable.cpp.
JString cmlabs::ObjectTable::toHTML | ( | ) | [virtual] |
JString cmlabs::ObjectTable::toXML | ( | ) | [virtual] |
bool cmlabs::ObjectTable::fromXML | ( | const JString & | xml | ) | [virtual] |
bool cmlabs::ObjectTable::fromXML | ( | XMLNode * | node | ) | [virtual] |
JString cmlabs::ObjectTable::print | ( | ) | const |
Definition at line 2340 of file ObjectTable.cpp.
JString cmlabs::ObjectTable::printListLine | ( | const JString & | separator, | |
const JString & | equalsign = " = " , |
|||
const JString & | quotes = "" | |||
) | const |
Definition at line 2371 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::sortKeys | ( | ) |
Definition at line 2882 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::sortValues | ( | ) |
Definition at line 2967 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::sortKeysReverse | ( | ) |
bool cmlabs::ObjectTable::sortValuesReverse | ( | ) |
Definition at line 3050 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::sortRandomMix | ( | ) |
Definition at line 3133 of file ObjectTable.cpp.
void cmlabs::ObjectTable::noDelete | ( | ) |
Definition at line 220 of file ObjectTable.cpp.
void cmlabs::ObjectTable::doDelete | ( | ) |
Definition at line 224 of file ObjectTable.cpp.
Definition at line 1181 of file ObjectTable.cpp.
ObjectCollection * cmlabs::ObjectTable::getAllBetweenKeys | ( | const Object * | key1, | |
const Object * | key2 | |||
) |
Definition at line 1263 of file ObjectTable.cpp.
ObjectCollection * cmlabs::ObjectTable::getAllBetween | ( | const Object * | value1, | |
const Object * | value2 | |||
) |
Definition at line 1278 of file ObjectTable.cpp.
Definition at line 1293 of file ObjectTable.cpp.
Definition at line 1301 of file ObjectTable.cpp.
Definition at line 1309 of file ObjectTable.cpp.
Definition at line 1317 of file ObjectTable.cpp.
Definition at line 1325 of file ObjectTable.cpp.
Definition at line 1329 of file ObjectTable.cpp.
ObjectCollection * cmlabs::ObjectTable::getAllEntriesBetweenKeys | ( | const Object * | key1, | |
const Object * | key2 | |||
) |
Definition at line 1661 of file ObjectTable.cpp.
ObjectCollection * cmlabs::ObjectTable::getAllEntriesBetween | ( | const Object * | value1, | |
const Object * | value2 | |||
) |
Definition at line 1721 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getFirstEntryAfterKey | ( | const Object * | key | ) |
Definition at line 1790 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getFirstEntryAfter | ( | const Object * | value | ) |
Definition at line 1875 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getLastEntryBeforeKey | ( | const Object * | key | ) |
Definition at line 1960 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getLastEntryBefore | ( | const Object * | value | ) |
Definition at line 2045 of file ObjectTable.cpp.
Definition at line 2133 of file ObjectTable.cpp.
Definition at line 2152 of file ObjectTable.cpp.
int cmlabs::ObjectTable::removeAllBeforeKey | ( | const Object * | key | ) |
Definition at line 1333 of file ObjectTable.cpp.
int cmlabs::ObjectTable::removeAllBefore | ( | const Object * | value | ) |
Definition at line 1339 of file ObjectTable.cpp.
int cmlabs::ObjectTable::removeAllAfterKey | ( | const Object * | key | ) |
Definition at line 1345 of file ObjectTable.cpp.
int cmlabs::ObjectTable::removeAllAfter | ( | const Object * | value | ) |
Definition at line 1351 of file ObjectTable.cpp.
long cmlabs::ObjectTable::getBinarySize | ( | int | chunk | ) | [virtual] |
Get the size of binary data chunk, -1 for all chunks.
Get the size of any binary data.
Reimplemented from cmlabs::Object.
Definition at line 2680 of file ObjectTable.cpp.
int cmlabs::ObjectTable::getBinaryChunkCount | ( | ) | [virtual] |
Get the number of data chunks.
Reimplemented from cmlabs::Object.
Definition at line 2705 of file ObjectTable.cpp.
long cmlabs::ObjectTable::toBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
int | maxlen | |||
) | [virtual] |
Write binary data to buffer at chunk number 'chunk'.
Get a pointer to the binary data at chunk number 'chunk'.
Reimplemented from cmlabs::Object.
Definition at line 2722 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::fromBinaryBuffer | ( | int | chunk, | |
char * | buffer, | |||
long | len | |||
) | [virtual] |
Set the data after separate reception.
Reimplemented from cmlabs::Object.
Definition at line 2747 of file ObjectTable.cpp.
Definition at line 396 of file ObjectTable.cpp.
Definition at line 402 of file ObjectTable.cpp.
Definition at line 410 of file ObjectTable.cpp.
Definition at line 415 of file ObjectTable.cpp.
Definition at line 421 of file ObjectTable.cpp.
Definition at line 431 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::addBeforeEntry | ( | CollectionEntry * | entry, | |
Object * | key, | |||
Object * | value | |||
) |
Definition at line 450 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::addAfterEntry | ( | CollectionEntry * | entry, | |
Object * | key, | |||
Object * | value | |||
) |
Definition at line 455 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::addBetweenEntries | ( | CollectionEntry * | prevItem, | |
CollectionEntry * | nextItem, | |||
Object * | key, | |||
Object * | value | |||
) |
Definition at line 462 of file ObjectTable.cpp.
Definition at line 503 of file ObjectTable.cpp.
Definition at line 507 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::replaceEntry | ( | CollectionEntry * | entry, | |
Object * | key, | |||
Object * | value | |||
) |
Definition at line 513 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::remove | ( | const Object * | key | ) |
Definition at line 678 of file ObjectTable.cpp.
int cmlabs::ObjectTable::remove | ( | const Object * | value, | |
bool | removeAll | |||
) |
Definition at line 618 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::removeEntry | ( | CollectionEntry * | entry | ) |
Definition at line 688 of file ObjectTable.cpp.
Definition at line 741 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::get | ( | int | pos | ) | const |
Definition at line 749 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::get | ( | int | pos | ) |
Definition at line 757 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getNext | ( | ) |
Definition at line 785 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getPrevious | ( | ) |
Definition at line 793 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getFirst | ( | ) |
Definition at line 801 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getLast | ( | ) |
Definition at line 809 of file ObjectTable.cpp.
Definition at line 765 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::take | ( | int | pos | ) |
Definition at line 775 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getKey | ( | int | pos | ) | const |
Definition at line 1106 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getKey | ( | int | pos | ) |
Definition at line 1113 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getFirstKey | ( | ) |
Definition at line 1120 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getLastKey | ( | ) |
Definition at line 1127 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getNextKey | ( | ) |
Definition at line 1134 of file ObjectTable.cpp.
Object * cmlabs::ObjectTable::getPreviousKey | ( | ) |
Definition at line 1141 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getEntryKey | ( | const Object * | key | ) | const |
Definition at line 818 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getEntryValue | ( | const Object * | key | ) | const |
Definition at line 844 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getEntry | ( | int | pos | ) | const |
Definition at line 870 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getEntry | ( | int | pos | ) |
Definition at line 932 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getNextEntry | ( | ) |
Definition at line 1055 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getPreviousEntry | ( | ) |
Definition at line 1070 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getFirstEntry | ( | ) |
Definition at line 1084 of file ObjectTable.cpp.
CollectionEntry * cmlabs::ObjectTable::getLastEntry | ( | ) |
Definition at line 1095 of file ObjectTable.cpp.
int cmlabs::ObjectTable::getEntryPos | ( | CollectionEntry * | entry | ) | const |
Definition at line 1163 of file ObjectTable.cpp.
CollectionEntry ** cmlabs::ObjectTable::findClosestKeys | ( | const Object * | key | ) | const |
Definition at line 1363 of file ObjectTable.cpp.
CollectionEntry ** cmlabs::ObjectTable::findClosestValues | ( | const Object * | value | ) | const |
Definition at line 1521 of file ObjectTable.cpp.
Definition at line 2395 of file ObjectTable.cpp.
JString cmlabs::ObjectTable::printEntry | ( | const CollectionEntry * | item, | |
const JString & | separator = " = " , |
|||
const JString & | quotes = "" | |||
) | const |
Definition at line 2400 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::isKeyBigger | ( | CollectionEntry * | entry1, | |
CollectionEntry * | entry2 | |||
) |
Definition at line 3172 of file ObjectTable.cpp.
bool cmlabs::ObjectTable::isValueBigger | ( | CollectionEntry * | entry1, | |
CollectionEntry * | entry2 | |||
) |
Definition at line 3183 of file ObjectTable.cpp.
CollectionEntry* cmlabs::ObjectTable::createEntry | ( | Object * | key, | |
Object * | value | |||
) |
Definition at line 145 of file ObjectTable.h.
Definition at line 146 of file ObjectTable.h.
Definition at line 147 of file ObjectTable.h.
Definition at line 148 of file ObjectTable.h.
Definition at line 149 of file ObjectTable.h.
Definition at line 150 of file ObjectTable.h.
Definition at line 151 of file ObjectTable.h.
Definition at line 152 of file ObjectTable.h.
Definition at line 313 of file ObjectTable.h.
Definition at line 314 of file ObjectTable.h.