PLaSK library
Loading...
Searching...
No Matches
utils.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of PLaSK (https://plask.app) by Photonics Group at TUL
3
* Copyright (c) 2022 Lodz University of Technology
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, version 3.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*/
14
#include "
utils.hpp
"
15
16
namespace
plask
{
17
18
void
plask::SameMeshChecker::setMesh(
const
plask::Mesh
*mesh) {
19
connection_with_mesh.disconnect();
20
this->mesh = mesh;
21
if
(this->mesh)
22
connection_with_mesh =
const_cast<
Mesh*
>
(this->mesh)->changed.connect(boost::bind(&SameMeshChecker::onMeshChanged,
this
,
_1
), boost::signals2::at_front);
23
}
24
25
}
// namespace plask
plask
mesh
utils.cpp
Generated by
1.9.8