Blender V4.3
blender::ComputeContextBuilder Class Reference

#include <BLI_compute_context.hh>

Public Member Functions

void keep_old_contexts ()
 
bool is_empty () const
 
const ComputeContextcurrent () const
 
const ComputeContextHash hash () const
 
template<typename T , typename... Args>
void push (Args &&...args)
 
void pop ()
 
void pop_until (const ComputeContext *context)
 

Detailed Description

Utility class to build a context stack in one place. This is typically used to get the hash that corresponds to a specific nested compute context, in order to look up corresponding logged values.

Definition at line 134 of file BLI_compute_context.hh.

Member Function Documentation

◆ current()

◆ hash()

◆ is_empty()

bool blender::ComputeContextBuilder::is_empty ( ) const
inline

◆ keep_old_contexts()

void blender::ComputeContextBuilder::keep_old_contexts ( )
inline

If called, compute contexts are not destructed when they are popped. Instead their lifetime will be the lifetime of this builder.

Definition at line 145 of file BLI_compute_context.hh.

◆ pop()

◆ pop_until()

void blender::ComputeContextBuilder::pop_until ( const ComputeContext * context)
inline

◆ push()


The documentation for this class was generated from the following file: