OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ModelObjectStatusDB Struct Reference
Collaboration diagram for Slic3r::ModelObjectStatusDB:

Public Member Functions

void add (const ModelObject &model_object, const ModelObjectStatus::Status status)
bool add_if_new (const ModelObject &model_object, const ModelObjectStatus::Status status)
const ModelObjectStatus & get (const ModelObject &model_object)
const ModelObjectStatus & reuse (const ModelObject &model_object)

Public Attributes

std::set< ModelObjectStatus > db

Detailed Description

Member Function Documentation

◆ add()

void Slic3r::ModelObjectStatusDB::add ( const ModelObject & model_object,
const ModelObjectStatus::Status status )
inline
517 {
518 assert(db.find(ModelObjectStatus(model_object.id())) == db.end());
519 db.emplace(model_object.id(), status);
520 }
std::set< ModelObjectStatus > db
Definition PrintApply.cpp:543

References db, and Slic3r::ObjectBase::id().

Here is the call graph for this function:

◆ add_if_new()

bool Slic3r::ModelObjectStatusDB::add_if_new ( const ModelObject & model_object,
const ModelObjectStatus::Status status )
inline
522 {
523 auto it = db.find(ModelObjectStatus(model_object.id()));
524 if (it == db.end()) {
525 db.emplace_hint(it, model_object.id(), status);
526 return true;
527 }
528 return false;
529 }

References db, and Slic3r::ObjectBase::id().

Here is the call graph for this function:

◆ get()

const ModelObjectStatus & Slic3r::ModelObjectStatusDB::get ( const ModelObject & model_object)
inline
531 {
532 auto it = db.find(ModelObjectStatus(model_object.id()));
533 assert(it != db.end());
534 return *it;
535 }

References db, and Slic3r::ObjectBase::id().

Referenced by reuse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reuse()

const ModelObjectStatus & Slic3r::ModelObjectStatusDB::reuse ( const ModelObject & model_object)
inline
537 {
538 const ModelObjectStatus &result = this->get(model_object);
539 assert(result.status != ModelObjectStatus::Deleted);
540 return result;
541 }
const ModelObjectStatus & get(const ModelObject &model_object)
Definition PrintApply.cpp:531
@ Deleted
Definition PrintApply.cpp:488

References Slic3r::ModelObjectStatus::Deleted, get(), and Slic3r::ModelObjectStatus::status.

Here is the call graph for this function:

Member Data Documentation

◆ db

std::set<ModelObjectStatus> Slic3r::ModelObjectStatusDB::db

Referenced by add(), add_if_new(), and get().


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/PrintApply.cpp