Jetpack documentation 1.0.0
Loading...
Searching...
No Matches
Debug Class Reference

A class for debugging. More...

#include <Logs.hpp>

Public Member Functions

 Debug (const std::string file="", const int line=0, const std::string func="")
 Constructor of the Debug.
 
 ~Debug ()
 Destructor of the Debug.
 
template<typename T >
Debugoperator<< (const T &message)
 Print a debug message.
 
Debugoperator<< (std::ostream &(*pf)(std::ostream &))
 Print a debug message.
 

Static Public Member Functions

static void point (const std::string file, const int line, const std::string func)
 Print a debug point.
 

Detailed Description

A class for debugging.

This class is used to print debug messages

Constructor & Destructor Documentation

◆ Debug()

Debug ( const std::string file = "",
const int line = 0,
const std::string func = "" )

Constructor of the Debug.

Parameters
fileThe file that contains the debug
lineThe line that contains the debug
funcThe function that contains the debug

Member Function Documentation

◆ operator<<() [1/2]

template<typename T >
Debug & operator<< ( const T & message)
inline

Print a debug message.

Parameters
messageThe message to print
Returns
Debug & The debug object

◆ operator<<() [2/2]

Debug & operator<< ( std::ostream &(* pf )(std::ostream &))

Print a debug message.

Parameters
pfThe message to print
Returns
Debug & The debug object

◆ point()

void point ( const std::string file,
const int line,
const std::string func )
static

Print a debug point.

Parameters
fileThe file that contains the debug point
lineThe line that contains the debug point
funcThe function that contains the debug point

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