FLOPC++
Public Member Functions | Protected Member Functions | Private Member Functions | Friends | List of all members
flopc::Messenger Class Reference

Inteface for hooking up to internal flopc++ message handling.In more advanced use of FlopC++, it may be desirable to get access to internal calls for messages. In essence, sub-class this Messenger class, and register it with the MP_model. Also overload whichever message events you wish to handle. More...

#include <MP_model.hpp>

Inheritance diagram for flopc::Messenger:
flopc::NormalMessenger flopc::VerboseMessenger

Public Member Functions

virtual void logMessage (int level, const char *const msg)
 

Protected Member Functions

virtual ~Messenger ()
 

Private Member Functions

virtual void constraintDebug (string name, const vector< MP::Coef > &cfs)
 
virtual void objectiveDebug (const vector< MP::Coef > &cfs)
 
virtual void statistics (int bm, int m, int bn, int n, int nz)
 
virtual void generationTime (double t)
 

Friends

class MP_model
 

Detailed Description

Inteface for hooking up to internal flopc++ message handling.

In more advanced use of FlopC++, it may be desirable to get access to internal calls for messages. In essence, sub-class this Messenger class, and register it with the MP_model. Also overload whichever message events you wish to handle.

Definition at line 36 of file MP_model.hpp.

Constructor & Destructor Documentation

◆ ~Messenger()

virtual flopc::Messenger::~Messenger ( )
inlineprotectedvirtual

Definition at line 46 of file MP_model.hpp.

Member Function Documentation

◆ constraintDebug()

virtual void flopc::Messenger::constraintDebug ( string  name,
const vector< MP::Coef > &  cfs 
)
inlineprivatevirtual

Reimplemented in flopc::VerboseMessenger.

Definition at line 41 of file MP_model.hpp.

Referenced by flopc::MP_model::attach().

◆ generationTime()

virtual void flopc::Messenger::generationTime ( double  t)
inlineprivatevirtual

Reimplemented in flopc::NormalMessenger.

Definition at line 44 of file MP_model.hpp.

Referenced by flopc::MP_model::attach().

◆ logMessage()

virtual void flopc::Messenger::logMessage ( int  level,
const char *const  msg 
)
inlinevirtual

Definition at line 38 of file MP_model.hpp.

Referenced by flopc::MP_domain_base::display().

◆ objectiveDebug()

virtual void flopc::Messenger::objectiveDebug ( const vector< MP::Coef > &  cfs)
inlineprivatevirtual

Reimplemented in flopc::VerboseMessenger.

Definition at line 42 of file MP_model.hpp.

Referenced by flopc::MP_model::attach().

◆ statistics()

virtual void flopc::Messenger::statistics ( int  bm,
int  m,
int  bn,
int  n,
int  nz 
)
inlineprivatevirtual

Reimplemented in flopc::NormalMessenger.

Definition at line 43 of file MP_model.hpp.

Referenced by flopc::MP_model::attach().

Friends And Related Function Documentation

◆ MP_model

friend class MP_model
friend

Definition at line 39 of file MP_model.hpp.


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