/*
   HARK Library
   Copyright (C) 2021 Honda Research Institute Japan Inc.
 */

#if !defined(_HARKLIB_NODE_POWER_CALC_FOR_MAP_H_INCLUDED_)
#define _HARKLIB_NODE_POWER_CALC_FOR_MAP_H_INCLUDED_ 1

#include "hark-lib/hark-lib.h"
#include "hark-lib/node.h"

#include <string>
#include <vector>
#include <complex>

namespace hark
{
namespace node
{
    class PowerCalcForMap: public NodeDef
    {
    public:
        PowerCalcForMap();

        void initialize(InputDataBundle &input);
        virtual void reset();
        virtual bool operator () (size_t count, InputDataBundle &input, OutputDataBundle &output);

    private:
        enum class POWER_TYPE : int64_t {
            POW = 0,
            MAG = 1
        };
        POWER_TYPE power_type;
    };
}
}

#endif /* #if !defined(_HARKLIB_NODE_POWER_CALC_FOR_MAP_H_INCLUDED_) */

/* end of file */
