ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Files | Functions

Files

file  gdbprintlib.cpp
 Source code for functions for printing ADMB objects during GDB sessions.
 

Functions

void pad ()
 Do nothing, this will be included by ADMB lexical analyzer so that the library is usable from within GDB. More...
 
void pad (double v)
 Print a double precision number to the screen. More...
 
void pad (const adstring &v)
 Print an adstring to the screen. More...
 

Detailed Description

Functions for printing ADMB objects during GDB sessions. This functioniality was added to allow easy viewing of ADMB variables of all types during a GDB debugging session, but the functions can be used in code. To use the functions in a GDB session, ADMB must have been built from source in debug mode, typically using the command 'make debug'. Also, the model TPL must have been compiled using the debug flag, typically using the command 'admb -g '.

Contributed by Chris Grandin and Dave Fournier

Function Documentation

void pad ( )

Do nothing, this will be included by ADMB lexical analyzer so that the library is usable from within GDB.

Returns
Nothing

Definition at line 29 of file gdbprintlib.cpp.

void pad ( double  v)

Print a double precision number to the screen.

Parameters
vThe double to print
Returns
Nothing

Definition at line 39 of file gdbprintlib.cpp.

void pad ( const adstring v)

Print an adstring to the screen.

Parameters
vThe adstring to print
Returns
Nothing

Definition at line 50 of file gdbprintlib.cpp.