ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
adlist_ptr Class Reference

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

#include <admodel.h>

Public Member Functions

 adlist_ptr ()
 Default constructor. More...
 
 adlist_ptr (const adlist_ptr &)=delete
 
 adlist_ptr (adlist_ptr &&)=delete
 
 ~adlist_ptr ()
 Destructor. More...
 
void allocate (unsigned int init_size)
 Construct array with init_size. More...
 
void initialize ()
 Double array size if needed. More...
 
pinitial_paramsoperator[] (int i)
 

Private Types

typedef void * ptovoid
 

Private Member Functions

void add_to_list (void *)
 Store pointer p to array. More...
 
void resize (void)
 

Private Attributes

unsigned int current
 
unsigned int current_size
 
std::vector< void * > list
 
ptovoidptr
 

Friends

class initial_params
 

Detailed Description

For storing void pointers in a array.

Definition at line 746 of file admodel.h.

Member Typedef Documentation

typedef void* adlist_ptr::ptovoid
private

Definition at line 750 of file admodel.h.

Constructor & Destructor Documentation

adlist_ptr::adlist_ptr ( )

Default constructor.

Definition at line 1309 of file model.cpp.

adlist_ptr::adlist_ptr ( const adlist_ptr )
delete
adlist_ptr::adlist_ptr ( adlist_ptr &&  )
delete
adlist_ptr::~adlist_ptr ( )

Destructor.

Definition at line 1381 of file model.cpp.

Member Function Documentation

void adlist_ptr::add_to_list ( void *  p)
private

Store pointer p to array.

Definition at line 1366 of file model.cpp.

Referenced by initial_params::add_to_list().

void adlist_ptr::allocate ( unsigned int  init_size)

Construct array with init_size.

Definition at line 1318 of file model.cpp.

Referenced by function_minimizer::function_minimizer().

void adlist_ptr::initialize ( void  )

Double array size if needed.

Definition at line 1353 of file model.cpp.

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

Definition at line 1294 of file model.cpp.

void adlist_ptr::resize ( void  )
private

Friends And Related Function Documentation

friend class initial_params
friend

Definition at line 768 of file admodel.h.

Member Data Documentation

unsigned int adlist_ptr::current
private

Definition at line 748 of file admodel.h.

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

unsigned int adlist_ptr::current_size
private

Definition at line 749 of file admodel.h.

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

std::vector<void*> adlist_ptr::list
private

Definition at line 753 of file admodel.h.

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

ptovoid* adlist_ptr::ptr
private

Definition at line 751 of file admodel.h.

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


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