Program Listing for File Step.h

Return to documentation for file (necsim/Step.h)

//This file is part of necsim project which is released under MIT license.
//See file **LICENSE.txt** or visit https://opensource.org/licenses/MIT) for full license details.

#ifndef STEP_H
#define STEP_H

#include "Cell.h"
#include "MapLocation.h"
namespace necsim
{
    struct Step : virtual public MapLocation
    {
        unsigned long chosen, coalchosen;
        bool coal, bContinueSim;
        unsigned int time_reference;
#ifdef verbose
        long number_printed;
#endif

        Step()
        {
            chosen = 0;
            coalchosen = 0;
            coal = false;
            bContinueSim = true;
            time_reference = 0;
#ifdef verbose
            number_printed = 0;
#endif
        }

        Step(const Cell &cell)
        {
            x = cell.x;
            y = cell.y;
            xwrap = 0;
            ywrap = 0;
            coal = false;
            bContinueSim = true;
        }

        void wipeData()
        {
            chosen = 0;
            coalchosen = 0;
            x = 0;
            y = 0;
            xwrap = 0;
            ywrap = 0;
            coal = false;
        }

    };
}
#endif