8 * Base class for objects which have flags.
10 * @author Andrew Mustun
15 /** Default constructor. Resets all flags to 0. */
20 /** Constructor with initialisation to the given flags. */
21 RS_Flags(unsigned int f) {
25 virtual ~RS_Flags() {}
27 unsigned int getFlags() const {
35 void setFlags(unsigned int f) {
39 void setFlag(unsigned int f) {
43 void delFlag(unsigned int f) {
47 void toggleFlag(unsigned int f) {
51 bool getFlag(unsigned int f) const {