quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
|
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <random>
#include <particles.h>
Namespaces | |
namespace | ASSIGNMENT_OPS |
Functions | |
template<> | |
void | particles_t::print< particles_t::output_format::json > (std::ostream &os) const |
template<> | |
void | particles_t::print< particles_t::output_format::csv > (std::ostream &os) const |
template<> | |
void | particles_t::print< particles_t::output_format::octave_ascii > (std::ostream &os) const |
void | to_json (nlohmann::json &j, const particles_t &p) |
Adaptor to allow implicit conversion from particles_t to json . More... | |
Variables | |
assignment_t | ASSIGNMENT_OPS::EQ = [] (double& TO, const double& FROM) -> double& { return TO = FROM; } |
assignment_t | ASSIGNMENT_OPS::PLUS_EQ = [] (double& TO, const double& FROM) -> double& { return TO += FROM; } |
assignment_t | ASSIGNMENT_OPS::TIMES_EQ = [] (double& TO, const double& FROM) -> double& { return TO *= FROM; } |
void particles_t::print< particles_t::output_format::csv > | ( | std::ostream & | os | ) | const |
void particles_t::print< particles_t::output_format::json > | ( | std::ostream & | os | ) | const |
void particles_t::print< particles_t::output_format::octave_ascii > | ( | std::ostream & | os | ) | const |
void to_json | ( | nlohmann::json & | j, |
const particles_t & | p | ||
) |
Adaptor to allow implicit conversion from particles_t
to json
.