bpp-core  2.1.0
bpp::ElementNotFoundException< T > Class Template Reference

Exception thrown when a given element was not found in the vector. More...

#include <Bpp/Numeric/VectorExceptions.h>

+ Inheritance diagram for bpp::ElementNotFoundException< T >:
+ Collaboration diagram for bpp::ElementNotFoundException< T >:

List of all members.

Public Member Functions

 ElementNotFoundException (const std::string &text, const std::vector< T > *vect=0, const T *element=0)
 ElementNotFoundException (const ElementNotFoundException &enfe)
ElementNotFoundExceptionoperator= (const ElementNotFoundException &enfe)
virtual ~ElementNotFoundException () throw ()
virtual const T * getElement () const
virtual const std::vector< T > * getVector () const
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition).

Protected Attributes

const std::vector< T > * vect_
std::string message_

Private Attributes

const T * element_

Detailed Description

template<class T>
class bpp::ElementNotFoundException< T >

Exception thrown when a given element was not found in the vector.

Definition at line 124 of file VectorExceptions.h.


Constructor & Destructor Documentation

template<class T>
bpp::ElementNotFoundException< T >::ElementNotFoundException ( const std::string &  text,
const std::vector< T > *  vect = 0,
const T *  element = 0 
) [inline]

Definition at line 132 of file VectorExceptions.h.

template<class T>
bpp::ElementNotFoundException< T >::ElementNotFoundException ( const ElementNotFoundException< T > &  enfe) [inline]

Definition at line 136 of file VectorExceptions.h.

template<class T>
virtual bpp::ElementNotFoundException< T >::~ElementNotFoundException ( ) throw () [inline, virtual]

Definition at line 146 of file VectorExceptions.h.


Member Function Documentation

template<class T>
virtual const T* bpp::ElementNotFoundException< T >::getElement ( ) const [inline, virtual]
template<class T >
virtual const std::vector<T>* bpp::VectorException< T >::getVector ( ) const [inline, virtual, inherited]

Definition at line 80 of file VectorExceptions.h.

References bpp::VectorException< T >::vect_.

template<class T>
ElementNotFoundException& bpp::ElementNotFoundException< T >::operator= ( const ElementNotFoundException< T > &  enfe) [inline]

Definition at line 139 of file VectorExceptions.h.

References bpp::ElementNotFoundException< T >::element_.

const char* bpp::Exception::what ( ) const throw () [inline, inherited]

Method to get the message of the exception (STL method redefinition).

Returns:
The message passed to the exception hierarchy.

Definition at line 86 of file Exceptions.h.

References bpp::Exception::message_.


Member Data Documentation

std::string bpp::Exception::message_ [protected, inherited]

Definition at line 60 of file Exceptions.h.

Referenced by bpp::Exception::what().

template<class T >
const std::vector<T>* bpp::VectorException< T >::vect_ [protected, inherited]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends