Blender V5.3
blender::seq::ThumbnailCache::SourceKey Struct Reference

Public Member Functions

 SourceKey ()=default
 SourceKey (const std::string &path)
 SourceKey (const ID *id)
bool is_valid () const
uint64_t hash () const

Public Attributes

std::string path
uint id_session_uid = 0
uint extra_bits = 0

Friends

auto operator<=> (const SourceKey &a, const SourceKey &b)=default

Detailed Description

Definition at line 60 of file thumbnail_cache.cc.

Constructor & Destructor Documentation

◆ SourceKey() [1/3]

blender::seq::ThumbnailCache::SourceKey::SourceKey ( )
explicitdefault

Referenced by operator<=>.

◆ SourceKey() [2/3]

blender::seq::ThumbnailCache::SourceKey::SourceKey ( const std::string & path)
inlineexplicit

Definition at line 62 of file thumbnail_cache.cc.

References path.

◆ SourceKey() [3/3]

blender::seq::ThumbnailCache::SourceKey::SourceKey ( const ID * id)
inlineexplicit

Definition at line 63 of file thumbnail_cache.cc.

References id_session_uid.

Member Function Documentation

◆ hash()

uint64_t blender::seq::ThumbnailCache::SourceKey::hash ( ) const
inline

Definition at line 79 of file thumbnail_cache.cc.

References extra_bits, blender::get_default_hash(), id_session_uid, and path.

◆ is_valid()

bool blender::seq::ThumbnailCache::SourceKey::is_valid ( ) const
inline

Definition at line 74 of file thumbnail_cache.cc.

References id_session_uid, and path.

Referenced by blender::seq::thumbnail_cache_maintain_capacity().

◆ operator<=>

auto operator<=> ( const SourceKey & a,
const SourceKey & b )
friend

References b, and SourceKey().

Member Data Documentation

◆ extra_bits

uint blender::seq::ThumbnailCache::SourceKey::extra_bits = 0

Definition at line 72 of file thumbnail_cache.cc.

Referenced by blender::seq::get_key_from_scene_strip(), and hash().

◆ id_session_uid

uint blender::seq::ThumbnailCache::SourceKey::id_session_uid = 0

◆ path

std::string blender::seq::ThumbnailCache::SourceKey::path

Definition at line 66 of file thumbnail_cache.cc.

Referenced by hash(), is_valid(), blender::seq::make_thumb_for_image(), and SourceKey().


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