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 Types | Public Member Functions
Allot< VAL > Class Template Reference

## Detailed Description

### template<typename VAL>
class Allot< VAL >

Allot holds an array of type T and remembers the size of the array. The destructor will release this memory by calling delete[]

## Public Types
typedef VAL | value_type
| copy of the first template argument

## Public Member Functions
| Allot ()
| constructor
| Allot (unsigned int s, bool cop)
| Allocate size `s`, and set copy flag to `cop`
| Allot (unsigned int s, bool cop, unsigned int chk)
| Allocate size `s`, set copy flag to `cop`, and chunk size to `chk`
| Allot (Allot< VAL > const &o)
| copy constructor
void | deallocate ()
| release memory
| ~Allot ()
| destructor
Allot & | operator= (Allot< VAL > const &o)
| copy assignment operator
void | reallocate (unsigned int alc_new)
| change size of allocated memory
int | allocate (unsigned int s)
| allocate, but only if size increases
VAL * | release ()
| forget current allocation
void | swap (Allot< VAL > o)
| exchange the data between `this` and `o`
unsigned int | capacity () const
| allocated size
VAL const * | addr () const
| pointer to data array
VAL * | addr ()
| pointer to data array
| operator VAL * ()
| conversion to array
| operator VAL const * () const
| conversion to const array
VAL & | operator[] (unsigned int i)
| access to array