CppLogicGateSimulator / node.h
node.h
Raw
#pragma once

#ifndef NODE_H_INCLUDED
#define NODE_H_INCLUDED

using namespace std;

class node
{
    public:
        //Variables:
        string name;
        bool value;
        bool alreadyComputed;

        //Functions:
        node(string nodeName);
        node(string nodeName, bool nodeValue);
        void setValue(bool nodeValue);
        void showValue();
};

#endif // NODE_H_INCLUDED