Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Member initialization in Variable, Member, Type
[simgrid.git] / src / mc / Variable.hpp
1 /* Copyright (c) 2007-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_MC_VARIABLE_HPP
8 #define SIMGRID_MC_VARIABLE_HPP
9
10 #include <string>
11
12 #include <xbt/base.h>
13
14 #include "src/mc/mc_forward.h"
15 #include "src/mc/LocationList.hpp"
16
17 namespace simgrid {
18 namespace mc {
19
20 /** A variable (global or local) in the model-checked program */
21 class Variable {
22 public:
23   Variable() {}
24   unsigned dwarf_offset = 0; /* Global offset of the field. */
25   int global = 0;
26   std::string name;
27   unsigned type_id = 0;
28   simgrid::mc::Type* type = nullptr;
29   // Use either of:
30   simgrid::dwarf::LocationList location_list;
31   void* address = nullptr;
32   size_t start_scope = 0;
33   simgrid::mc::ObjectInformation* object_info = nullptr;
34 };
35
36 }
37 }
38
39 #endif