MyVector
OutOfRange Class Reference

#include <myexceptions.h>

Public Member Functions

 OutOfRange (const long long int &i, const long long int &l)
 Constructor that has to be used with "throw". More...
 
const long long int & Index () const
 Allows the access to the index. More...
 
const long long int & Interval_End () const
 Allows the access to the array length. More...
 

Detailed Description

Exception class in case of an invalid index i that is not in interval [0,l-1].

Definition at line 15 of file myexceptions.h.

Constructor & Destructor Documentation

◆ OutOfRange()

OutOfRange::OutOfRange ( const long long int &  i,
const long long int &  l 
)

Constructor that has to be used with "throw".

Parameters
[in]iindex with i < 0 or i >= l
[in]llength of data array

Definition at line 16 of file myexceptions.cpp.

Member Function Documentation

◆ Index()

const long long int& OutOfRange::Index ( ) const
inline

Allows the access to the index.

Returns
index that is responsible for exception

Definition at line 28 of file myexceptions.h.

Here is the caller graph for this function:

◆ Interval_End()

const long long int& OutOfRange::Interval_End ( ) const
inline

Allows the access to the array length.

Returns
array length

Definition at line 37 of file myexceptions.h.

Here is the caller graph for this function:

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