guts
gutsConventions.cc File Reference
#include "gutsConventions.h"
#include <mutex>
#include <iostream>
Include dependency graph for gutsConventions.cc:

Go to the source code of this file.

Functions

void gexit (int error)
 Thread-safe exit function with error code. More...
 
void gLogClassConstruct (string className)
 Logs the construction of a class instance. More...
 
void gLogCopyConstruct (string className)
 Logs the copy construction of a class instance. More...
 
void gLogMoveConstruct (string className)
 Logs the move construction of a class instance. More...
 
void gLogClassDestruct (string className)
 Logs the destruction of a class instance. More...
 
void gLogMessage (string message)
 Logs a message. More...
 

Variables

std::mutex mu
 

Function Documentation

◆ gexit()

void gexit ( int  error)

This function is used to exit the program with a specific error code, ensuring any necessary cleanup or logging can occur before termination.

Parameters
errorThe error code to exit with.

Definition at line 14 of file gutsConventions.cc.

◆ gLogClassConstruct()

void gLogClassConstruct ( std::string  className)
Parameters
classNameThe name of the class being constructed.

Definition at line 24 of file gutsConventions.cc.

◆ gLogClassDestruct()

void gLogClassDestruct ( std::string  className)
Parameters
classNameThe name of the class being destructed.

Definition at line 45 of file gutsConventions.cc.

◆ gLogCopyConstruct()

void gLogCopyConstruct ( std::string  className)
Parameters
classNameThe name of the class being copy-constructed.

Definition at line 31 of file gutsConventions.cc.

◆ gLogMessage()

void gLogMessage ( std::string  message)

This function logs a given message, typically used for debugging or informational purposes.

Parameters
messageThe message to be logged.

Definition at line 51 of file gutsConventions.cc.

◆ gLogMoveConstruct()

void gLogMoveConstruct ( std::string  className)
Parameters
classNameThe name of the class being move-constructed.

Definition at line 38 of file gutsConventions.cc.

Variable Documentation

◆ mu

std::mutex mu

Definition at line 7 of file gutsConventions.cc.