Blender V4.3
blender::bke::bake::PrimitiveBakeItem Class Reference

#include <BKE_bake_items.hh>

Inherits blender::bke::bake::BakeItem.

Public Member Functions

 PrimitiveBakeItem (const CPPType &type, const void *value)
 
 ~PrimitiveBakeItem ()
 
const void * value () const
 
const CPPTypetype () const
 
- Public Member Functions inherited from blender::bke::bake::BakeItem
virtual ~BakeItem ()=default
 
virtual void count_memory (MemoryCounter &memory) const
 

Additional Inherited Members

- Public Attributes inherited from blender::bke::bake::BakeItem
std::string name
 

Detailed Description

Storage for a single value of a trivial type like float, int, etc.

Definition at line 107 of file BKE_bake_items.hh.

Constructor & Destructor Documentation

◆ PrimitiveBakeItem()

blender::bke::bake::PrimitiveBakeItem::PrimitiveBakeItem ( const CPPType & type,
const void * value )

Definition at line 180 of file bake_items.cc.

References MEM_mallocN_aligned().

◆ ~PrimitiveBakeItem()

blender::bke::bake::PrimitiveBakeItem::~PrimitiveBakeItem ( )

Definition at line 186 of file bake_items.cc.

References blender::CPPType::destruct(), and MEM_freeN().

Member Function Documentation

◆ type()

const CPPType & blender::bke::bake::PrimitiveBakeItem::type ( ) const
inline

Definition at line 121 of file BKE_bake_items.hh.

◆ value()

const void * blender::bke::bake::PrimitiveBakeItem::value ( ) const
inline

Definition at line 116 of file BKE_bake_items.hh.


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