OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::SupportGeneratorLayerStorage Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Support/SupportLayer.hpp>

Public Member Functions

SupportGeneratorLayer & allocate_unguarded (SupporLayerType layer_type)
SupportGeneratorLayer & allocate (SupporLayerType layer_type)

Private Types

template<typename BaseType>
using Allocator = tbb::scalable_allocator<BaseType>

Private Attributes

Slic3r::deque< SupportGeneratorLayer, Allocator< SupportGeneratorLayer > > m_storage
tbb::spin_mutex m_mutex

Detailed Description

Member Typedef Documentation

◆ Allocator

template<typename BaseType>
using Slic3r::SupportGeneratorLayerStorage::Allocator = tbb::scalable_allocator<BaseType>
private

Member Function Documentation

◆ allocate()

SupportGeneratorLayer & Slic3r::SupportGeneratorLayerStorage::allocate ( SupporLayerType layer_type)
inline
131 {
132 m_mutex.lock();
133 m_storage.emplace_back();
134 SupportGeneratorLayer *layer_new = &m_storage.back();
135 m_mutex.unlock();
136 layer_new->layer_type = layer_type;
137 return *layer_new;
138 }
Slic3r::deque< SupportGeneratorLayer, Allocator< SupportGeneratorLayer > > m_storage
Definition SupportLayer.hpp:143
tbb::spin_mutex m_mutex
Definition SupportLayer.hpp:144

References Slic3r::SupportGeneratorLayer::layer_type, m_mutex, and m_storage.

Referenced by Slic3r::generate_interface_layers(), Slic3r::generate_raft_base(), Slic3r::TreeSupport3D::layer_allocate(), Slic3r::new_contact_layer(), and Slic3r::PrintObjectSupportMaterial::raft_and_intermediate_support_layers().

Here is the caller graph for this function:

◆ allocate_unguarded()

SupportGeneratorLayer & Slic3r::SupportGeneratorLayerStorage::allocate_unguarded ( SupporLayerType layer_type)
inline
124 {
125 m_storage.emplace_back();
126 m_storage.back().layer_type = layer_type;
127 return m_storage.back();
128 }

References m_storage.

Referenced by Slic3r::detect_belt_floor_bottom_contacts(), Slic3r::generate_raft_base(), and Slic3r::TreeSupport3D::layer_allocate_unguarded().

Here is the caller graph for this function:

Member Data Documentation

◆ m_mutex

tbb::spin_mutex Slic3r::SupportGeneratorLayerStorage::m_mutex
private

Referenced by allocate().

◆ m_storage

Slic3r::deque<SupportGeneratorLayer, Allocator<SupportGeneratorLayer> > Slic3r::SupportGeneratorLayerStorage::m_storage
private

Referenced by allocate(), and allocate_unguarded().


The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Support/SupportLayer.hpp