Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
IItemConnectivityInfo.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/* IItemConnectivityInfo.h (C) 2000-2025 */
9/* */
10/* Interface for connectivity information by entity type. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IITEMCONNECTIVITYINFO_H
13#define ARCANE_CORE_IITEMCONNECTIVITYINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \ingroup Mesh
30 *
31 * \brief Interface for connectivity information by entity type.
32 *
33 * This interface allows knowing for a given entity type
34 * the maximum number of connected entities. This can be used
35 * for example to size variables.
36 *
37 * Instances of this interface are generally retrieved
38 * via IItemFamily::localConnectivityInfos() for local information within the
39 * subdomain or IItemFamily::globalConnectivityInfos() for global information
40 * across all meshes.
41 */
43{
44 public:
45
46 virtual ~IItemConnectivityInfo() = default; //<! Releases resources
47
48 public:
49
50 //! Maximum number of nodes per entity
51 virtual Integer maxNodePerItem() const = 0;
52
53 //! Maximum number of edges per entity
54 virtual Integer maxEdgePerItem() const = 0;
55
56 //! Maximum number of faces per entity
57 virtual Integer maxFacePerItem() const = 0;
58
59 //! Maximum number of cells per entity
60 virtual Integer maxCellPerItem() const = 0;
61};
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
65
66} // End namespace Arcane
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
71#endif
Declarations of Arcane's general types.
Interface for connectivity information by entity type.
virtual Integer maxNodePerItem() const =0
Maximum number of nodes per entity.
virtual Integer maxFacePerItem() const =0
Maximum number of faces per entity.
virtual Integer maxEdgePerItem() const =0
Maximum number of edges per entity.
virtual Integer maxCellPerItem() const =0
Maximum number of cells per entity.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.