#include <RBCTestLogic.h>
Public Member Functions | |
std::bitset< 6 > * | getlayersignal (int _idx) |
void | process (const RBCInput &, std::bitset< 2 > &) |
RBCTestLogic () | |
Standard constructor. | |
void | setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &) |
virtual | ~RBCTestLogic () |
Destructor. | |
Private Attributes | |
std::bitset< 6 > | m_testlayer [2] |
RBCTestLogic::RBCTestLogic | ( | ) |
RBCTestLogic::~RBCTestLogic | ( | ) | [virtual] |
std::bitset<6>* RBCTestLogic::getlayersignal | ( | int | _idx | ) | [inline, virtual] |
void RBCTestLogic::process | ( | const RBCInput & | _input, |
std::bitset< 2 > & | _decision | ||
) | [virtual] |
Implements RBCLogic.
Definition at line 27 of file RBCTestLogic.cc.
References gather_cfg::cout, i, RBCInput::input_sec, gen::k, and m_testlayer.
{ std::cout << "RBCTestLogic> Implementing just a plain OR" << '\n'; std::bitset<15> _data[2]; _data[0] = _input.input_sec[0]; _data[1] = _input.input_sec[1]; bool _ds = true; for(int i=0; i < 15; ++i) _ds = _ds | _data[0][i]; _decision.set(0,_ds); _ds = true; for(int i=0; i < 15; ++i) _ds = _ds | _data[1][i]; _decision.set(1,_ds); //...Layer information: for(int k=0; k < 6; ++k) { m_testlayer[0].set(k,1); m_testlayer[1].set(k,0); } //.... }
void RBCTestLogic::setBoardSpecs | ( | const RBCBoardSpecs::RBCBoardConfig & | specs | ) | [virtual] |
std::bitset<6> RBCTestLogic::m_testlayer[2] [private] |
Definition at line 34 of file RBCTestLogic.h.
Referenced by process().