#include <resizable.h>
template<class ITEM>
class Resizable< ITEM >
Definition at line 3 of file resizable.h.
Definition at line 8 of file resizable.h.
12 q = (ITEM*) malloc(
sizeof (ITEM)*16 );
Definition at line 14 of file resizable.h.
18 q = (ITEM*) malloc(
sizeof (ITEM)*alloc );
Definition at line 26 of file resizable.h.
28 while (n+num > alloc) {
30 q = (ITEM*) realloc( q,
sizeof (ITEM)*alloc );
template<class ITEM>
void Resizable< ITEM >::push_back |
( |
const ITEM & |
a) | |
|
|
inline |
Definition at line 42 of file resizable.h.
46 q = (ITEM*) realloc( q,
sizeof (ITEM)*alloc );
template<class ITEM>
void Resizable< ITEM >::push_back |
( |
const ITEM & |
aa, |
|
|
const ITEM & |
bb, |
|
|
const ITEM & |
cc |
|
) |
| |
|
inline |
Definition at line 62 of file resizable.h.
66 q = (ITEM*) realloc( q,
sizeof (ITEM)*alloc );
template<class ITEM>
void Resizable< ITEM >::push_back3 |
( |
const ITEM |
aa[3]) | |
|
|
inline |
Definition at line 51 of file resizable.h.
55 q = (ITEM*) realloc( q,
sizeof (ITEM)*alloc );
template<class ITEM>
void Resizable< ITEM >::push_back_nocheck |
( |
const ITEM & |
a) | |
|
|
inline |
template<class ITEM>
void Resizable< ITEM >::push_backN |
( |
const ITEM * |
aa, |
|
|
const unsigned int |
N |
|
) |
| |
|
inline |
Definition at line 73 of file resizable.h.
75 while (alloc < num+N) {
77 q = (ITEM*) realloc( q,
sizeof (ITEM)*alloc );
79 for (
unsigned int i = 0;
i < N;
i++)
The documentation for this class was generated from the following file: