Arduino-Debug
On-target sketch debugger for Arduino
Debug::Variable Class Reference

#include <Debug.h>

Collaboration diagram for Debug::Variable:
Collaboration graph

Public Member Functions

 Variable (const char *func, str_P name, void *ref, size_t size)
 
 ~Variable ()
 
void print (bool is_pointer=false)
 

Protected Attributes

class Variablem_next
 Next variable. More...
 
const char * m_func
 Registered in function. More...
 
str_P m_name
 Function name. More...
 
void * m_ref
 Variable value reference. More...
 
size_t m_size
 Variable value size. More...
 

Friends

class Debug
 

Detailed Description

Debug Variable information class. Contains function, variable name, reference and size. Used by macro REGISTER(var) to allow the debug handler to display variable values, addresses, etc.

Definition at line 142 of file Debug.h.

Constructor & Destructor Documentation

Debug::Variable::Variable ( const char *  func,
str_P  name,
void *  ref,
size_t  size 
)
inline

Construct debug variable information instance and link into debug handler list.

Definition at line 148 of file Debug.h.

Debug::Variable::~Variable ( )
inline

Unlink debug variable information instance from debug handler list.

Definition at line 162 of file Debug.h.

Member Function Documentation

void Debug::Variable::print ( bool  is_pointer = false)

Print information about variable on debug stream.

Parameters
[in]is_pointerflag (default false).

Definition at line 358 of file Debug.cpp.

Friends And Related Function Documentation

friend class Debug
friend

Definition at line 174 of file Debug.h.

Member Data Documentation

const char* Debug::Variable::m_func
protected

Registered in function.

Definition at line 176 of file Debug.h.

str_P Debug::Variable::m_name
protected

Function name.

Definition at line 177 of file Debug.h.

class Variable* Debug::Variable::m_next
protected

Next variable.

Definition at line 175 of file Debug.h.

void* Debug::Variable::m_ref
protected

Variable value reference.

Definition at line 178 of file Debug.h.

size_t Debug::Variable::m_size
protected

Variable value size.

Definition at line 179 of file Debug.h.


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