Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
Supported Class Reference

#include "lib/time/formats.hpp"

Description

Descriptor to denote support for a specific (timecode) format.

This helper can be used to configure a selection of specific timecode formats to be or not to be supported by some facility. Formats are described by the format descriptor types defined in this header (or elsewhere for additional formats). This helper establishes an numeric ID at runtime and uses a bitset to keep track of the support for a given format.

Note
preconfigured limit MAXID on the absolute number of different Format types; maybe needs to be increased accordingly.
Warning
the actual numeric IDs might vary on each run
See also
TypedContext

Definition at line 187 of file formats.hpp.

Static Public Member Functions

template<typename TY >
static Supported formats ()
 build a new Descriptor to denote support for all the Formats,
 

Public Member Functions

template<class F >
bool check () const
 check if a specific Format is supported
 

Private Types

enum  { MAXID = 8 }
 

Private Member Functions

template<class F >
IxID typeID () const
 
template<class F , class FS >
Supported define (Node< F, FS >)
 
Supported define (Nil)
 
 Supported ()
 

Private Attributes

std::bitset< MAXIDflags_
 

Constructor & Destructor Documentation

◆ Supported()

Supported ( )
inlineprivate
Note
use formats to set up a new descriptor

Definition at line 209 of file formats.hpp.

Referenced by Supported::formats().

+ Here is the caller graph for this function:

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MAXID 

Definition at line 189 of file formats.hpp.

Member Function Documentation

◆ typeID()

template<class F >
IxID typeID ( ) const
inlineprivate

Definition at line 195 of file formats.hpp.

◆ define() [1/2]

template<class F , class FS >
Supported define ( Node< F, FS >  )
inlineprivate

Definition at line 202 of file formats.hpp.

References Supported::define(), and Supported::flags_.

Referenced by Supported::define(), and Supported::formats().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ define() [2/2]

Supported define ( Nil  )
inlineprivate

recursion end

Definition at line 207 of file formats.hpp.

◆ formats()

template<typename TY >
static Supported formats ( )
inlinestatic

build a new Descriptor to denote support for all the Formats,

Parameters
TYtypelist holding all the Format types to support

Definition at line 218 of file formats.hpp.

References Supported::Supported(), and Supported::define().

+ Here is the call graph for this function:

◆ check()

template<class F >
bool check ( ) const
inline

check if a specific Format is supported

Definition at line 227 of file formats.hpp.

References Supported::flags_.

Referenced by FormatSupport_test::run(), and Quantiser::supports().

+ Here is the caller graph for this function:

Member Data Documentation

◆ flags_

std::bitset<MAXID> flags_
private

Definition at line 191 of file formats.hpp.

Referenced by Supported::check(), and Supported::define().

+ Inheritance diagram for Supported:
+ Collaboration diagram for Supported:

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