ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
Public Member Functions | Private Member Functions | Private Attributes | Friends
adlist_ptr Class Reference

For storing void pointers in a array. More...

#include <admodel.h>

Public Member Functions

 adlist_ptr (int init_size)
 Construct array with init_size.
 ~adlist_ptr ()
 Destructor.
void initialize ()
pinitial_paramsoperator[] (int i)

Private Member Functions

void add_to_list (void *p)
 Store pointer p to array.
void resize (void)
 Double array size if needed.

Private Attributes

int current
int current_size
ptovoidptr

Friends

class initial_params

Detailed Description

For storing void pointers in a array.

Definition at line 761 of file admodel.h.


Constructor & Destructor Documentation

adlist_ptr::adlist_ptr ( int  init_size)

Construct array with init_size.

Definition at line 1264 of file model.cpp.

Destructor.

Definition at line 1321 of file model.cpp.


Member Function Documentation

void adlist_ptr::add_to_list ( void *  p) [private]

Store pointer p to array.

Definition at line 1305 of file model.cpp.

Referenced by initial_params::add_to_list().

void adlist_ptr::initialize ( void  )

Definition at line 1274 of file model.cpp.

pinitial_params & adlist_ptr::operator[] ( int  i)

Definition at line 1257 of file model.cpp.

void adlist_ptr::resize ( void  ) [private]

Double array size if needed.

Definition at line 1286 of file model.cpp.

Referenced by add_to_list().


Friends And Related Function Documentation

friend class initial_params [friend]

Definition at line 776 of file admodel.h.


Member Data Documentation

int adlist_ptr::current [private]

Definition at line 765 of file admodel.h.

Referenced by add_to_list(), adlist_ptr(), initialize(), resize(), and ~adlist_ptr().

int adlist_ptr::current_size [private]

Definition at line 764 of file admodel.h.

Referenced by add_to_list(), adlist_ptr(), initialize(), resize(), and ~adlist_ptr().

Definition at line 763 of file admodel.h.

Referenced by add_to_list(), adlist_ptr(), initialize(), operator[](), resize(), and ~adlist_ptr().

List of all members.


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