PolyFEM
Loading...
Searching...
No Matches
polyfem::io::OutputWriter::Impl Class Reference

Classes

struct  State
 

Public Member Functions

 Impl (const bool asynchronous)
 
 ~Impl ()
 
void enqueue (const Prepare &prepare)
 
void flush ()
 
void finish ()
 
bool asynchronous () const
 
void execute (const Job &compute)
 

Private Member Functions

void check_error () const
 
void start ()
 

Static Private Member Functions

static void run (const std::shared_ptr< State > &state)
 

Private Attributes

std::shared_ptr< State > state_ = std::make_shared<State>()
 
std::thread thread_
 
bool asynchronous_ = false
 
bool started_ = false
 

Detailed Description

Definition at line 18 of file OutputWriter.cpp.

Constructor & Destructor Documentation

◆ Impl()

polyfem::io::OutputWriter::Impl::Impl ( const bool  asynchronous)
inlineexplicit

Definition at line 21 of file OutputWriter.cpp.

References asynchronous(), and asynchronous_.

Here is the call graph for this function:

◆ ~Impl()

polyfem::io::OutputWriter::Impl::~Impl ( )
inline

Definition at line 28 of file OutputWriter.cpp.

References finish().

Here is the call graph for this function:

Member Function Documentation

◆ asynchronous()

bool polyfem::io::OutputWriter::Impl::asynchronous ( ) const
inline

Definition at line 112 of file OutputWriter.cpp.

References asynchronous_.

Referenced by Impl().

Here is the caller graph for this function:

◆ check_error()

void polyfem::io::OutputWriter::Impl::check_error ( ) const
inlineprivate

Definition at line 146 of file OutputWriter.cpp.

References state_.

Referenced by enqueue(), finish(), and flush().

Here is the caller graph for this function:

◆ enqueue()

void polyfem::io::OutputWriter::Impl::enqueue ( const Prepare &  prepare)
inline

Definition at line 40 of file OutputWriter.cpp.

References asynchronous_, check_error(), start(), started_, and state_.

Here is the call graph for this function:

◆ execute()

void polyfem::io::OutputWriter::Impl::execute ( const Job &  compute)
inline

Definition at line 114 of file OutputWriter.cpp.

References asynchronous_, polyfem::utils::get_n_threads(), and started_.

Here is the call graph for this function:

◆ finish()

void polyfem::io::OutputWriter::Impl::finish ( )
inline

Definition at line 94 of file OutputWriter.cpp.

References asynchronous_, check_error(), state_, and thread_.

Referenced by ~Impl().

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

◆ flush()

void polyfem::io::OutputWriter::Impl::flush ( )
inline

Definition at line 87 of file OutputWriter.cpp.

References check_error(), and state_.

Here is the call graph for this function:

◆ run()

static void polyfem::io::OutputWriter::Impl::run ( const std::shared_ptr< State > &  state)
inlinestaticprivate

Definition at line 152 of file OutputWriter.cpp.

Referenced by start().

Here is the caller graph for this function:

◆ start()

void polyfem::io::OutputWriter::Impl::start ( )
inlineprivate

Definition at line 193 of file OutputWriter.cpp.

References run(), started_, state_, and thread_.

Referenced by enqueue().

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

Member Data Documentation

◆ asynchronous_

bool polyfem::io::OutputWriter::Impl::asynchronous_ = false
private

Definition at line 212 of file OutputWriter.cpp.

Referenced by asynchronous(), enqueue(), execute(), finish(), and Impl().

◆ started_

bool polyfem::io::OutputWriter::Impl::started_ = false
private

Definition at line 213 of file OutputWriter.cpp.

Referenced by enqueue(), execute(), and start().

◆ state_

std::shared_ptr<State> polyfem::io::OutputWriter::Impl::state_ = std::make_shared<State>()
private

Definition at line 210 of file OutputWriter.cpp.

Referenced by check_error(), enqueue(), finish(), flush(), and start().

◆ thread_

std::thread polyfem::io::OutputWriter::Impl::thread_
private

Definition at line 211 of file OutputWriter.cpp.

Referenced by finish(), and start().


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