OpenLB 1.7
Loading...
Searching...
No Matches
column.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2021 Adrian Kummerlaender
4 *
5 * E-mail contact: info@openlb.net
6 * The most recent release of OpenLB can be downloaded at
7 * <http://www.openlb.net/>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this program; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23*/
24
25#ifndef COLUMN_H
26#define COLUMN_H
27
28#include "platform.h"
29
30namespace olb {
31
33template <typename T>
35 using value_type = T;
36
37 virtual const T& operator[](std::size_t i) const = 0;
38 virtual T& operator[](std::size_t i) = 0;
39};
40
42template <typename T>
44 using value_type = T;
45
46 virtual const T& operator[](std::size_t i) const = 0;
47 virtual T& operator[](std::size_t i) = 0;
48};
49
51template <typename ABSTRACT, Platform PLATFORM>
53
54}
55
56#endif
57
58#include "cpu/sisd/column.h"
59
60#ifdef PLATFORM_CPU_SIMD
61#include "cpu/simd/column.h"
62#endif
63
64#ifdef PLATFORM_GPU_CUDA
65#include "gpu/cuda/column.h"
66#endif
Top level namespace for all of OpenLB.
Abstract declarator of Column-like storage.
Definition column.h:34
virtual T & operator[](std::size_t i)=0
virtual const T & operator[](std::size_t i) const =0
Abstract declarator of cyclic Column-like storage.
Definition column.h:43
virtual T & operator[](std::size_t i)=0
virtual const T & operator[](std::size_t i) const =0
Specializable declarator for concrete implementations of abstract storage types.
Definition column.h:52