OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
assertion Class Reference

#include <PAssert.h>

Inherits std::runtime_error.

Collaboration diagram for assertion:

Public Member Functions

 assertion (const char *cond, const char *file, int line)
 assertion (const char *m)
 assertion (const assertion &a)
 ~assertion () throw ()
assertionoperator= (const assertion &a)
virtual const char * what ()

Private Attributes

char * msg

Detailed Description

Definition at line 48 of file PAssert.h.

Constructor & Destructor Documentation

◆ assertion() [1/3]

assertion::assertion ( const char * cond,
const char * file,
int line )

Definition at line 45 of file PAssert.cpp.

References msg.

Referenced by assertion(), and operator=().

◆ assertion() [2/3]

assertion::assertion ( const char * m)

Definition at line 54 of file PAssert.cpp.

References msg.

◆ assertion() [3/3]

assertion::assertion ( const assertion & a)

Definition at line 61 of file PAssert.cpp.

References a, assertion(), and msg.

Here is the call graph for this function:

◆ ~assertion()

assertion::~assertion ( )
throw ( )
inline

Definition at line 55 of file PAssert.h.

References msg.

Member Function Documentation

◆ operator=()

assertion & assertion::operator= ( const assertion & a)

Definition at line 68 of file PAssert.cpp.

References a, assertion(), and msg.

Here is the call graph for this function:

◆ what()

virtual const char * assertion::what ( )
inlinevirtual

Definition at line 59 of file PAssert.h.

References msg.

Member Data Documentation

◆ msg

char* assertion::msg
private

Definition at line 50 of file PAssert.h.

Referenced by assertion(), assertion(), assertion(), operator=(), what(), and ~assertion().


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