#include <RBCPatternLogic.h>
Public Member Functions | |
std::bitset< 6 > * | getlayersignal (int _idx) |
void | process (const RBCInput &, std::bitset< 2 > &) |
RBCPatternLogic () | |
Standard constructor. | |
void | setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &) |
virtual | ~RBCPatternLogic () |
Destructor. | |
Private Attributes | |
std::bitset< 6 > | m_testlayer [2] |
RBCPatternLogic::RBCPatternLogic | ( | ) |
RBCPatternLogic::~RBCPatternLogic | ( | ) | [virtual] |
std::bitset<6>* RBCPatternLogic::getlayersignal | ( | int | _idx | ) | [inline, virtual] |
Implements RBCLogic.
Definition at line 31 of file RBCPatternLogic.h.
{ return &m_testlayer[_idx];};
void RBCPatternLogic::process | ( | const RBCInput & | _input, |
std::bitset< 2 > & | _decision | ||
) | [virtual] |
Implements RBCLogic.
Definition at line 28 of file RBCPatternLogic.cc.
References gather_cfg::cout, gen::k, and m_testlayer.
{ std::cout << "RBCPatternLogic> Working with pattern logic" << '\n'; _decision.set(0,1); _decision.set(1,1); //...Layer information: for(int k=0; k < 6; ++k) { m_testlayer[0].set(k,1); m_testlayer[1].set(k,0); } //.... }
void RBCPatternLogic::setBoardSpecs | ( | const RBCBoardSpecs::RBCBoardConfig & | specs | ) | [virtual] |
std::bitset<6> RBCPatternLogic::m_testlayer[2] [private] |
Definition at line 31 of file RBCPatternLogic.h.
Referenced by process().