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

Description not yet available. More...

#include <adpool.h>

Classes

struct  link
 

Public Member Functions

 adpool ()
 Default constructor. More...
 
 adpool (const size_t)
 Construct adpool with size (sz). More...
 
 adpool (adpool &)=delete
 
 ~adpool ()
 Destructor. More...
 
void * alloc (void)
 Allocate memory for link*. More...
 
void clean (void)
 Description not yet available. More...
 
void deallocate (void)
 Description not yet available. More...
 
int depth_check (void)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
void free (void *b)
 Description not yet available. More...
 
void grow (void)
 
int & on_adpool_vector (void)
 
void operator= (adpool &)=delete
 
void set_size (const size_t)
 Set size of adpool. More...
 

Static Public Member Functions

static int get_num_adpools ()
 

Public Attributes

double * first
 
linkhead
 
char * last_chunk
 
size_t nelem
 
int num_allocated
 
int num_chunks
 
unsigned int nvar
 
size_t size
 

Private Attributes

int adpool_vector_flag
 

Static Private Attributes

static int num_adpools =0
 

Detailed Description

Description not yet available.

Definition at line 59 of file adpool.h.

Constructor & Destructor Documentation

adpool::adpool ( )

Default constructor.

Definition at line 297 of file adpool.cpp.

adpool::adpool ( const size_t  sz)

Construct adpool with size (sz).

Parameters
szsize of adpool.

Definition at line 266 of file adpool.cpp.

adpool::adpool ( adpool )
delete
adpool::~adpool ( )

Destructor.

Definition at line 255 of file adpool.cpp.

Member Function Documentation

void * adpool::alloc ( void  )

Allocate memory for link*.

Definition at line 114 of file adpool.cpp.

Referenced by df1b2variable::allocate(), and df1b2variable::df1b2variable().

void adpool::clean ( void  )

Description not yet available.

Parameters

Definition at line 435 of file adpool.cpp.

void adpool::deallocate ( void  )
int adpool::depth_check ( void  )

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Description not yet available.

Parameters

Definition at line 19 of file adpool.cpp.

Referenced by check_pool_depths().

void adpool::free ( void *  b)

Description not yet available.

Parameters

Definition at line 215 of file adpool.cpp.

static int adpool::get_num_adpools ( )
inlinestatic

Definition at line 73 of file adpool.h.

void adpool::grow ( void  )

Definition at line 353 of file adpool.cpp.

Referenced by alloc().

int& adpool::on_adpool_vector ( void  )
inline

Definition at line 78 of file adpool.h.

void adpool::operator= ( adpool )
delete
void adpool::set_size ( const size_t  sz)

Set size of adpool.

/param sz is a non-negative integer

Definition at line 304 of file adpool.cpp.

Referenced by df1b2variable::set_blocksize().

Member Data Documentation

int adpool::adpool_vector_flag
private

Definition at line 62 of file adpool.h.

Referenced by adpool(), and on_adpool_vector().

double* adpool::first

Definition at line 86 of file adpool.h.

Referenced by clean(), deallocate(), and grow().

link* adpool::head

Definition at line 85 of file adpool.h.

Referenced by alloc(), deallocate(), depth_check(), free(), and grow().

char* adpool::last_chunk

Definition at line 79 of file adpool.h.

Referenced by deallocate(), and grow().

size_t adpool::nelem

Definition at line 83 of file adpool.h.

Referenced by clean(), and grow().

int adpool::num_adpools =0
staticprivate

Definition at line 61 of file adpool.h.

Referenced by adpool(), get_num_adpools(), and ~adpool().

int adpool::num_allocated

Definition at line 81 of file adpool.h.

Referenced by alloc(), deallocate(), and free().

int adpool::num_chunks

Definition at line 82 of file adpool.h.

Referenced by deallocate(), and grow().

unsigned int adpool::nvar
size_t adpool::size

Definition at line 84 of file adpool.h.

Referenced by adpool(), alloc(), clean(), deallocate(), free(), grow(), and set_size().


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