1#ifndef _RHEOLEF_INDEX_SET_HEADER_ICC
2#define _RHEOLEF_INDEX_SET_HEADER_ICC
63 typedef std::set<std::size_t>
base;
97#ifdef _RHEOLEF_INDEX_SET_H
98#ifdef _RHEOLEF_HAVE_MPI
99 template <
class Archive>
100 void serialize (Archive& ar,
const unsigned int version);
106#ifdef _RHEOLEF_INDEX_SET_H
111#include "rheolef/msg_util.h"
112namespace rheolef {
namespace details {
115 using type = details::generic_set_plus_op;
121#ifdef _RHEOLEF_HAVE_MPI
137#pragma GCC diagnostic push
138#pragma GCC diagnostic ignored "-Weffc++"
144 for (
size_t* iter = &(x[0]), *last = &(x[0])+
N; iter != last; iter++) {
145 base::insert (*iter);
149#pragma GCC diagnostic pop
161 base::insert (dis_i);
167 base::insert (dis_i);
170#ifdef _RHEOLEF_INDEX_SET_H
171#ifdef _RHEOLEF_HAVE_MPI
172template <
class Archive>
176 ar & boost::serialization::base_object<base>(*
this);
friend std::istream & operator>>(std::istream &is, index_set &x)
std::set< std::size_t > base
void inplace_intersection(const index_set &b)
void serialize(Archive &ar, const unsigned int version)
void inplace_union(const index_set &b)
void insert(size_type dis_i)
index_set & operator=(const index_set &x)
friend void set_intersection(const index_set &a, const index_set &b, index_set &c)
friend std::ostream & operator<<(std::ostream &os, const index_set &x)
friend void set_union(const index_set &a, const index_set &b, index_set &c)
index_set & operator+=(size_type dis_i)
This file is part of Rheolef.
details::generic_set_plus_op type