/src/harfbuzz/src/OT/Layout/GPOS/PairPos.hh
Line | Count | Source |
1 | | #ifndef OT_LAYOUT_GPOS_PAIRPOS_HH |
2 | | #define OT_LAYOUT_GPOS_PAIRPOS_HH |
3 | | |
4 | | #include "PairPosFormat1.hh" |
5 | | #include "PairPosFormat2.hh" |
6 | | |
7 | | namespace OT { |
8 | | namespace Layout { |
9 | | namespace GPOS_impl { |
10 | | |
11 | | struct PairPos |
12 | | { |
13 | | protected: |
14 | | union { |
15 | | struct { HBUINT16 v; } format; /* Format identifier */ |
16 | | PairPosFormat1_3<SmallTypes> format1; |
17 | | PairPosFormat2_4<SmallTypes> format2; |
18 | | #ifndef HB_NO_BEYOND_64K |
19 | | PairPosFormat1_3<MediumTypes> format3; |
20 | | PairPosFormat2_4<MediumTypes> format4; |
21 | | #endif |
22 | | } u; |
23 | | |
24 | | public: |
25 | | template <typename context_t, typename ...Ts> |
26 | | typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const |
27 | 88.9k | { |
28 | 88.9k | if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value (); |
29 | 88.9k | TRACE_DISPATCH (this, u.format.v); |
30 | 88.9k | switch (u.format.v) { |
31 | 10.9k | case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...)); |
32 | 13.0k | case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...)); |
33 | 0 | #ifndef HB_NO_BEYOND_64K |
34 | 7.14k | case 3: return_trace (c->dispatch (u.format3, std::forward<Ts> (ds)...)); |
35 | 2.82k | case 4: return_trace (c->dispatch (u.format4, std::forward<Ts> (ds)...)); |
36 | 0 | #endif |
37 | 54.9k | default:return_trace (c->default_return_value ()); |
38 | 88.9k | } |
39 | 88.9k | } Unexecuted instantiation: OT::hb_intersects_context_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<OT::hb_intersects_context_t>(OT::hb_intersects_context_t*) const Unexecuted instantiation: OT::hb_ot_apply_context_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<OT::hb_ot_apply_context_t>(OT::hb_ot_apply_context_t*) const Unexecuted instantiation: OT::hb_collect_glyphs_context_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<OT::hb_collect_glyphs_context_t>(OT::hb_collect_glyphs_context_t*) const Unexecuted instantiation: OT::hb_closure_lookups_context_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<OT::hb_closure_lookups_context_t>(OT::hb_closure_lookups_context_t*) const Unexecuted instantiation: hb_subset_context_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<hb_subset_context_t>(hb_subset_context_t*) const hb_sanitize_context_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<hb_sanitize_context_t>(hb_sanitize_context_t*) const Line | Count | Source | 27 | 50.7k | { | 28 | 50.7k | if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value (); | 29 | 50.7k | TRACE_DISPATCH (this, u.format.v); | 30 | 50.7k | switch (u.format.v) { | 31 | 6.65k | case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...)); | 32 | 8.47k | case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...)); | 33 | 0 | #ifndef HB_NO_BEYOND_64K | 34 | 4.33k | case 3: return_trace (c->dispatch (u.format3, std::forward<Ts> (ds)...)); | 35 | 1.80k | case 4: return_trace (c->dispatch (u.format4, std::forward<Ts> (ds)...)); | 36 | 0 | #endif | 37 | 29.4k | default:return_trace (c->default_return_value ()); | 38 | 50.7k | } | 39 | 50.7k | } |
Unexecuted instantiation: OT::hb_collect_variation_indices_context_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<OT::hb_collect_variation_indices_context_t>(OT::hb_collect_variation_indices_context_t*) const OT::hb_accelerate_subtables_context_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<OT::hb_accelerate_subtables_context_t>(OT::hb_accelerate_subtables_context_t*) const Line | Count | Source | 27 | 38.2k | { | 28 | 38.2k | if (unlikely (!c->may_dispatch (this, &u.format.v))) return c->no_dispatch_return_value (); | 29 | 38.2k | TRACE_DISPATCH (this, u.format.v); | 30 | 38.2k | switch (u.format.v) { | 31 | 4.25k | case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...)); | 32 | 4.61k | case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...)); | 33 | 0 | #ifndef HB_NO_BEYOND_64K | 34 | 2.81k | case 3: return_trace (c->dispatch (u.format3, std::forward<Ts> (ds)...)); | 35 | 1.02k | case 4: return_trace (c->dispatch (u.format4, std::forward<Ts> (ds)...)); | 36 | 0 | #endif | 37 | 25.5k | default:return_trace (c->default_return_value ()); | 38 | 38.2k | } | 39 | 38.2k | } |
Unexecuted instantiation: hb_position_single_dispatch_t::return_t OT::Layout::GPOS_impl::PairPos::dispatch<hb_position_single_dispatch_t, hb_font_t*&, hb_blob_t*&, hb_direction_t&, unsigned int&, hb_glyph_position_t&>(hb_position_single_dispatch_t*, hb_font_t*&, hb_blob_t*&, hb_direction_t&, unsigned int&, hb_glyph_position_t&) const |
40 | | }; |
41 | | |
42 | | } |
43 | | } |
44 | | } |
45 | | |
46 | | #endif // OT_LAYOUT_GPOS_PAIRPOS_HH |