quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
particles.cpp File Reference
#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; }
 

Function Documentation

◆ particles_t::print< particles_t::output_format::csv >()

template<>
void particles_t::print< particles_t::output_format::csv > ( std::ostream &  os) const

◆ particles_t::print< particles_t::output_format::json >()

template<>
void particles_t::print< particles_t::output_format::json > ( std::ostream &  os) const

◆ particles_t::print< particles_t::output_format::octave_ascii >()

template<>
void particles_t::print< particles_t::output_format::octave_ascii > ( std::ostream &  os) const

◆ to_json()

void to_json ( nlohmann::json &  j,
const particles_t p 
)

Adaptor to allow implicit conversion from particles_t to json.