Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Get ride of ???Ptr types in C++: make pointers explicit
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Jul 2015 08:31:24 +0000 (10:31 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Jul 2015 08:33:07 +0000 (10:33 +0200)
commit54e35ebda7e4ffacd769653b8ebb8ba93c7298bf
tree413818833f33480cd3a7ba0002ec3aba6dba95e2
parenteb9610fbdbfac640b40d9860ef98dfaa7aab6f55
Get ride of ???Ptr types in C++: make pointers explicit

Making pointers explicit is not what we did in C so far, but what we
did was a bad idea. It's easier to code when you know what is a
pointer and what is not.

Also:
- Convert a bunch of C-typecast into static_cast
- Kill some dead or dupplicated code
64 files changed:
include/simgrid/host.h
src/bindings/java/org/simgrid/surf/surfJAVA_wrap.cxx
src/bindings/java/surf.i
src/bindings/java/surf_swig.cpp
src/simgrid/host.cpp
src/surf/cpu_cas01.cpp
src/surf/cpu_cas01.hpp
src/surf/cpu_interface.cpp
src/surf/cpu_interface.hpp
src/surf/cpu_ti.cpp
src/surf/cpu_ti.hpp
src/surf/host_clm03.cpp
src/surf/host_clm03.hpp
src/surf/host_interface.cpp
src/surf/host_interface.hpp
src/surf/host_ptask_L07.cpp
src/surf/host_ptask_L07.hpp
src/surf/maxmin.cpp
src/surf/network_cm02.cpp
src/surf/network_cm02.hpp
src/surf/network_constant.cpp
src/surf/network_constant.hpp
src/surf/network_ib.cpp
src/surf/network_ib.hpp
src/surf/network_interface.cpp
src/surf/network_interface.hpp
src/surf/network_ns3.cpp
src/surf/network_ns3.hpp
src/surf/network_smpi.cpp
src/surf/network_smpi.hpp
src/surf/plugins/energy.cpp
src/surf/plugins/energy.hpp
src/surf/storage_interface.cpp
src/surf/storage_interface.hpp
src/surf/storage_n11.cpp
src/surf/storage_n11.hpp
src/surf/surf_c_bindings.cpp
src/surf/surf_interface.cpp
src/surf/surf_interface.hpp
src/surf/surf_routing.cpp
src/surf/surf_routing.hpp
src/surf/surf_routing_cluster.cpp
src/surf/surf_routing_cluster.hpp
src/surf/surf_routing_cluster_fat_tree.cpp
src/surf/surf_routing_cluster_fat_tree.hpp
src/surf/surf_routing_cluster_torus.cpp
src/surf/surf_routing_cluster_torus.hpp
src/surf/surf_routing_dijkstra.cpp
src/surf/surf_routing_dijkstra.hpp
src/surf/surf_routing_floyd.cpp
src/surf/surf_routing_floyd.hpp
src/surf/surf_routing_full.cpp
src/surf/surf_routing_full.hpp
src/surf/surf_routing_generic.cpp
src/surf/surf_routing_generic.hpp
src/surf/surf_routing_none.cpp
src/surf/surf_routing_none.hpp
src/surf/surf_routing_private.hpp
src/surf/surf_routing_vivaldi.cpp
src/surf/surf_routing_vivaldi.hpp
src/surf/vm_hl13.cpp
src/surf/vm_hl13.hpp
src/surf/vm_interface.cpp
src/surf/vm_interface.hpp