ADMB Documentation  11.1.1927
 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 743 of file admodel.h.


Constructor & Destructor Documentation

adlist_ptr::adlist_ptr ( int  init_size)

Construct array with init_size.

Definition at line 1246 of file model.cpp.

Destructor.

Definition at line 1303 of file model.cpp.


Member Function Documentation

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

Store pointer p to array.

Definition at line 1287 of file model.cpp.

Referenced by initial_params::allocate().

void adlist_ptr::initialize ( void  )

Definition at line 1256 of file model.cpp.

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

Definition at line 1239 of file model.cpp.

void adlist_ptr::resize ( void  ) [private]

Double array size if needed.

Definition at line 1268 of file model.cpp.

Referenced by add_to_list().


Friends And Related Function Documentation

friend class initial_params [friend]

Definition at line 758 of file admodel.h.


Member Data Documentation

int adlist_ptr::current [private]

Definition at line 747 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 746 of file admodel.h.

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

Definition at line 745 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: