FreePOOMA  2.4.1
Public Member Functions
Pooma::Assertion Class Reference

assertion: exception notification class for assertions. More...

#include <PAssert.h>

List of all members.

Public Member Functions

 Assertion (const char *msg, const char *file, int line)
 Assertion (const Assertion &a)
 ~Assertion ()
Assertionoperator= (const Assertion &a)
const char * what () const
const char * file () const
int line () const
template<class OS >
void print (OS &os) const

Detailed Description

assertion: exception notification class for assertions.

This class should really be derived from std::runtime_error, but unfortunately we don't have good implementation of the library standard yet, on compilers other than KCC. So, this class will keep with the "what" method evidenced in the standard, but dispense with inheriting from classes for which we don't have implementations...


Constructor & Destructor Documentation

Pooma::Assertion::Assertion ( const char *  msg,
const char *  file,
int  line 
)

Member Function Documentation

Assertion& Pooma::Assertion::operator= ( const Assertion a)
const char* Pooma::Assertion::what ( ) const [inline]

Referenced by print().

const char* Pooma::Assertion::file ( ) const [inline]

Referenced by print().

int Pooma::Assertion::line ( ) const [inline]

Referenced by print().

template<class OS >
void Pooma::Assertion::print ( OS &  os) const [inline]

References file(), line(), and what().


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