|
bpp-core
2.2.0
|
Index out of bounds exception class. More...
#include <Bpp/Exceptions.h>
Inheritance diagram for bpp::IndexOutOfBoundsException:
Collaboration diagram for bpp::IndexOutOfBoundsException:Public Member Functions | |
| IndexOutOfBoundsException (const std::string &text, size_t badInt, size_t lowerBound, size_t upperBound) | |
| Build a new IndexOutOfBoundsException. More... | |
| virtual | ~IndexOutOfBoundsException () throw () |
| std::vector< size_t > | getBounds () const |
| Get the bounds. More... | |
| size_t | getBadIndex () const |
| const char * | what () const throw () |
| Method to get the message of the exception (STL method redefinition). More... | |
Protected Attributes | |
| size_t | badIndex_ |
| size_t | lowerBound_ |
| size_t | upperBound_ |
| std::string | message_ |
Index out of bounds exception class.
Definition at line 298 of file Exceptions.h.
| IndexOutOfBoundsException::IndexOutOfBoundsException | ( | const std::string & | text, |
| size_t | badInt, | ||
| size_t | lowerBound, | ||
| size_t | upperBound | ||
| ) |
Build a new IndexOutOfBoundsException.
| text | A message to be passed to the exception hierarchy. |
| badInt | The faulty integer. |
| lowerBound | Lower limit. |
| upperBound | Upper limit. |
Definition at line 80 of file Exceptions.cpp.
|
inlinevirtual | |||||||||||||
Definition at line 316 of file Exceptions.h.
|
inline |
Definition at line 327 of file Exceptions.h.
References badIndex_.
| vector< size_t > IndexOutOfBoundsException::getBounds | ( | ) | const |
Get the bounds.
Definition at line 86 of file Exceptions.cpp.
References lowerBound_, and upperBound_.
|
inlineinherited | |||||||||||||
Method to get the message of the exception (STL method redefinition).
Definition at line 87 of file Exceptions.h.
References bpp::Exception::message_.
|
protected |
Definition at line 302 of file Exceptions.h.
Referenced by getBadIndex().
|
protected |
Definition at line 302 of file Exceptions.h.
Referenced by getBounds().
|
protectedinherited |
Definition at line 61 of file Exceptions.h.
Referenced by bpp::Exception::what().
|
protected |
Definition at line 302 of file Exceptions.h.
Referenced by getBounds().