Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ConstituentListPrinter.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/* ConstituentListPrinter.h (C) 2000-2023 */
9/* */
10/* Utility functions for displaying constituents. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MATERIALS_INTERNAL_COMPONENTLISTPRINTER_H
13#define ARCANE_MATERIALS_INTERNAL_COMPONENTLISTPRINTER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/TraceAccessor.h"
18#include "arcane/utils/Array.h"
19
20#include "arcane/core/VariableTypes.h"
21
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27namespace Arcane::Materials
28{
29
30/*---------------------------------------------------------------------------*/
31/*---------------------------------------------------------------------------*/
32
36class ARCANE_MATERIALS_EXPORT ConstituentListPrinter
37: public TraceAccessor
38{
39 public:
40
41 explicit ConstituentListPrinter(MeshMaterialMng* mm);
42
43 public:
44
45 ConstituentListPrinter(ConstituentListPrinter&&) = delete;
46 ConstituentListPrinter(const ConstituentListPrinter&) = delete;
47 ConstituentListPrinter& operator=(ConstituentListPrinter&&) = delete;
48 ConstituentListPrinter& operator=(const ConstituentListPrinter&) = delete;
49
50 public:
51
52 void print();
53
54 private:
55
56 MeshMaterialMng* m_material_mng = nullptr;
57
58 private:
59
60 void _printConstituentsPerCell(ItemVectorView items);
61 void _printConstituents();
62};
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67} // namespace Arcane::Materials
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
71
72#endif
View on a vector of entities.
Implementation of a material manager.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
Always enables tracing in Arcane parts concerning materials.
class ARCANE_MATERIALS_EXPORT(64) SimdMatVarIndex
SIMD indexer on a component.