fpmas-metamodel 1.0
Loading...
Searching...
No Matches
interactions.h
Go to the documentation of this file.
1#pragma once
2
3#include "fpmas.h"
4#include "fpmas/utils/perf.h"
5
15extern fpmas::random::DistributedGenerator<> random_interactions;
16
30 static fpmas::utils::perf::Probe local_read_probe;
36 static fpmas::utils::perf::Probe local_write_probe;
42 static fpmas::utils::perf::Probe distant_read_probe;
48 static fpmas::utils::perf::Probe distant_write_probe;
49
55 static void read_all(
56 const fpmas::model::Neighbors<fpmas::api::model::Agent>& neighbors);
57
63 static void write_all(
64 fpmas::model::Neighbors<fpmas::api::model::Agent>& neighbors);
65
72 static void read_one(
73 const fpmas::model::Neighbors<fpmas::api::model::Agent>& neighbors);
74
81 static void write_one(
82 fpmas::model::Neighbors<fpmas::api::model::Agent>& neighbors);
83
89 static void read_all_write_all(
90 fpmas::model::Neighbors<fpmas::api::model::Agent>& neighbors);
91
97 static void read_all_write_one(
98 fpmas::model::Neighbors<fpmas::api::model::Agent>& neighbors);
99};
100
fpmas::random::DistributedGenerator random_interactions
Definition: interactions.h:24
static fpmas::utils::perf::Probe distant_read_probe
Definition: interactions.h:42
static fpmas::utils::perf::Probe distant_write_probe
Definition: interactions.h:48
static fpmas::utils::perf::Probe local_read_probe
Definition: interactions.h:30
static void write_one(fpmas::model::Neighbors< fpmas::api::model::Agent > &neighbors)
static void read_all(const fpmas::model::Neighbors< fpmas::api::model::Agent > &neighbors)
static void write_all(fpmas::model::Neighbors< fpmas::api::model::Agent > &neighbors)
static void read_all_write_one(fpmas::model::Neighbors< fpmas::api::model::Agent > &neighbors)
static void read_all_write_all(fpmas::model::Neighbors< fpmas::api::model::Agent > &neighbors)
static fpmas::utils::perf::Probe local_write_probe
Definition: interactions.h:36
static void read_one(const fpmas::model::Neighbors< fpmas::api::model::Agent > &neighbors)