#include <ParticleUpdateCounterInterceptor.h>
◆ getParticleUpdatesPerSecond()
      
        
          | double ParticleUpdateCounterInterceptor::getParticleUpdatesPerSecond  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ logSummary()
  
  
      
        
          | void ParticleUpdateCounterInterceptor::logSummary  | 
          ( | 
          int  | 
          depth | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
Logs the summary of the particle update counter. 
Implements SimulationInterceptor.
Definition at line 27 of file ParticleUpdateCounterInterceptor.cpp.
   28     std::string indent = std::string(depth * 2, 
' ');
 
const std::string ansi_end
 
const std::string ansi_orange_bold
 
static std::shared_ptr< spdlog::logger > logger
Publically accessible shared pointer to the logger.
 
 
 
 
◆ onSimulationEnd()
  
  
      
        
          | void ParticleUpdateCounterInterceptor::onSimulationEnd  | 
          ( | 
          size_t  | 
          iteration,  | 
         
        
           | 
           | 
          Simulation &  | 
          simulation  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
overridevirtual   | 
  
 
This function is empty as the thermostat doesnt need to do anything at the end of the simulation. 
- Parameters
 - 
  
    | iteration | The current iteration  | 
    | simulation | The simulation object  | 
  
   
Implements SimulationInterceptor.
Definition at line 18 of file ParticleUpdateCounterInterceptor.cpp.
   19     t_end = std::chrono::high_resolution_clock::now();
 
   20     t_diff = std::chrono::duration_cast<std::chrono::milliseconds>(
t_end - 
t_start).count();
 
std::chrono::high_resolution_clock::time_point t_end
 
std::chrono::milliseconds::rep t_diff
 
std::chrono::high_resolution_clock::time_point t_start
 
 
 
 
◆ onSimulationStart()
  
  
      
        
          | void ParticleUpdateCounterInterceptor::onSimulationStart  | 
          ( | 
          Simulation &  | 
          simulation | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ operator std::string()
  
  
      
        
          | ParticleUpdateCounterInterceptor::operator std::string  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
explicitoverridevirtual   | 
  
 
The string representation of this interceptor. 
- Returns
 - std::string
 
This is used to write the final summary of the Interceptors to the console. 
Implements SimulationInterceptor.
Definition at line 34 of file ParticleUpdateCounterInterceptor.cpp.
std::string to_string(const Container &container, const std::string &delimiter=", ", const std::array< std::string, 2 > &surround={"[", "]"})
 
 
 
 
◆ operator()()
  
  
      
        
          | void ParticleUpdateCounterInterceptor::operator()  | 
          ( | 
          size_t  | 
          iteration,  | 
         
        
           | 
           | 
          Simulation &  | 
          simulation  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
overridevirtual   | 
  
 
This function is called on every nth iteration. It counts the number of particle updates which have been performed. 
- Parameters
 - 
  
    | iteration | The current iteration  | 
    | simulation | The simulation object  | 
  
   
Implements SimulationInterceptor.
Definition at line 14 of file ParticleUpdateCounterInterceptor.cpp.
std::unique_ptr< ParticleContainer > particle_container
Reference to the ParticleContainer on whose content the simulation is performed.
 
 
 
 
◆ particle_updates
  
  
      
        
          | size_t ParticleUpdateCounterInterceptor::particle_updates = 0 | 
         
       
   | 
  
private   | 
  
 
 
◆ particle_updates_per_second
  
  
      
        
          | double ParticleUpdateCounterInterceptor::particle_updates_per_second {} | 
         
       
   | 
  
private   | 
  
 
 
◆ t_diff
  
  
      
        
          | std::chrono::milliseconds::rep ParticleUpdateCounterInterceptor::t_diff {} | 
         
       
   | 
  
private   | 
  
 
 
◆ t_end
  
  
      
        
          | std::chrono::high_resolution_clock::time_point ParticleUpdateCounterInterceptor::t_end | 
         
       
   | 
  
private   | 
  
 
 
◆ t_start
  
  
      
        
          | std::chrono::high_resolution_clock::time_point ParticleUpdateCounterInterceptor::t_start | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: