45 #ifndef COMMONCPP_OBJECT_H_
46 #define COMMONCPP_OBJECT_H_
48 #ifndef COMMONCPP_CONFIG_H_
49 #include <commoncpp/config.h>
96 virtual void *getObject(
void) = 0;
121 virtual void enterLock(
void);
127 virtual void leaveLock(
void);
155 inline void *operator*()
const {
159 void *getObject(
void)
const;
161 operator bool()
const;
163 bool operator!()
const;
246 nextObject = prevObject = NULL;
251 virtual void enterLock(
void);
253 virtual void leaveLock(
void);
327 virtual void insert(
LinkedDouble& obj, InsertMode position = modeAtLast);
332 virtual void detach(
void);
384 virtual unsigned getIndex(
const char *
id);
411 void *getObject(
const char *
id);
524 return (
void*)thisObject;
547 return this->operator++();
556 return thisObject == theIndex.thisObject;
559 bool operator!=(
const MapIndex& theIndex)
const {
560 return !(*
this == theIndex);
570 return thisObject == theObject;
573 bool operator!=(
const MapObject* theObject)
const {
574 return !(*
this == theObject);
595 const char *idObject;