summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-12-06 14:18:18 -0800
committerNathan Binkert <nate@binkert.org>2008-12-06 14:18:18 -0800
commite141cb7441e79b3596c795faf9f47424f26c65e9 (patch)
tree2d1d03085ab989e884bab73c977cf21a07c40ce0 /src/base
parentdd788a23c972ec45248ad42e58eaa5141160cff9 (diff)
downloadgem5-e141cb7441e79b3596c795faf9f47424f26c65e9.tar.xz
flags: Change naming of functions to be clearer
Diffstat (limited to 'src/base')
-rw-r--r--src/base/flags.hh12
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; }