QtBase  v6.3.1
Classes | Macros
hb-machinery.hh File Reference
#include "hb.hh"
#include "hb-blob.hh"
#include "hb-dispatch.hh"
#include "hb-sanitize.hh"
#include "hb-serialize.hh"
Include dependency graph for hb-machinery.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hb_data_wrapper_t< Data, WheresData >
 
struct  hb_data_wrapper_t< void, 0 >
 
struct  hb_non_void_t< T1, T2 >
 
struct  hb_non_void_t< void, T2 >
 
struct  hb_lazy_loader_t< Returned, Subclass, Data, WheresData, Stored >
 
struct  hb_face_lazy_loader_t< T, WheresFace >
 
struct  hb_table_lazy_loader_t< T, WheresFace, core >
 
struct  hb_font_funcs_lazy_loader_t< Subclass >
 
struct  hb_unicode_funcs_lazy_loader_t< Subclass >
 

Macros

#define HB_VAR_ARRAY   1
 
#define _DEFINE_INSTANCE_ASSERTION1(_line, _assertion)
 
#define _DEFINE_INSTANCE_ASSERTION0(_line, _assertion)   _DEFINE_INSTANCE_ASSERTION1 (_line, _assertion)
 
#define DEFINE_INSTANCE_ASSERTION(_assertion)   _DEFINE_INSTANCE_ASSERTION0 (__LINE__, _assertion)
 
#define _DEFINE_COMPILES_ASSERTION1(_line, _code)
 
#define _DEFINE_COMPILES_ASSERTION0(_line, _code)   _DEFINE_COMPILES_ASSERTION1 (_line, _code)
 
#define DEFINE_COMPILES_ASSERTION(_code)   _DEFINE_COMPILES_ASSERTION0 (__LINE__, _code)
 
#define DEFINE_SIZE_STATIC(size)
 
#define DEFINE_SIZE_UNION(size, _member)
 
#define DEFINE_SIZE_MIN(size)
 
#define DEFINE_SIZE_UNBOUNDED(size)
 
#define DEFINE_SIZE_ARRAY(size, array)
 
#define DEFINE_SIZE_ARRAY_SIZED(size, array)
 

Macro Definition Documentation

◆ _DEFINE_COMPILES_ASSERTION0

#define _DEFINE_COMPILES_ASSERTION0 (   _line,
  _code 
)    _DEFINE_COMPILES_ASSERTION1 (_line, _code)

Definition at line 99 of file hb-machinery.hh.

◆ _DEFINE_COMPILES_ASSERTION1

#define _DEFINE_COMPILES_ASSERTION1 (   _line,
  _code 
)
Value:
void _compiles_assertion_on_line_##_line () const \
{ _code; }
auto it unsigned count const
Definition: hb-iter.hh:848

Definition at line 96 of file hb-machinery.hh.

◆ _DEFINE_INSTANCE_ASSERTION0

#define _DEFINE_INSTANCE_ASSERTION0 (   _line,
  _assertion 
)    _DEFINE_INSTANCE_ASSERTION1 (_line, _assertion)

Definition at line 92 of file hb-machinery.hh.

◆ _DEFINE_INSTANCE_ASSERTION1

#define _DEFINE_INSTANCE_ASSERTION1 (   _line,
  _assertion 
)
Value:
void _instance_assertion_on_line_##_line () const \
{ static_assert ((_assertion), ""); }

Definition at line 89 of file hb-machinery.hh.

◆ DEFINE_COMPILES_ASSERTION

#define DEFINE_COMPILES_ASSERTION (   _code)    _DEFINE_COMPILES_ASSERTION0 (__LINE__, _code)

Definition at line 100 of file hb-machinery.hh.

◆ DEFINE_INSTANCE_ASSERTION

#define DEFINE_INSTANCE_ASSERTION (   _assertion)    _DEFINE_INSTANCE_ASSERTION0 (__LINE__, _assertion)

Definition at line 93 of file hb-machinery.hh.

◆ DEFINE_SIZE_ARRAY

#define DEFINE_SIZE_ARRAY (   size,
  array 
)
Value:
DEFINE_COMPILES_ASSERTION ((void) (array)[0].static_size) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + (HB_VAR_ARRAY+0) * sizeof ((array)[0])) \
static constexpr unsigned null_size = (size); \
static constexpr unsigned min_size = (size)
#define HB_VAR_ARRAY
Definition: hb-machinery.hh:85
#define DEFINE_COMPILES_ASSERTION(_code)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum array
Definition: qopenglext.h:7028

Definition at line 125 of file hb-machinery.hh.

◆ DEFINE_SIZE_ARRAY_SIZED

#define DEFINE_SIZE_ARRAY_SIZED (   size,
  array 
)
Value:
unsigned int get_size () const { return (size - (array).min_size + (array).get_size ()); } \
DEFINE_SIZE_ARRAY(size, array)

Definition at line 131 of file hb-machinery.hh.

◆ DEFINE_SIZE_MIN

#define DEFINE_SIZE_MIN (   size)
Value:
DEFINE_INSTANCE_ASSERTION (sizeof (*this) >= (size)) \
static constexpr unsigned null_size = (size); \
static constexpr unsigned min_size = (size)
#define DEFINE_INSTANCE_ASSERTION(_assertion)
Definition: hb-machinery.hh:93

Definition at line 116 of file hb-machinery.hh.

◆ DEFINE_SIZE_STATIC

#define DEFINE_SIZE_STATIC (   size)
Value:
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size)) \
unsigned int get_size () const { return (size); } \
static constexpr unsigned null_size = (size); \
static constexpr unsigned min_size = (size); \
static constexpr unsigned static_size = (size)

Definition at line 103 of file hb-machinery.hh.

◆ DEFINE_SIZE_UNBOUNDED

#define DEFINE_SIZE_UNBOUNDED (   size)
Value:
DEFINE_INSTANCE_ASSERTION (sizeof (*this) >= (size)) \
static constexpr unsigned min_size = (size)

Definition at line 121 of file hb-machinery.hh.

◆ DEFINE_SIZE_UNION

#define DEFINE_SIZE_UNION (   size,
  _member 
)
Value:
DEFINE_COMPILES_ASSERTION ((void) this->u._member.static_size) \
DEFINE_INSTANCE_ASSERTION (sizeof(this->u._member) == (size)) \
static constexpr unsigned null_size = (size); \
static constexpr unsigned min_size = (size)
small capitals from c petite p scientific f u
Definition: afcover.h:88

Definition at line 110 of file hb-machinery.hh.

◆ HB_VAR_ARRAY

#define HB_VAR_ARRAY   1

Definition at line 85 of file hb-machinery.hh.