Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
4ca7ff8250f739d0d8d0767fce4f7a4aea407613
[simgrid.git] / src / mc / transition / TransitionObjectAccess.hpp
1 /* Copyright (c) 2015-2023. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMGRID_MC_TRANSITION_OBJECT_ACCESS_HPP
7 #define SIMGRID_MC_TRANSITION_OBJECT_ACCESS_HPP
8
9 #include "src/mc/transition/Transition.hpp"
10
11 namespace simgrid::mc {
12 XBT_DECLARE_ENUM_CLASS(ObjectAccessType, ENTER, EXIT, BOTH);
13
14 class ObjectAccessTransition : public Transition {
15   ObjectAccessType access_type_;
16   void* objaddr_;
17   std::string objname_;
18   std::string file_;
19   int line_;
20
21 public:
22   ObjectAccessTransition(aid_t issuer, int times_considered, std::stringstream& stream);
23   std::string to_string(bool verbose) const override;
24   bool depends(const Transition* other) const override;
25 };
26
27 } // namespace simgrid::mc
28
29 #endif