CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
InvalidReferenceIssue.h File Reference
#include "ers/Issue.h"

Go to the source code of this file.

Classes

class  ers::InvalidReferenceIssue
 Invalid pointer issue. More...
 

Namespaces

namespace  ers
 

Macros

#define ERS_PRE_CHECK_PTR(p)
 
#define ERS_CHECK_PTR(p)
 

Macro Definition Documentation

◆ ERS_CHECK_PTR

#define ERS_CHECK_PTR ( p)
Value:
#define ERS_HERE
Definition Context.h:119
static void check_reference(const Context &context, severity_t s, const void *pointer, const char *ptr_name, responsibility_t r)
@ resp_server
Definition Core.h:25
@ error
Definition Core.h:24

If the pointer is invalid, this is considered as a server responsibility.

Note
Do not use this to check constant pointers, as the check is compiled out if the pointer is constant

Definition at line 68 of file InvalidReferenceIssue.h.

Referenced by ers::StreamFactory::dispatch(), ers::FilterStream::FilterStream(), ers::FilterStream::is_accept(), and ers::FilterStream::send().

◆ ERS_PRE_CHECK_PTR

#define ERS_PRE_CHECK_PTR ( p)
Value:

If the pointer is invalid, this is considered as a client responsibility.

Note
Do not use this to check constant pointers, as the check is compiled out if the pointer is constant

Definition at line 53 of file InvalidReferenceIssue.h.

Referenced by ers::IssueFactory::build(), ers::StreamFactory::debug(), ers::StreamFactory::dispatch(), ers::StreamFactory::error(), ers::StreamFactory::fatal(), ers::Issue::Issue(), ers::DefaultStream::send(), ers::FIFOStream::send(), ers::HumanStream::send(), ers::StreamFactory::set(), ers::StreamFactory::set(), and ers::StreamFactory::warning().