list Class Reference

#include <list.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

list (  ) 

The constructor initializes all data members

Created by TKo, 09.2010

Definition at line 11 of file list.cpp.

References data, limit, and num.

~list (  ) 

The destructor releases memory used by data array. Particular elements of the array are NOT deleted.

Created by TKo, 09.2010

Definition at line 28 of file list.cpp.

References data.


Member Function Documentation

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.

Parameters:
p - pointer to the added object
Returns:
The function does not return anything.

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.

Parameters:
i - index of the returned item
Returns:
The function returns required i-th item.

Created by TKo, 09.2010

Definition at line 72 of file list.cpp.

References data, and num.

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.

Returns:
The function returns number of 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().


Member Data Documentation

void** data [private]

array with pointers to particular items of the list

Definition at line 17 of file list.h.

Referenced by append(), at(), list(), and ~list().

long limit [private]

limit of array data

Definition at line 15 of file list.h.

Referenced by append(), and list().

long num [private]

number of items

Definition at line 13 of file list.h.

Referenced by append(), at(), count(), and list().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2