Logo AND Algorithmique Numérique Distribuée

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