49 typedef std::vector< std::bitset< N > >
Logic;
53 typedef std::vector< std::bitset< N > >
Foes;
61 std::bitset<SUMO_MAX_CONNECTIONS> conts)
88 for (
typename Logic::const_iterator i =
myLogic->begin(); i !=
myLogic->end(); ++i) {
MSBitSetLogic< SUMO_MAX_CONNECTIONS > MSBitsetLogic
const MSLogicJunction::LinkBits & getFoesFor(int linkIndex) const
Returns the foes for the given link.
MSBitSetLogic & operator=(const MSBitSetLogic &)
Invalidated assignment operator.
Logic * myLogic
junctions logic based on std::bitset
virtual bool hasFoes() const
std::vector< std::bitset< N > > Foes
Container holding the information which internal lanes prohibt which links Build the same way as Logi...
Foes * myInternalLinksFoes
internal lanes logic
MSBitSetLogic(const MSBitSetLogic &)
Invalidated copy constructor.
std::vector< std::bitset< N > > Logic
Container that holds the right of way bitsets. Each link has it's own bitset. The bits in the bitsets...
MSBitSetLogic(int nLinks, Logic *logic, Foes *foes, std::bitset< SUMO_MAX_CONNECTIONS > conts)
Use this constructor only.
const MSLogicJunction::LinkBits & getResponseFor(int linkIndex) const
Returns the response for the given link.
std::bitset< SUMO_MAX_CONNECTIONS > myConts
~MSBitSetLogic()
Destructor.
bool getIsCont(int linkIndex) const
int nLinks()
Returns the logic's number of links.
std::bitset< SUMO_MAX_CONNECTIONS > LinkBits
Container for link response and foes.