Spicy
Public Member Functions | List of all members
hilti::type::Flags Class Reference

#include <type.h>

Public Member Functions

 Flags (Flag f)
 
 Flags (const Flags &)=default
 
 Flags (Flags &&) noexcept=default
 
bool has (Flag f) const
 
void set (type::Flag flag, bool set=true)
 
Flags operator+ (Flag f)
 
Flags operator+ (const Flags &other) const
 
Flagsoperator+= (Flag f)
 
Flagsoperator+= (const Flags &other)
 
Flags operator- (const Flags &other) const
 
Flagsoperator-= (Flag f)
 
Flagsoperator-= (const Flags &other)
 
Flagsoperator= (Flag f)
 
Flagsoperator= (const Flags &)=default
 
Flagsoperator= (Flags &&) noexcept=default
 
bool operator== (Flags other) const
 
bool operator!= (Flags other) const
 

Detailed Description

Stores a set of flags associated with a type.

TODO: Replace with 3rd-party/ArticleEnumClass-v2/EnumClass.h

Member Function Documentation

◆ has()

bool hilti::type::Flags::has ( Flag  f) const
inline

Returns true if a given flag has been set.

◆ set()

void hilti::type::Flags::set ( type::Flag  flag,
bool  set = true 
)
inline

Sets (or clear) a given flag.


The documentation for this class was generated from the following file: