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

Link list. More...

#include <fvar.hpp>

Public Member Functions

 dlist ()
 Default constructor. More...
 
 ~dlist ()
 Destructor. More...
 
dlinkappend (dlink *link)
 Append link to list. More...
 
void check_list (void)
 Check link list integrity. More...
 
dlinkcreate ()
 Return new unlinked node. More...
 
double * get (const int i) const
 
double_and_intgradnew ()
 
void initialize ()
 
dlinklast_remove ()
 If list is not empty, pop and return last node. More...
 
void restore_variables ()
 Restore variables from buffer. More...
 
void save_variables ()
 Save variables to a buffer. More...
 
size_t total_addresses () const
 Get total addresses stored. More...
 

Private Attributes

char * ddlist_space
 
dlink ** dlink_addresses
 
dlinklast
 
unsigned int nlinks
 
double * variables_save
 

Friends

void allocate_dvariable_space (void)
 Description not yet available. More...
 
void df_check_derivative_values (void)
 Description not yet available. More...
 
void df_check_derivative_values_indexed (void)
 Description not yet available. More...
 
void df_check_derivative_values_indexed_break (void)
 Description not yet available. More...
 
void funnel_derivatives (void)
 Description not yet available. More...
 
void gradcalc (int nvar, const dvector &g)
 
void gradient_structure::funnel_gradcalc (void)
 
void gradient_structure::jacobcalc (int nvar, const dmatrix &jac)
 
void gradient_structure::jacobcalc (int nvar, const ofstream &jac)
 
void gradient_structure::jacobcalc (int nvar, const uostream &jac)
 
void gradient_structure::restore_variables ()
 
void gradient_structure::save_variables ()
 
void gradloop ()
 
double_and_intgradnew ()
 Creates an entry in the gradient structure linked list. More...
 
void slave_gradcalc (void)
 

Detailed Description

Link list.

Definition at line 834 of file fvar.hpp.

Constructor & Destructor Documentation

dlist::dlist ( )

Default constructor.

Definition at line 17 of file ddlist.cpp.

dlist::~dlist ( )

Destructor.

Definition at line 54 of file ddlist.cpp.

Member Function Documentation

dlink * dlist::append ( dlink link)

Append link to list.

Parameters
linknode

Definition at line 117 of file ddlist.cpp.

Referenced by gradfree().

void dlist::check_list ( void  )

Check link list integrity.

Definition at line 184 of file ddlist.cpp.

dlink * dlist::create ( )

Return new unlinked node.

Definition at line 75 of file ddlist.cpp.

Referenced by gradnew().

double* dlist::get ( const int  i) const
inline

Definition at line 862 of file fvar.hpp.

double_and_int * dlist::gradnew ( )

Definition at line 50 of file fvar2.cpp.

Referenced by gradnew().

void dlist::initialize ( void  )
dlink * dlist::last_remove ( )

If list is not empty, pop and return last node.

Returns
0 empty list.

Definition at line 102 of file ddlist.cpp.

Referenced by gradnew().

void dlist::restore_variables ( )

Restore variables from buffer.

Definition at line 155 of file ddlist.cpp.

Referenced by gradient_structure::restore_variables().

void dlist::save_variables ( )

Save variables to a buffer.

Definition at line 141 of file ddlist.cpp.

Referenced by gradient_structure::save_variables().

size_t dlist::total_addresses ( ) const

Get total addresses stored.

Definition at line 169 of file ddlist.cpp.

Friends And Related Function Documentation

void allocate_dvariable_space ( void  )
friend

Description not yet available.

Parameters

Definition at line 210 of file gradstrc.cpp.

void df_check_derivative_values ( void  )
friend

Description not yet available.

Parameters

Definition at line 364 of file newdar.cpp.

void df_check_derivative_values_indexed ( void  )
friend

Description not yet available.

Parameters

Definition at line 427 of file newdar.cpp.

void df_check_derivative_values_indexed_break ( void  )
friend

Description not yet available.

Parameters

Definition at line 479 of file newdar.cpp.

void funnel_derivatives ( void  )
friend

Description not yet available.

Parameters
void gradcalc ( int  nvar,
const dvector g 
)
friend

Definition at line 77 of file sgradclc.cpp.

void gradient_structure::funnel_gradcalc ( void  )
friend
void gradient_structure::jacobcalc ( int  nvar,
const dmatrix jac 
)
friend
void gradient_structure::jacobcalc ( int  nvar,
const ofstream &  jac 
)
friend
void gradient_structure::jacobcalc ( int  nvar,
const uostream jac 
)
friend
void gradloop ( )
friend
double_and_int* gradnew ( )
friend

Creates an entry in the gradient structure linked list.

Returns
Pointer instance of class double_and_int

Definition at line 36 of file fvar2.cpp.

void slave_gradcalc ( void  )
friend

Member Data Documentation

char* dlist::ddlist_space
private

Definition at line 839 of file fvar.hpp.

Referenced by create(), dlist(), and ~dlist().

dlink** dlist::dlink_addresses
private
dlink* dlist::last
private

Definition at line 836 of file fvar.hpp.

Referenced by allocate_dvariable_space(), append(), check_list(), dlist(), and last_remove().

unsigned int dlist::nlinks
private
double* dlist::variables_save
private

Definition at line 840 of file fvar.hpp.

Referenced by dlist(), restore_variables(), save_variables(), and ~dlist().


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