Blender V5.3
blender::TypeTable Struct Reference

Classes

class  GetIDFn

Public Member Functions

void add_builtin (const StringRef name, const short size, const int expected_type_index)
void add_struct (StringRefNull name)
int lookup_index (StringRefNull name) const
TypeInfo & lookup (StringRefNull name)
const TypeInfo & lookup (StringRefNull name) const

Public Attributes

CustomIDVectorSet< TypeInfo, GetIDFn > types

Detailed Description

Table of unique SDNA types.

Definition at line 109 of file makesdna.cc.

Member Function Documentation

◆ add_builtin()

◆ add_struct()

void blender::TypeTable::add_struct ( StringRefNull name)
inline

Add a struct type if it doesn't exist yet. Sizes will be computed later.

Definition at line 135 of file makesdna.cc.

References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add().

Referenced by blender::build_type_table().

◆ lookup() [1/2]

TypeInfo & blender::TypeTable::lookup ( StringRefNull name)
inline

Look up an existing type by name.

Definition at line 153 of file makesdna.cc.

References lookup_index().

Referenced by blender::compute_type_size_and_alignment(), blender::write_sdna_blob(), and blender::write_sdna_verify().

◆ lookup() [2/2]

const TypeInfo & blender::TypeTable::lookup ( StringRefNull name) const
inline

Definition at line 158 of file makesdna.cc.

References lookup_index().

◆ lookup_index()

int blender::TypeTable::lookup_index ( StringRefNull name) const
inline

Member Data Documentation

◆ types

CustomIDVectorSet<TypeInfo, GetIDFn> blender::TypeTable::types

Definition at line 119 of file makesdna.cc.

Referenced by blender::write_sdna_blob().


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