PLaSK library

Loading...
Searching...
No Matches
lazydata.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 "lazydata.hpp"
15
16 namespace plask {
17
18#ifdef _MSC_VER // MSVC requires this while MingW does not accept it
19#define TEMPLATE_CLASS_FOR_LAZY_DATA(...) \
20 template class PLASK_API LazyData<__VA_ARGS__>; \
21 template struct PLASK_API LazyDataImpl<__VA_ARGS__>;
22
23 TEMPLATE_CLASS_FOR_LAZY_DATA(Tensor3<complex<double>>)
24 TEMPLATE_CLASS_FOR_LAZY_DATA(Tensor2<double>)
25 TEMPLATE_CLASS_FOR_LAZY_DATA(Vec<3,complex<double>>)
26 TEMPLATE_CLASS_FOR_LAZY_DATA(Vec<3,double>)
27 TEMPLATE_CLASS_FOR_LAZY_DATA(Vec<2,double>)
28 TEMPLATE_CLASS_FOR_LAZY_DATA(double)
29 TEMPLATE_CLASS_FOR_LAZY_DATA(complex<double>)
30
31#endif
32
33} // namespace plask