#include <list.h>
Public Member Functions | |
void | append (void *p) |
void * | at (long i) |
long | count () |
list () | |
~list () | |
Private Attributes | |
void ** | data |
array with pointers to particular items of the list | |
long | limit |
limit of array data | |
long | num |
number of items |
The class creates list of arbitrary items. Pointers to particular items are stored in the array of pointer data
Created by TKo, 09.2010
Definition at line 10 of file list.h.
list | ( | ) |
~list | ( | ) |
void append | ( | void * | p | ) |
The function adds new item to the list. If it is necessary, the array data is reallocated. The new item is given by the pointer p.
p | - pointer to the added object |
Created by TKo, 09.2010
Definition at line 46 of file list.cpp.
References data, limit, and num.
Referenced by assemble_bnodvalt(), input_elem_edgebc(), input_elem_eigstr(), input_elem_sourcet(), input_elem_surfbc(), input_elem_vertbc(), input_nod_bocont(), and input_nod_sourcet().
void * at | ( | long | i | ) |
The function returns i-th item from the list.
i | - index of the returned item |
Created by TKo, 09.2010
Definition at line 72 of file list.cpp.
Referenced by assemble_bnodvalt(), input_elem_eigstr(), input_elem_sourcet(), input_nod_bocont(), input_nod_sourcet(), output(), outputt(), wr_eigenstrains(), wr_prescquant(), and wr_sources().
long count | ( | ) |
The function returns actual number of inserted items.
Created by TKo, 09.2010
Definition at line 88 of file list.cpp.
References num.
Referenced by assemble_bclimcond(), assemble_bnodvalt(), input_elem_edgebc(), input_elem_eigstr(), input_elem_sourcet(), input_elem_surfbc(), input_elem_vertbc(), input_nod_bocont(), input_nod_sourcet(), output(), outputt(), wr_climatcond(), wr_climatcond2(), wr_eigenstrains(), wr_loadelt(), wr_prescquant(), and wr_sources().
void** data [private] |
long limit [private] |
long num [private] |