|   | - A Logic Circuit Simulation Library in C++ | 
#include <outofrange_exception.h>
Inheritance diagram for lcs::OutOfRangeException< T >:

lcs::InputBus::operator[].
| T | should be a type which supports relational operators like <, >, etc. | 
| Public Member Functions | |
| OutOfRangeException () | |
| OutOfRangeException (T allowedLowerLimit, T allowedUpperLimit, T requestedIndex) | |
| virtual | ~OutOfRangeException () | 
| virtual std::string | getMessage (void) | 
| void | setData (T allowedLowerLimit, T allowedUpperLimit, T requestedIndex) | 
| T | getAllowedLowerLimit () | 
| T | getAllowedUpperLimit () | 
| lcs::OutOfRangeException< T >::OutOfRangeException | ( | ) | 
Default constructor. Exception objects initialised through this constructor should set the exception specific data using the OutOfRangeException::setData function. If the data is not set, then wrong information is reported by the OutOfRangeException::getMessage function. 
| lcs::OutOfRangeException< T >::OutOfRangeException | ( | T | allowedLowerLimit, | |
| T | allowedUpperLimit, | |||
| T | requestedIndex | |||
| ) | 
Data initialising constructor. The exception should occur if the requestedIndex is out the allowed range (allowedLowerLimit, allowedUpperLimit).
| allowedLowerLimit | The allowed lower limit for the data access index. | |
| allowedUpperLimit | The allowed upper limit for the data access index. | |
| requestedIndex | The requested data index which triggered the exception. | 
| virtual lcs::OutOfRangeException< T >::~OutOfRangeException | ( | ) |  [inline, virtual] | 
Virtual destructor.
| T lcs::OutOfRangeException< T >::getAllowedLowerLimit | ( | ) |  [inline] | 
Returns the allowed lower limit.
| T lcs::OutOfRangeException< T >::getAllowedUpperLimit | ( | ) |  [inline] | 
Returns the allowed upper limit.
| std::string lcs::OutOfRangeException< T >::getMessage | ( | void | ) |  [virtual] | 
Returns the exception specific message string generated using the exception data.
Implements lcs::Exception.
| void lcs::OutOfRangeException< T >::setData | ( | T | allowedLowerLimit, | |
| T | allowedUpperLimit, | |||
| T | requestedIndex | |||
| ) | 
Sets the exception specific data. The exception should occur if the requestedIndex is out the allowed range (allowedLowerLimit, allowedUpperLimit).
| allowedLowerLimit | The allowed lower limit for the data access index. | |
| allowedUpperLimit | The allowed upper limit for the data access index. | |
| requestedIndex | The requested data index which triggered the exception. | 
