[caching] superblock_flags.clear_flag()

This commit is contained in:
Joe Thornber 2013-10-29 11:35:05 +00:00
parent 20bf22e662
commit 471abe52b9
2 changed files with 7 additions and 0 deletions

View File

@ -83,6 +83,12 @@ superblock_flags::set_flag(superblock_flags::flag f)
flags_.insert(f);
}
void
superblock_flags::clear_flag(superblock_flags::flag f)
{
flags_.erase(f);
}
bool
superblock_flags::get_flag(flag f) const
{

View File

@ -30,6 +30,7 @@ namespace caching {
superblock_flags(uint32_t bits);
void set_flag(flag f);
void clear_flag(flag f);
bool get_flag(flag f) const;
uint32_t encode() const;
uint32_t get_unhandled_flags() const;