Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
31f49c9c47046f2f8ca5a1d340b23f4480bd72f2
[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 "mc_forward.h"
15 #include "mc_location.h"
16
17 namespace simgrid {
18 namespace mc {
19
20 class Variable {
21 public:
22   Variable();
23
24   unsigned dwarf_offset; /* Global offset of the field. */
25   int global;
26   std::string name;
27   unsigned type_id;
28   simgrid::mc::Type* type;
29
30   // Use either of:
31   simgrid::mc::LocationList location_list;
32   void* address;
33
34   size_t start_scope;
35   simgrid::mc::ObjectInformation* object_info;
36 };
37
38 inline
39 Variable::Variable()
40 {
41   this->dwarf_offset = 0;
42   this->global = 0;
43   this->type = nullptr;
44   this->type_id = 0;
45   this->address = nullptr;
46   this->start_scope = 0;
47   this->object_info = nullptr;
48 }
49
50 }
51 }
52
53 #endif