www.mooseframework.org
include
utils
SerializerGuard.h
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://www.mooseframework.org
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#pragma once
11
12
namespace
libMesh
13
{
14
namespace
Parallel
15
{
16
class
Communicator;
17
}
18
}
19
24
class
SerializerGuard
25
{
26
public
:
27
SerializerGuard
(
const
libMesh::Parallel::Communicator
& comm,
bool
warn =
true
);
28
~SerializerGuard
();
29
30
protected
:
31
const
libMesh::Parallel::Communicator
&
_comm
;
32
bool
_warn
;
33
};
libMesh::Parallel::Communicator
SerializerGuard::_warn
bool _warn
Definition:
SerializerGuard.h:32
libMesh
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
SerializerGuard::SerializerGuard
SerializerGuard(const libMesh::Parallel::Communicator &comm, bool warn=true)
Definition:
SerializerGuard.C:16
SerializerGuard::_comm
const libMesh::Parallel::Communicator & _comm
Definition:
SerializerGuard.h:31
SerializerGuard::~SerializerGuard
~SerializerGuard()
Definition:
SerializerGuard.C:22
SerializerGuard
A scope guard that guarantees that whatever happens between when it gets created and when it is destr...
Definition:
SerializerGuard.h:24
Generated on Thu Apr 18 2024 15:23:10 for www.mooseframework.org by
1.8.14