Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ItemGroupGeometryProperty.cc
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#include "arcane/geometry/impl/ItemGroupGeometryProperty.h"
8/* Author : havep at Tue Apr 1 17:25:52 2008
9 * Generated by createNew
10 */
11
12/*---------------------------------------------------------------------------*/
13/*---------------------------------------------------------------------------*/
14
15namespace Arcane::Numerics
16{
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
23: defined(0)
24, computed(0)
25, delegated(0)
26{
27 ;
28}
29
32{
33 // Automatic destruction by AutoRef's
34}
35
36bool ItemGroupGeometryProperty::
37hasProperty(const IGeometryProperty::eProperty p) const
38{
39 return (defined & p) == p;
40}
41
43ItemGroupGeometryProperty::
44getStorage(const IGeometryProperty::eProperty p) const
45{
46 StorageInfos::const_iterator ifinder = storages.find(p);
47 if (ifinder == storages.end())
48 return IGeometryProperty::PNoStorage;
49 else
50 return ifinder->second.storageType;
51}
52
53void ItemGroupGeometryProperty::
54resetFlags()
55{
56 computed = 0;
57 delegated = 0;
58 for (StorageInfos::iterator i = storages.begin(); i != storages.end(); ++i) {
59 i->second.usageVarCount = 0;
60 i->second.usageMapCount = 0;
61 }
62}
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67} // namespace Arcane::Numerics
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
Int32 Integer
Type representing an integer.