[caching] superblock_flags.clear_flag()
This commit is contained in:
@@ -83,6 +83,12 @@ superblock_flags::set_flag(superblock_flags::flag f)
|
|||||||
flags_.insert(f);
|
flags_.insert(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
superblock_flags::clear_flag(superblock_flags::flag f)
|
||||||
|
{
|
||||||
|
flags_.erase(f);
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
superblock_flags::get_flag(flag f) const
|
superblock_flags::get_flag(flag f) const
|
||||||
{
|
{
|
||||||
|
@@ -30,6 +30,7 @@ namespace caching {
|
|||||||
superblock_flags(uint32_t bits);
|
superblock_flags(uint32_t bits);
|
||||||
|
|
||||||
void set_flag(flag f);
|
void set_flag(flag f);
|
||||||
|
void clear_flag(flag f);
|
||||||
bool get_flag(flag f) const;
|
bool get_flag(flag f) const;
|
||||||
uint32_t encode() const;
|
uint32_t encode() const;
|
||||||
uint32_t get_unhandled_flags() const;
|
uint32_t get_unhandled_flags() const;
|
||||||
|
Reference in New Issue
Block a user