Arcane  4.2.3.0
Developer documentation
Loading...
Searching...
No Matches
SolverBase.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* SolverBase.h (C) 2000-2026 */
9/* */
10/* Base class for solver classes. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_ALINA_SOLVERBASE_H
13#define ARCCORE_ALINA_SOLVERBASE_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/alina/AlinaContext.h"
18
19#include <cstddef>
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane::Alina
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
32class ARCCORE_ALINA_EXPORT SolverBase
33{
34 public:
35
36 SolverBase(const AlinaContext& context)
37 : m_context(context)
38 {}
39 virtual ~SolverBase() = default;
40
41 public:
42
44 virtual size_t bytes() const = 0;
45
46 private:
47
48 AlinaContext m_context;
49};
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
54} // namespace Arcane::Alina
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
59#endif
virtual size_t bytes() const =0
Memory used in bytes.