Blender V4.5
fcurve_cache.cc File Reference
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "BLI_ghash.h"
#include "BKE_fcurve.hh"

Go to the source code of this file.

Classes

struct  FCurvePathCache_Span
struct  FCurvePathCache

Functions

F-Curve Path Cache

Cache for finding curves by RNA path & array index.

static int fcurve_cmp_for_cache (const void *fcu_a_p, const void *fcu_b_p)
FCurvePathCacheBKE_fcurve_pathcache_create (blender::Span< FCurve * > fcurves)
void BKE_fcurve_pathcache_destroy (FCurvePathCache *fcache)
FCurveBKE_fcurve_pathcache_find (const FCurvePathCache *fcache, const char *rna_path, const int array_index)
int BKE_fcurve_pathcache_find_array (const FCurvePathCache *fcache, const char *rna_path, FCurve **fcurve_result, int fcurve_result_len)

Detailed Description

Cache F-Curve look-ups.

Definition in file fcurve_cache.cc.

Function Documentation

◆ BKE_fcurve_pathcache_create()

◆ BKE_fcurve_pathcache_destroy()

◆ BKE_fcurve_pathcache_find()

FCurve * BKE_fcurve_pathcache_find ( const FCurvePathCache * fcache,
const char * rna_path,
const int array_index )

◆ BKE_fcurve_pathcache_find_array()

int BKE_fcurve_pathcache_find_array ( const FCurvePathCache * fcache,
const char * rna_path,
FCurve ** fcurve_result,
int fcurve_result_len )

◆ fcurve_cmp_for_cache()

int fcurve_cmp_for_cache ( const void * fcu_a_p,
const void * fcu_b_p )
static

#qsort callback for an FCurve array.

Definition at line 48 of file fcurve_cache.cc.

References FCurve::array_index, fcurve_cmp_for_cache(), and FCurve::rna_path.

Referenced by BKE_fcurve_pathcache_create(), and fcurve_cmp_for_cache().