debug.hh (10171:a9be596271b7) | debug.hh (10360:919c02740209) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2010 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 52 unchanged lines hidden (view full) --- 61 62class SimpleFlag : public Flag 63{ 64 protected: 65 bool _status; 66 67 public: 68 SimpleFlag(const char *name, const char *desc) | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2010 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 52 unchanged lines hidden (view full) --- 61 62class SimpleFlag : public Flag 63{ 64 protected: 65 bool _status; 66 67 public: 68 SimpleFlag(const char *name, const char *desc) |
69 : Flag(name, desc) | 69 : Flag(name, desc), _status(false) |
70 { } 71 72 bool status() const { return _status; } 73 operator bool() const { return _status; } 74 bool operator!() const { return !_status; } 75 76 void enable() { _status = true; } 77 void disable() { _status = false; } --- 54 unchanged lines hidden --- | 70 { } 71 72 bool status() const { return _status; } 73 operator bool() const { return _status; } 74 bool operator!() const { return !_status; } 75 76 void enable() { _status = true; } 77 void disable() { _status = false; } --- 54 unchanged lines hidden --- |