MADNESS 0.10.1
madness::TensorException Class Reference

Tensor is intended to throw only TensorExceptions. More...

#include <tensorexcept.h>

Inheritance diagram for madness::TensorException:
Collaboration diagram for madness::TensorException:

Public Member Functions

 TensorException (const char *s, const char *a, int err, const BaseTensor *tp, int lin, const char *func, const char *file)
virtual ~TensorException () throw ()
virtual const char * what () const throw ()

Private Attributes

const char * assertion
const char * filename
const char * function
int line
const char * msg
BaseTensor t
const BaseTensor * tp
int value

Friends

std::ostream & operator<< (std::ostream &out, const TensorException &e)
 Print a TensorException to the stream (for human consumption).

Detailed Description

Tensor is intended to throw only TensorExceptions.

Constructor & Destructor Documentation

◆ TensorException()

madness::TensorException::TensorException ( const char * s,
const char * a,
int err,
const BaseTensor * tp,
int lin,
const char * func,
const char * file )
inline

References a, assertion, filename, madness::func(), function, line, msg, t, tp, and value.

Referenced by operator<<.

◆ ~TensorException()

virtual madness::TensorException::~TensorException ( )
throw ( )
inlinevirtual

Member Function Documentation

◆ what()

virtual const char * madness::TensorException::what ( ) const
throw ( )
inlinevirtual

References msg.

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const TensorException & e )
friend

Print a TensorException to the stream (for human consumption).

References TensorException(), e(), TENSOR_MAX_TYPE_ID, TENSOR_MAXDIM, and madness::tensor_type_names.

Member Data Documentation

◆ assertion

const char* madness::TensorException::assertion
private

Referenced by TensorException().

◆ filename

const char* madness::TensorException::filename
private

Referenced by TensorException().

◆ function

const char* madness::TensorException::function
private

Referenced by TensorException().

◆ line

int madness::TensorException::line
private

Referenced by TensorException().

◆ msg

const char* madness::TensorException::msg
private

Referenced by TensorException(), and what().

◆ t

BaseTensor madness::TensorException::t
private

Referenced by TensorException().

◆ tp

const BaseTensor* madness::TensorException::tp
private

Referenced by TensorException().

◆ value

int madness::TensorException::value
private

Referenced by TensorException().


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