Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FConvexStructureData
Description
Call a function on the read-only data (cast to Small, Medium or Large indices as appropriate). It will call "Op" on the down-casted data container if we have a valid container. It will call EmptyOp if the container has not been set up (IndexType is None). Note: This expands into a switch statement, calling the lambda with a container of each index size.
Must be used with an auto lambda to handle the downcasting, e.g.: int32 Plane0VertexCount = ConstDataOp( const auto& ConcreteData { return ConcreteData.NumPlaneVertices(0); }, []() { return 0; });
| Name | ConstDataOp |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ConvexStructureData.h |
| Include Path | #include "Chaos/ConvexStructureData.h" |
template<typename T_OP, typename T_EMPTYOP>
auto ConstDataOp
(
const T_OP & Op,
const T_EMPTYOP & EmptyOp
) const