|
pomerol
2.2
|
A base class for computable objects. More...
#include <ComputableObject.hpp>

Data Structures | |
| class | StatusMismatch |
| Exception: Unexpected computation status of a computable object. More... | |
Public Types | |
| enum | StatusEnum { Constructed , Prepared , Computed } |
| Computation status of the object. More... | |
Public Member Functions | |
| ComputableObject ()=default | |
| StatusEnum | getStatus () const |
| Return the current computation status. More... | |
| void | setStatus (StatusEnum Status_in) |
Protected Attributes | |
| StatusEnum | Status = Constructed |
| Current computation status. More... | |
A base class for computable objects.
Definition at line 28 of file ComputableObject.hpp.
Computation status of the object.
| Enumerator | |
|---|---|
| Constructed | Object has been constructed. |
| Prepared | Object has been prepared for computation (usually means memory allocation). |
| Computed | Object has been computed. |
Definition at line 31 of file ComputableObject.hpp.
|
default |
|
inline |
Return the current computation status.
Definition at line 45 of file ComputableObject.hpp.
|
inline |
Set the computation status.
| [in] | Status_in | New computation status. |
Definition at line 48 of file ComputableObject.hpp.
|
protected |
Current computation status.
Definition at line 39 of file ComputableObject.hpp.