ADMB Documentation  11.1.2403
 All Classes Files Functions Variables Typedefs Friends Defines
Files | Functions
Dubugging aids.
User-Contributed Libraries.

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.
void pad (double v)
 Print a double precision number to the screen.
void pad (const adstring &v)
 Print an adstring to the screen.

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.