All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ttmath::ReferenceError Class Reference

#include <ttmathtypes.h>

Public Member Functions

 ReferenceError ()
 
 ReferenceError (const char *f, int l)
 
std::string Where () const
 
- Public Member Functions inherited from ttmath::ExceptionInfo
 ExceptionInfo ()
 
 ExceptionInfo (const char *f, int l)
 
std::string Where () const
 

Detailed Description

A small class used for reporting 'reference' errors

In the library is used macro TTMATH_REFERENCE_ASSERT which can throw an exception of this type

from version 0.9.2 this macro is removed from all methods in public interface so you don't have to worry about it **

If you compile with gcc you can get a small benefit from using method Where() (it returns std::string) with the name and the line of a file where the macro TTMATH_REFERENCE_ASSERT was used)

Constructor & Destructor Documentation

ttmath::ReferenceError::ReferenceError ( )
inline
ttmath::ReferenceError::ReferenceError ( const char *  f,
int  l 
)
inline

Member Function Documentation

std::string ttmath::ReferenceError::Where ( ) const
inline

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