|
TuringSim
C++ framework to simulate abstract computing models
|
Exception thrown when attempting to bound a modifier to a memory structure that is already bound to another modifier. More...
#include <memory/memoryStructure.h>


Public Member Functions | |
| ExistingModifierException ()=delete | |
| An ExistingModifierException must contain an error message, a pointer to the memory structure, and a pointer to the existing modifier. | |
| ExistingModifierException (std::string message, const Memory *memory, const Modifier *modifier) | |
| Build an ExistingModifierException from an error message, a pointer to the memory structure, and a pointer to the existing modifier. More... | |
| const Memory * | getMemory () const |
| Access the memory structure. More... | |
| const Modifier * | getModifier () const |
| Access the existing modifier. More... | |
Protected Member Functions | |
| virtual std::string | makeFullMessage () const override |
| Build the full error message. It should be overridden by derived class that adds data to the exception. More... | |
Protected Attributes | |
| const Memory * | memory |
| The involved memory structure. | |
| const Modifier * | modifier |
| The other modifier. | |
Exception thrown when attempting to bound a modifier to a memory structure that is already bound to another modifier.
| Memory | the type of the memory structure. |
| Modifier | the type of the memory modifier. |
Definition at line 57 of file memoryStructure.h.
|
inline |
Build an ExistingModifierException from an error message, a pointer to the memory structure, and a pointer to the existing modifier.
| [in] | message | explicative error message. |
| [in] | memory | the memory structure. |
| [in] | modifier | the existing modifier. |
Definition at line 68 of file memoryStructure.h.
|
inline |
Access the memory structure.
Definition at line 75 of file memoryStructure.h.
|
inline |
Access the existing modifier.
Definition at line 82 of file memoryStructure.h.
|
inlineoverrideprotectedvirtual |
Build the full error message. It should be overridden by derived class that adds data to the exception.
This is called the first time the full error is requested, the result is then memoized.
Reimplemented from TuringSim::Utils::MessageException.
Definition at line 87 of file memoryStructure.h.