Blender V5.0
blender::io::PersistentID Class Reference

#include <IO_dupli_persistent_id.hh>

Public Member Functions

 PersistentID ()
 PersistentID (const DupliObject *dupli_ob)
bool is_from_same_instancer_as (const PersistentID &other) const
PersistentID instancer_pid () const
std::string as_object_name_suffix () const
uint64_t hash () const

Protected Types

using PIDArray = std::array<int, array_length_>

Protected Member Functions

 PersistentID (const PIDArray &persistent_id_values)

Protected Attributes

PIDArray persistent_id_

Static Protected Attributes

static constexpr int array_length_ = MAX_DUPLI_RECUR

Friends

bool operator== (const PersistentID &persistent_id_a, const PersistentID &persistent_id_b)

Detailed Description

Definition at line 15 of file IO_dupli_persistent_id.hh.

Member Typedef Documentation

◆ PIDArray

using blender::io::PersistentID::PIDArray = std::array<int, array_length_>
protected

Definition at line 18 of file IO_dupli_persistent_id.hh.

Constructor & Destructor Documentation

◆ PersistentID() [1/3]

blender::io::PersistentID::PersistentID ( const PIDArray & persistent_id_values)
explicitprotected

Definition at line 25 of file dupli_persistent_id.cc.

References persistent_id_.

Referenced by instancer_pid(), is_from_same_instancer_as(), and operator==.

◆ PersistentID() [2/3]

blender::io::PersistentID::PersistentID ( )

Definition at line 13 of file dupli_persistent_id.cc.

References persistent_id_.

Referenced by instancer_pid().

◆ PersistentID() [3/3]

blender::io::PersistentID::PersistentID ( const DupliObject * dupli_ob)
explicit

Definition at line 18 of file dupli_persistent_id.cc.

References array_length_, DupliObject::persistent_id, and persistent_id_.

Member Function Documentation

◆ as_object_name_suffix()

std::string blender::io::PersistentID::as_object_name_suffix ( ) const

Definition at line 72 of file dupli_persistent_id.cc.

References array_length_, and persistent_id_.

◆ hash()

uint64_t blender::io::PersistentID::hash ( ) const

Definition at line 94 of file dupli_persistent_id.cc.

References hash(), and persistent_id_.

Referenced by hash(), and blender::io::TEST_F().

◆ instancer_pid()

PersistentID blender::io::PersistentID::instancer_pid ( ) const

◆ is_from_same_instancer_as()

bool blender::io::PersistentID::is_from_same_instancer_as ( const PersistentID & other) const

Definition at line 30 of file dupli_persistent_id.cc.

References array_length_, persistent_id_, and PersistentID().

Referenced by blender::io::TEST_F().

◆ operator==

bool operator== ( const PersistentID & persistent_id_a,
const PersistentID & persistent_id_b )
friend

Definition at line 106 of file dupli_persistent_id.cc.

References array_length_, persistent_id_, and PersistentID().

Member Data Documentation

◆ array_length_

int blender::io::PersistentID::array_length_ = MAX_DUPLI_RECUR
staticconstexprprotected

◆ persistent_id_

PIDArray blender::io::PersistentID::persistent_id_
protected

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