Wildmeshing Toolkit
wmtk::Scheduler Class Reference

#include <Scheduler.hpp>

Collaboration diagram for wmtk::Scheduler:
[legend]

Public Member Functions

 Scheduler ()
 
 ~Scheduler ()
 
SchedulerStats run_operation_on_all (operations::Operation &op)
 
SchedulerStats run_operation_on_all (operations::Operation &op, const TypedAttributeHandle< char > &flag_handle)
 
SchedulerStats run_operation_on_all_coloring (operations::Operation &op, const TypedAttributeHandle< int64_t > &color_handle)
 
const SchedulerStatsstats () const
 
void set_update_frequency (std::optional< size_t > &&freq={})
 

Private Member Functions

void log (const size_t total)
 
void log (const SchedulerStats &stats, const size_t total)
 

Private Attributes

SchedulerStats m_stats
 
std::optional< size_t > m_update_frequency = {}
 

Detailed Description

Definition at line 88 of file Scheduler.hpp.

Constructor & Destructor Documentation

◆ Scheduler()

wmtk::Scheduler::Scheduler ( )
default

◆ ~Scheduler()

wmtk::Scheduler::~Scheduler ( )
default

Member Function Documentation

◆ log() [1/2]

void wmtk::Scheduler::log ( const SchedulerStats stats,
const size_t  total 
)
private

Definition at line 381 of file Scheduler.cpp.

References wmtk::SchedulerStats::number_of_performed_operations(), and wmtk::SchedulerStats::print_update_log().

Here is the call graph for this function:

◆ log() [2/2]

void wmtk::Scheduler::log ( const size_t  total)
private

Definition at line 377 of file Scheduler.cpp.

Referenced by run_operation_on_all().

Here is the caller graph for this function:

◆ run_operation_on_all() [1/2]

SchedulerStats wmtk::Scheduler::run_operation_on_all ( operations::Operation op)

Definition at line 33 of file Scheduler.cpp.

References wmtk::SchedulerStats::collecting_time, wmtk::SchedulerStats::executing_time, wmtk::SchedulerStats::fail(), wmtk::Mesh::get_all(), wmtk::utils::get_random_seed(), log(), wmtk::logger(), m_stats, m_update_frequency, wmtk::operations::Operation::mesh(), wmtk::operations::Operation::primitive_type(), wmtk::SchedulerStats::print_update_log(), wmtk::operations::Operation::priority(), wmtk::SchedulerStats::sorting_time, wmtk::SchedulerStats::succeed(), wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector(), and wmtk::operations::Operation::use_random_priority().

Referenced by wmtk::components::internal::CDT_internal(), wmtk::components::isotropic_remeshing::isotropic_remeshing(), wmtk::components::longest_edge_split::longest_edge_split(), wmtk::components::internal::periodic_optimization(), wmtk::components::Marching::process(), wmtk::components::internal::RegularSpace::regularize_tags(), wmtk::components::shortest_edge_collapse::shortest_edge_collapse(), TEST_CASE(), wmtk::components::triangle_insertion::triangle_insertion(), wmtk::components::wildmeshing(), wmtk::components::internal::wildmeshing2d(), and wmtk::components::internal::wildmeshing3d().

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

◆ run_operation_on_all() [2/2]

◆ run_operation_on_all_coloring()

SchedulerStats wmtk::Scheduler::run_operation_on_all_coloring ( operations::Operation op,
const TypedAttributeHandle< int64_t > &  color_handle 
)

◆ set_update_frequency()

void wmtk::Scheduler::set_update_frequency ( std::optional< size_t > &&  freq = {})

Definition at line 393 of file Scheduler.cpp.

Referenced by wmtk::components::wildmeshing(), wmtk::components::internal::wildmeshing2d(), and wmtk::components::internal::wildmeshing3d().

Here is the caller graph for this function:

◆ stats()

const SchedulerStats& wmtk::Scheduler::stats ( ) const
inline

Definition at line 102 of file Scheduler.hpp.

References m_stats.

Member Data Documentation

◆ m_stats

SchedulerStats wmtk::Scheduler::m_stats
private

Definition at line 107 of file Scheduler.hpp.

Referenced by run_operation_on_all(), and stats().

◆ m_update_frequency

std::optional<size_t> wmtk::Scheduler::m_update_frequency = {}
private

Definition at line 108 of file Scheduler.hpp.

Referenced by run_operation_on_all().


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