struct
Lapis::DSL::FrameArenaBuilder
- Lapis::DSL::FrameArenaBuilder
- Struct
- Value
- Object
Overview
Declarative configuration builder for Lapis::Core::FrameArena.
Defined in:
lapis/dsl/frame_arena_dsl.crConstructors
Instance Method Summary
- #arena : Lapis::Core::FrameArena
-
#buffer(type : T.class, max_elements : Int32) : Lapis::Core::ArenaBuffer(T) forall T
Allocates a bounded appendable
ArenaBuffer(T)from the underlyingFrameArena. - #capacity : Int32
-
#push(value : T) : Pointer(T) forall T
Copies
valueinto the arena and returns a typedPointer(T). -
#reset! : Lapis::Core::FrameArena
Resets the arena cursor to zero without advancing the frame counter.
-
#scope(&block : Lapis::Core::FrameArena -> _)
Executes a nested sub-frame scope that automatically rewinds on block exit.
-
#slice(type : T.class, count : Int32) : Slice(T) forall T
Allocates a typed contiguous
Slice(T)from the underlyingFrameArena. -
#tick! : Lapis::Core::FrameArena
Resets the arena cursor to zero and advances the frame counter.
Instance methods inherited from class Object
try?(&)try? try?
Constructor Detail
Instance Method Detail
def push(value : T) : Pointer(T) forall T
#
Copies value into the arena and returns a typed Pointer(T).
def reset! : Lapis::Core::FrameArena
#
Resets the arena cursor to zero without advancing the frame counter.
def scope(&block : Lapis::Core::FrameArena -> _)
#
Executes a nested sub-frame scope that automatically rewinds on block exit.
def tick! : Lapis::Core::FrameArena
#
Resets the arena cursor to zero and advances the frame counter.