slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | Private 成员函数 | 静态 Private 成员函数 | Private 属性 | 所有成员列表
facebook::yoga::StyleValuePool类 参考

#include <StyleValuePool.h>

facebook::yoga::StyleValuePool 的协作图:
Collaboration graph
[图例]

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.

成员函数说明

◆ getLength()

StyleLength facebook::yoga::StyleValuePool::getLength ( StyleValueHandle handle) const
inline
函数调用图:
这是这个函数的调用关系图:

◆ getNumber()

FloatOptional facebook::yoga::StyleValuePool::getNumber ( StyleValueHandle handle) const
inline
函数调用图:
这是这个函数的调用关系图:

◆ getSize()

StyleSizeLength facebook::yoga::StyleValuePool::getSize ( StyleValueHandle handle) const
inline
函数调用图:
这是这个函数的调用关系图:

◆ getStoredValue()

float facebook::yoga::StyleValuePool::getStoredValue ( StyleValueHandle handle) const
inline
函数调用图:

◆ isIntegerPackable()

static constexpr bool facebook::yoga::StyleValuePool::isIntegerPackable ( float f)
inlinestaticconstexprprivate
这是这个函数的调用关系图:

◆ packInlineInteger()

static constexpr uint16_t facebook::yoga::StyleValuePool::packInlineInteger ( float value)
inlinestaticconstexprprivate
这是这个函数的调用关系图:

◆ store() [1/3]

void facebook::yoga::StyleValuePool::store ( StyleValueHandle & handle,
FloatOptional number )
inline
函数调用图:

◆ store() [2/3]

void facebook::yoga::StyleValuePool::store ( StyleValueHandle & handle,
StyleLength length )
inline
函数调用图:
这是这个函数的调用关系图:

◆ store() [3/3]

void facebook::yoga::StyleValuePool::store ( StyleValueHandle & handle,
StyleSizeLength sizeValue )
inline
函数调用图:

◆ storeKeyword()

void facebook::yoga::StyleValuePool::storeKeyword ( StyleValueHandle & handle,
StyleValueHandle::Keyword keyword )
inlineprivate
函数调用图:
这是这个函数的调用关系图:

◆ storeValue()

void facebook::yoga::StyleValuePool::storeValue ( StyleValueHandle & handle,
float value,
StyleValueHandle::Type type )
inlineprivate
函数调用图:
这是这个函数的调用关系图:

◆ unpackInlineInteger()

static constexpr float facebook::yoga::StyleValuePool::unpackInlineInteger ( uint16_t value)
inlinestaticconstexprprivate
这是这个函数的调用关系图:

类成员变量说明

◆ buffer_

SmallValueBuffer<4> facebook::yoga::StyleValuePool::buffer_
private

该类的文档由以下文件生成: