diff options
author | Nathan Binkert <nate@binkert.org> | 2008-12-06 14:18:18 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-12-06 14:18:18 -0800 |
commit | e141cb7441e79b3596c795faf9f47424f26c65e9 (patch) | |
tree | 2d1d03085ab989e884bab73c977cf21a07c40ce0 /src/base | |
parent | dd788a23c972ec45248ad42e58eaa5141160cff9 (diff) | |
download | gem5-e141cb7441e79b3596c795faf9f47424f26c65e9.tar.xz |
flags: Change naming of functions to be clearer
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/flags.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/base/flags.hh b/src/base/flags.hh index 712b65319..2e0506391 100644 --- a/src/base/flags.hh +++ b/src/base/flags.hh @@ -59,12 +59,12 @@ class Flags return *this; } - bool any() const { return _flags; } - bool any(Type flags) const { return (_flags & flags); } - bool all() const { return !(~_flags); } - bool all(Type flags) const { return (_flags & flags) == flags; } - bool none() const { return _flags == 0; } - bool none(Type flags) const { return (_flags & flags) == 0; } + bool isSet() const { return _flags; } + bool isSet(Type flags) const { return (_flags & flags); } + bool allSet() const { return !(~_flags); } + bool allSet(Type flags) const { return (_flags & flags) == flags; } + bool noneSet() const { return _flags == 0; } + bool noneSet(Type flags) const { return (_flags & flags) == 0; } void clear() { _flags = 0; } void clear(Type flags) { _flags &= ~flags; } void set(Type flags) { _flags |= flags; } |