linbox
BooleanSwitchFactory Class Reference

Public Member Functions

 BooleanSwitchFactory (const std::vector< bool > &switches)
 Constructor from an STL vector of bools.
 
BooleanSwitch makeSwitch ()
 Construct and return a boolean switch object.
 

Constructor & Destructor Documentation

◆ BooleanSwitchFactory()

BooleanSwitchFactory ( const std::vector< bool > & switches)
inline

Constructor from an STL vector of bools.

Member Function Documentation

◆ makeSwitch()

BooleanSwitch makeSwitch ( )
inline

Construct and return a boolean switch object.

This function walks through the switches object given in the constructor, advancing on each invocation. It wraps around to the beginning of the vector when it reaches the end.


The documentation for this class was generated from the following file: