Empirical
Public Member Functions | Public Attributes | List of all members
emp::AlertObj Struct Reference

#include <alert.h>

Public Member Functions

 AlertObj (const std::string &_msg, bool _on_c=true, bool _on_d=false)
 
 ~AlertObj ()
 
void Trigger ()
 
void SetMessage (const std::string &_msg)
 

Public Attributes

std::string msg
 Message for the alert to print. More...
 
bool on_construct
 Should the message print automatically during construction? More...
 
bool on_destruct
 Should the message print automatically during destruction? More...
 

Detailed Description

An object that will automatically output a message during construction or destruction, usually for use in debugging to disentangle timings.

Constructor & Destructor Documentation

emp::AlertObj::AlertObj ( const std::string &  _msg,
bool  _on_c = true,
bool  _on_d = false 
)
inline
emp::AlertObj::~AlertObj ( )
inline

Member Function Documentation

void emp::AlertObj::SetMessage ( const std::string &  _msg)
inline
void emp::AlertObj::Trigger ( )
inline

Member Data Documentation

std::string emp::AlertObj::msg

Message for the alert to print.

bool emp::AlertObj::on_construct

Should the message print automatically during construction?

bool emp::AlertObj::on_destruct

Should the message print automatically during destruction?


The documentation for this struct was generated from the following file: