 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef MSBitSetLogic_h
20 #define MSBitSetLogic_h
51 typedef std::vector< std::bitset< N > >
Logic;
55 typedef std::vector< std::bitset< N > >
Foes;
63 std::bitset<SUMO_MAX_CONNECTIONS> conts)
90 for (
typename Logic::const_iterator i =
myLogic->begin(); i !=
myLogic->end(); ++i) {
MSBitSetLogic & operator=(const MSBitSetLogic &)
Invalidated assignment operator.
std::vector< std::bitset< N > > Foes
Container holding the information which internal lanes prohibt which links Build the same way as Logi...
~MSBitSetLogic()
Destructor.
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.
int nLinks()
Returns the logic's number of links.
MSBitSetLogic< SUMO_MAX_CONNECTIONS > MSBitsetLogic
Foes * myInternalLinksFoes
internal lanes logic
const MSLogicJunction::LinkBits & getResponseFor(int linkIndex) const
Returns the response for the given link.
std::bitset< SUMO_MAX_CONNECTIONS > myConts
bool getIsCont(int linkIndex) const
std::bitset< SUMO_MAX_CONNECTIONS > LinkBits
Container for link response and foes.
virtual bool hasFoes() const
const MSLogicJunction::LinkBits & getFoesFor(int linkIndex) const
Returns the foes for the given link.
Logic * myLogic
junctions logic based on std::bitset