Blender  V3.3
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
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

typedef std::array< int, array_length_PIDArray
 

Protected Member Functions

 PersistentID (const PIDArray &persistent_id_values)
 

Protected Attributes

PIDArray persistent_id_
 

Static Protected Attributes

constexpr static 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 16 of file IO_dupli_persistent_id.hh.

Member Typedef Documentation

◆ PIDArray

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

Definition at line 19 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_.

◆ 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_.

◆ 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_, and persistent_id_.

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

Friends And Related Function Documentation

◆ operator<

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

Definition at line 94 of file dupli_persistent_id.cc.

◆ operator<<

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

Definition at line 135 of file dupli_persistent_id.cc.

◆ operator==

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

Definition at line 115 of file dupli_persistent_id.cc.

Member Data Documentation

◆ array_length_

constexpr static 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: