Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert EventSet into class from typedef
authorMaxwell Pirtle <maxwellpirtle@gmail.com>
Mon, 6 Feb 2023 08:37:54 +0000 (09:37 +0100)
committerMaxwell Pirtle <maxwellpirtle@gmail.com>
Mon, 20 Feb 2023 09:43:52 +0000 (10:43 +0100)
commitccfeaa470e44bfcd88de96d05476c9e82e7e98d0
treed36160be34590562f4a82a48f472af65dae2746a
parent61b7c446f0db88229dcab1b22d7f11a84257f990
Convert EventSet into class from typedef

The EventSet object was simply typedef-ed to
a std::deque<UnfoldingEvent *>. While this
worked, it caused a lot of the code in tiny-simgrid
to be a bit more difficult to read since it
required the use of a more C-like idiom of passing
`this` as an explicit argument in EvtSetTools.

Effectively, the idea to absorb all of the EvtSetTools
methods into the EventSet class directly. This will
give a more natural C++ (instead of C) look to the
resulting code in the UDPOR algorithm
src/mc/udpor_global.cpp
src/mc/udpor_global.hpp