bpp-core  2.2.0
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
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 >:

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). More...
 

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 (
)
inlinevirtual

Definition at line 146 of file VectorExceptions.h.

Member Function Documentation

template<class T>
virtual const T* bpp::ElementNotFoundException< T >::getElement ( ) const
inlinevirtual
template<class T >
virtual const std::vector<T>* bpp::VectorException< T >::getVector ( ) const
inlinevirtualinherited

Definition at line 80 of file VectorExceptions.h.

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

const char* bpp::Exception::what ( ) const
throw (
)
inlineinherited

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

Returns
The message passed to the exception hierarchy.

Definition at line 87 of file Exceptions.h.

References bpp::Exception::message_.

Member Data Documentation

template<class T>
const T* bpp::ElementNotFoundException< T >::element_
private
std::string bpp::Exception::message_
protectedinherited

Definition at line 61 of file Exceptions.h.

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

template<class T >
const std::vector<T>* bpp::VectorException< T >::vect_
protectedinherited

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