ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
propagation.cpp File Reference
#include "propagation.hpp"
#include "config/config.hpp"
#include "PropagationMode.hpp"
#include <cassert>
#include <string>
#include <unordered_map>
+ Include dependency graph for propagation.cpp:

Go to the source code of this file.

Functions

static bool force_code_coverage (bool value)
 
bool is_valid_propagation_combination (int propagation)
 Note for developers: when enabling new propagation mode combinations, make sure every single line of this function has code coverage.
 
std::unordered_map< std::string, int > propagation_flags_map ()
 Convert PropagationMode::PropagationMode to name/value pairs.
 
std::string propagation_bitmask_to_string (int propagation)
 Convert a propagation modes bitmask to a string.
 

Function Documentation

◆ force_code_coverage()

static bool force_code_coverage ( bool  value)
static

Definition at line 31 of file propagation.cpp.

Referenced by is_valid_propagation_combination().

◆ is_valid_propagation_combination()

bool is_valid_propagation_combination ( int  propagation)

Note for developers: when enabling new propagation mode combinations, make sure every single line of this function has code coverage.

Check allowlist of valid propagation modes combinations.

Definition at line 37 of file propagation.cpp.

References force_code_coverage(), and NONE.

Referenced by ScriptInterface::Particles::ParticleHandle::ParticleHandle().

◆ propagation_bitmask_to_string()

std::string propagation_bitmask_to_string ( int  propagation)

Convert a propagation modes bitmask to a string.

Definition at line 125 of file propagation.cpp.

References propagation_flags_map().

Referenced by ScriptInterface::Particles::ParticleHandle::ParticleHandle().

◆ propagation_flags_map()

std::unordered_map< std::string, int > propagation_flags_map ( )

Convert PropagationMode::PropagationMode to name/value pairs.

Definition at line 104 of file propagation.cpp.

References NONE.

Referenced by ScriptInterface::System::System::do_call_method(), and propagation_bitmask_to_string().