|
slot 0.0.1
A real time UI render framework
|
#include <StyleValuePool.h>

Public 成员函数 | |
| void | store (StyleValueHandle &handle, StyleLength length) |
| void | store (StyleValueHandle &handle, StyleSizeLength sizeValue) |
| void | store (StyleValueHandle &handle, FloatOptional number) |
| StyleLength | getLength (StyleValueHandle handle) const |
| StyleSizeLength | getSize (StyleValueHandle handle) const |
| FloatOptional | getNumber (StyleValueHandle handle) const |
| float | getStoredValue (StyleValueHandle handle) const |
Private 成员函数 | |
| void | storeValue (StyleValueHandle &handle, float value, StyleValueHandle::Type type) |
| void | storeKeyword (StyleValueHandle &handle, StyleValueHandle::Keyword keyword) |
静态 Private 成员函数 | |
| static constexpr bool | isIntegerPackable (float f) |
| static constexpr uint16_t | packInlineInteger (float value) |
| static constexpr float | unpackInlineInteger (uint16_t value) |
Private 属性 | |
| SmallValueBuffer< 4 > | buffer_ |
StyleValuePool allows compact storage for a sparse collection of assigned lengths and numbers. Values are referred to using StyleValueHandle. In most cases StyleValueHandle can embed the value directly, but if not, the value is stored within a buffer provided by the pool. The pool contains a fixed number of inline slots before falling back to heap allocating additional slots.
|
inline |


|
inline |


|
inline |


|
inline |

|
inlinestaticconstexprprivate |

|
inlinestaticconstexprprivate |

|
inline |

|
inline |


|
inline |

|
inlineprivate |


|
inlineprivate |


|
inlinestaticconstexprprivate |

|
private |