The Sparta Modeling Framework
|
File that defines the Resource class. Consider using sparta::Unit instead. More...
#include <string>
#include <ostream>
#include <type_traits>
#include "sparta/simulation/ResourceContainer.hpp"
#include "sparta/simulation/Clock.hpp"
#include "sparta/utils/SpartaException.hpp"
#include "sparta/kernel/Scheduler.hpp"
#include "sparta/utils/SpartaAssert.hpp"
#include "sparta/simulation/TreeNode.hpp"
#include "sparta/utils/Utils.hpp"
#include "simdb/Errors.hpp"
Go to the source code of this file.
Classes | |
class | sparta::PostRunValidationInfo |
Information describing the type of validation being done. More... | |
class | sparta::Resource |
The is the base class for all types of resources used by the SPARTA framework. More... | |
class | sparta::AssertContext |
Creates a helper traits class for determining whehther a type has a member named getClock. More... | |
Namespaces | |
namespace | sparta |
Macros for handling exponential backoff. | |
Macros | |
#define | ADD_CONTEXT_INFORMATION(ex, thisptr) |
Helper for adding context information to the end of a SpartaException. | |
#define | sparta_assert_context(e, insertions) |
Check condition and throw a sparta exception if condition evaluates to false or 0. Exception will contain as much information about context as this method can figure out. This includes Resources, TreeNodes, and anyt type of this pointer having a getClock method. | |
File that defines the Resource class. Consider using sparta::Unit instead.
Definition in file Resource.hpp.
#define ADD_CONTEXT_INFORMATION | ( | ex, | |
thisptr | |||
) |
Helper for adding context information to the end of a SpartaException.
ex | sparta::Exception |
thisptr | this pointer from context of the call |
Definition at line 379 of file Resource.hpp.
#define sparta_assert_context | ( | e, | |
insertions | |||
) |
Check condition and throw a sparta exception if condition evaluates to false or 0. Exception will contain as much information about context as this method can figure out. This includes Resources, TreeNodes, and anyt type of this pointer having a getClock method.
e | Condition |
insertions | code to insert additional strings to the end of a sparta::Exception omitting the first '<<' operator. (e.g. "1 << 2") |
Example
Definition at line 402 of file Resource.hpp.