A collection of objects.
Inheritance:
Public Methods
-
collection()
-
collection(unsigned capacity, unsigned grow = DEFAULT_CONTAINER_GROWTH)
-
collection(const collection &src)
-
virtual void swap(unsigned i, unsigned j)
-
virtual void empty()
-
virtual void add(object* obj)
-
virtual object* remove(unsigned index)
-
virtual void removeAll()
-
unsigned instanceCount(const object &obj) const
- Returns the number of occurances of the object in the collection
-
unsigned indexOf(const object &obj) const
- Returns the index of the object
-
virtual ~collection()
Inherited from indexed:
Public Methods
-
inline unsigned int getSize() const
-
inline unsigned int getCapacity() const
-
void trim()
-
void enlarge(unsigned adjustment)
-
inline object* operator[](unsigned index) const
-
inline object* getObj(unsigned index) const
-
virtual void append(const indexed& src)
Inherited from object:
Public Methods
-
virtual bool operator==(const object &obj) const
-
virtual bool operator!=(const object &obj) const
-
virtual unsigned int hashcode() const
-
virtual object* clone() const
Documentation
A collection of objects. The class provides facilities
for rapid membership testing, member->index mapping,
and instance counts. Instances of objects in the collection
must exist, or method calls are likely to fail.
collection()
collection(unsigned capacity, unsigned grow = DEFAULT_CONTAINER_GROWTH)
collection(const collection &src)
virtual void swap(unsigned i, unsigned j)
virtual void empty()
virtual void add(object* obj)
virtual object* remove(unsigned index)
virtual void removeAll()
unsigned instanceCount(const object &obj) const
- Returns the number of occurances of the object in the collection
unsigned indexOf(const object &obj) const
- Returns the index of the object
virtual ~collection()
- Direct child classes:
- set
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.