Cytosim PI Cytoskeleton Simulator

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

List of all members | Public Member Functions
Inventory Class Reference

## Detailed Description

A Inventory assigns serial-numbers (of type Number) to Inventoried, and it records a pointer to these objects.

The pointers can be recovered from their 'number' in constant time.

Author
  Nedelec, August 2003. EMBL Heidelberg. nedel.nosp@m.ec@e.nosp@m.mbl.d.nosp@m.e

## Public Member Functions
| Inventory ()
| Constructor.
| ~Inventory ()
| Destructor.
Number | available ()
| the smallest number that is not used in this list
Number | first () const
| the smallest number that is used
Number | next (Number) const
| next number that is used
Number | last () const
| the largest number that is used
Number | capacity () const
| current size of array (allocated)
void | store (Inventoried *obj)
| remember obj, assign a new Number if necessary More...
void | forget (const Inventoried *obj)
| forget the object and release its serial number
Inventoried * | find (Number number) const
| return the object with given serial number, or 0 if not found
Inventoried * | operator[] (Number n) const
| return object with given number
unsigned int | count ()
| number of non-zero entries in the registry
void | reorder ()
| reattribute all serial numbers consecutively
unsigned int | clear ()
| clear all entries

## Member Function Documentation

void store | ( | Inventoried * | obj | ) |

This will assign a new number of obj, if it does not have one.