Blender V4.3
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
 

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)
 
bool operator< (const PersistentID &persistent_id_a, const PersistentID &persistent_id_b)
 
std::ostream & operator<< (std::ostream &os, const PersistentID &persistent_id)
 

Detailed Description

Definition at line 17 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 20 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 26 of file dupli_persistent_id.cc.

References persistent_id_.

◆ PersistentID() [2/3]

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

Definition at line 14 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 19 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 73 of file dupli_persistent_id.cc.

References array_length_, and persistent_id_.

◆ 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 31 of file dupli_persistent_id.cc.

References array_length_, and persistent_id_.

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

Friends And Related Symbol Documentation

◆ operator<

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

Definition at line 95 of file dupli_persistent_id.cc.

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const PersistentID & persistent_id )
friend

Definition at line 136 of file dupli_persistent_id.cc.

◆ operator==

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

Definition at line 116 of file dupli_persistent_id.cc.

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: