Source Code (Use browser search to find items of interest.)
Class Index
kgraph'KGObjectPool (./koffice/kgraph/kgobjectpool.h:33)
class KGObjectPool {
public:
static KGObjectPool *self(); // allow only one object pool!
KGObject *first() { return objects.first(); }
KGObject *last() { return objects.last(); }
KGObject *next() { return objects.next(); }
KGObject *prev() { return objects.prev(); }
KGObject *current() { return objects.current(); }
KGObject *at(const unsigned int &index) { return objects.at(index); }
const bool remove(const unsigned int &index);
const bool remove(const KGObject *object);
const unsigned int count() const { return objects.count(); }
const bool isEmpty() const { return objects.isEmpty(); }
//KGLine *createLine(); // default line (from (0|0) to (1|1))
//KGLine *createLine(const QDomElement &e);
//KGLine *createLine(const QPoint &a, const QPoint &b);
protected:
KGObjectPool();
~KGObjectPool();
private:
QList<KGObject> objects;
static KGObjectPool *m_self;
};
kgraph'KGObjectPool::self() (./koffice/kgraph/kgobjectpool.cc:24)
KGObjectPool *KGObjectPool::self() {
if(m_self==0L)
m_self=new KGObjectPool;
return m_self;
}
kgraph'KGObjectPool::KGObjectPool() (./koffice/kgraph/kgobjectpool.cc:30)
KGObjectPool::KGObjectPool() {
objects.setAutoDelete(true);
}
kgraph'KGObjectPool::remove() (./koffice/kgraph/kgobjectpool.cc:34)
const bool KGObjectPool::remove(const unsigned int &index) {
// if the object is member of a group, tell the
// group to remove it (TODO)
return objects.remove(index);
}
kgraph'KGObjectPool::remove() (./koffice/kgraph/kgobjectpool.cc:40)
const bool KGObjectPool::remove(const KGObject *object) {
// if the object is member of a group, tell the
// group to remove it (TODO)
return objects.remove(object);
}