Ardour  9.0-pre0-582-g084a23a80d
AudioGrapher::FlagField Class Reference

#include <flag_field.h>

Inheritance diagram for AudioGrapher::FlagField:
[legend]

Classes

class  iterator
 Bi-directional iterator for flag set. Iterates over flags that are set in this field. More...
 

Public Types

typedef uint8_t Flag
 
typedef uint32_t storage_type
 

Public Member Functions

 FlagField ()
 
 FlagField (FlagField const &other)
 
bool has (Flag flag) const
 
storage_type flags () const
 
 operator bool () const
 
void set (Flag flag)
 
void remove (Flag flag)
 
void reset ()
 
FlagField unsupported_flags_of (FlagField const &other) const
 Returns the flags in other that are not set in this field. More...
 
FlagFieldoperator+= (FlagField const &other)
 Set all flags that are set in other. More...
 
bool operator< (FlagField const &other) const
 
iterator begin () const
 
iterator end () const
 

Private Member Functions

 FlagField (storage_type flags)
 

Static Private Member Functions

static Flag max ()
 

Private Attributes

storage_type _flags
 

Detailed Description

Flag field capable of holding 32 flags. Easily grown in size to 64 flags by changing storage_type.

Definition at line 17 of file flag_field.h.

Member Typedef Documentation

◆ Flag

Definition at line 24 of file flag_field.h.

◆ storage_type

Definition at line 25 of file flag_field.h.

Constructor & Destructor Documentation

◆ FlagField() [1/3]

AudioGrapher::FlagField::FlagField ( )
inline

Definition at line 70 of file flag_field.h.

◆ FlagField() [2/3]

AudioGrapher::FlagField::FlagField ( FlagField const &  other)
inline

Definition at line 71 of file flag_field.h.

◆ FlagField() [3/3]

AudioGrapher::FlagField::FlagField ( storage_type  flags)
inlineprivate

Definition at line 102 of file flag_field.h.

Member Function Documentation

◆ begin()

iterator AudioGrapher::FlagField::begin ( ) const
inline

Definition at line 92 of file flag_field.h.

◆ end()

iterator AudioGrapher::FlagField::end ( ) const
inline

Definition at line 99 of file flag_field.h.

◆ flags()

storage_type AudioGrapher::FlagField::flags ( ) const
inline

Definition at line 74 of file flag_field.h.

◆ has()

bool AudioGrapher::FlagField::has ( Flag  flag) const
inline

Definition at line 73 of file flag_field.h.

◆ max()

static Flag AudioGrapher::FlagField::max ( )
inlinestaticprivate

Definition at line 103 of file flag_field.h.

◆ operator bool()

AudioGrapher::FlagField::operator bool ( ) const
inline

Definition at line 75 of file flag_field.h.

◆ operator+=()

FlagField& AudioGrapher::FlagField::operator+= ( FlagField const &  other)
inline

Set all flags that are set in other.

Definition at line 84 of file flag_field.h.

◆ operator<()

bool AudioGrapher::FlagField::operator< ( FlagField const &  other) const
inline

Checks whether this field has all the flags set that are set in other NOTE: Can NOT be used for strict weak ordering!

Returns
true if other has flags set that this field does not

Definition at line 90 of file flag_field.h.

◆ remove()

void AudioGrapher::FlagField::remove ( Flag  flag)
inline

Definition at line 77 of file flag_field.h.

◆ reset()

void AudioGrapher::FlagField::reset ( )
inline

Definition at line 78 of file flag_field.h.

◆ set()

void AudioGrapher::FlagField::set ( Flag  flag)
inline

Definition at line 76 of file flag_field.h.

◆ unsupported_flags_of()

FlagField AudioGrapher::FlagField::unsupported_flags_of ( FlagField const &  other) const
inline

Returns the flags in other that are not set in this field.

Definition at line 81 of file flag_field.h.

Member Data Documentation

◆ _flags

storage_type AudioGrapher::FlagField::_flags
private

Definition at line 105 of file flag_field.h.


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