Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Materials::MeshComponentData Class Reference

Data of a constituent (material or medium) of a mesh. More...

#include <arcane/materials/internal/MeshComponentData.h>

Inheritance diagram for Arcane::Materials::MeshComponentData:
Collaboration diagram for Arcane::Materials::MeshComponentData:

Public Member Functions

 MeshComponentData (IMeshComponent *component, const String &name, Int16 component_id, ComponentItemSharedInfo *shared_info, bool create_indexer)
const Stringname () const
MeshMaterialVariableIndexervariableIndexer () const
ConstituentItemLocalIdListView constituentItemListView () const
const ItemGroupitems () const
Int16 componentId () const
void setSpecificExecutionPolicy (Accelerator::eExecutionPolicy policy)
Accelerator::eExecutionPolicy specificExecutionPolicy () const
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const

Private Member Functions

matimpl::ConstituentItemBase _itemBase (Int32 index) const
 Returns an instance of the index-th entity in the list.
void _setConstituentItem (Int32 index, ConstituentItemIndex id)
void checkValid ()
void _resizeItemsInternal (Int32 nb_item)
void _setVariableIndexer (MeshMaterialVariableIndexer *indexer)
void _setItems (const ItemGroup &group)
void _changeLocalIdsForInternalList (Int32ConstArrayView old_to_new_ids)
 Updates the constituent's m_items_internal after a change in local numbering.
void _rebuildPartData (RunQueue &queue)
void _buildPartData ()
MeshComponentPartData_partData () const
void _setPartInfo ()
void _rebuildPartDataDirect ()

Private Attributes

IMeshComponentm_component = nullptr
 Constituent whose data is managed.
Int16 m_component_id = -1
 Constituent index (in the list of constituents of this type).
String m_name
 Name of the constituent.
ItemGroup m_items
 List of entities of this constituent.
bool m_is_indexer_owner = false
 Indicates if we own the indexer (in this case, it will be destroyed with the instance).
MeshMaterialVariableIndexerm_variable_indexer = nullptr
 Info for indexing partial variables.
ConstituentItemLocalIdList m_constituent_local_id_list
 List of ConstituentItemIndex for this constituent.
MeshComponentPartDatam_part_data = nullptr
FunctorT< MeshComponentData > m_recompute_part_data_functor
Accelerator::eExecutionPolicy m_specific_execution_policy = Accelerator::eExecutionPolicy::None
 Specific execution policy.

Friends

class MeshEnvironment
class MeshMaterial
class AllEnvData

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Data of a constituent (material or medium) of a mesh.

This class contains data common to MeshMaterial and MeshEnvironment.

This class is internal to Arcane.

Definition at line 52 of file MeshComponentData.h.

Constructor & Destructor Documentation

◆ MeshComponentData()

Arcane::Materials::MeshComponentData::MeshComponentData ( IMeshComponent * component,
const String & name,
Int16 component_id,
ComponentItemSharedInfo * shared_info,
bool create_indexer )

Definition at line 35 of file MeshComponentData.cc.

◆ ~MeshComponentData()

Arcane::Materials::MeshComponentData::~MeshComponentData ( )
override

Definition at line 55 of file MeshComponentData.cc.

Member Function Documentation

◆ _buildPartData()

void Arcane::Materials::MeshComponentData::_buildPartData ( )
private

Definition at line 110 of file MeshComponentData.cc.

◆ _changeLocalIdsForInternalList()

void Arcane::Materials::MeshComponentData::_changeLocalIdsForInternalList ( Int32ConstArrayView old_to_new_ids)
private

Updates the constituent's m_items_internal after a change in local numbering.

Warning
This method must be called before updating the m_variable_indexer because its local_ids are used.

Definition at line 127 of file MeshComponentData.cc.

References Arcane::Array< T >::add(), m_constituent_local_id_list, Arcane::AbstractArray< T >::size(), and Arcane::ConstArrayView< T >::size().

Here is the call graph for this function:

◆ _itemBase()

matimpl::ConstituentItemBase Arcane::Materials::MeshComponentData::_itemBase ( Int32 index) const
inlineprivate

Returns an instance of the index-th entity in the list.

Definition at line 83 of file MeshComponentData.h.

References m_constituent_local_id_list.

◆ _partData()

MeshComponentPartData * Arcane::Materials::MeshComponentData::_partData ( ) const
inlineprivate

Definition at line 125 of file MeshComponentData.h.

◆ _rebuildPartData()

void Arcane::Materials::MeshComponentData::_rebuildPartData ( RunQueue & queue)
private

Definition at line 156 of file MeshComponentData.cc.

◆ _rebuildPartDataDirect()

void Arcane::Materials::MeshComponentData::_rebuildPartDataDirect ( )
private

Definition at line 172 of file MeshComponentData.cc.

◆ _resizeItemsInternal()

void Arcane::Materials::MeshComponentData::_resizeItemsInternal ( Int32 nb_item)
private

Definition at line 79 of file MeshComponentData.cc.

◆ _setConstituentItem()

void Arcane::Materials::MeshComponentData::_setConstituentItem ( Int32 index,
ConstituentItemIndex id )
inlineprivate

Definition at line 88 of file MeshComponentData.h.

◆ _setItems()

void Arcane::Materials::MeshComponentData::_setItems ( const ItemGroup & group)
private

Definition at line 99 of file MeshComponentData.cc.

◆ _setPartInfo()

void Arcane::Materials::MeshComponentData::_setPartInfo ( )
private

Definition at line 69 of file MeshComponentData.cc.

◆ _setVariableIndexer()

void Arcane::Materials::MeshComponentData::_setVariableIndexer ( MeshMaterialVariableIndexer * indexer)
private

Definition at line 89 of file MeshComponentData.cc.

◆ checkValid()

void Arcane::Materials::MeshComponentData::checkValid ( )
private

Definition at line 182 of file MeshComponentData.cc.

◆ componentId()

Int16 Arcane::Materials::MeshComponentData::componentId ( ) const
inline

Definition at line 102 of file MeshComponentData.h.

◆ constituentItemListView()

ConstituentItemLocalIdListView Arcane::Materials::MeshComponentData::constituentItemListView ( ) const
inline

Definition at line 75 of file MeshComponentData.h.

◆ items()

const ItemGroup & Arcane::Materials::MeshComponentData::items ( ) const
inline

Definition at line 97 of file MeshComponentData.h.

◆ name()

const String & Arcane::Materials::MeshComponentData::name ( ) const
inline

Definition at line 68 of file MeshComponentData.h.

◆ setSpecificExecutionPolicy()

void Arcane::Materials::MeshComponentData::setSpecificExecutionPolicy ( Accelerator::eExecutionPolicy policy)
inline

Definition at line 107 of file MeshComponentData.h.

◆ specificExecutionPolicy()

Accelerator::eExecutionPolicy Arcane::Materials::MeshComponentData::specificExecutionPolicy ( ) const
inline

Definition at line 112 of file MeshComponentData.h.

◆ variableIndexer()

MeshMaterialVariableIndexer * Arcane::Materials::MeshComponentData::variableIndexer ( ) const
inline

Definition at line 70 of file MeshComponentData.h.

◆ AllEnvData

friend class AllEnvData
friend

Definition at line 57 of file MeshComponentData.h.

◆ MeshEnvironment

friend class MeshEnvironment
friend

Definition at line 55 of file MeshComponentData.h.

◆ MeshMaterial

friend class MeshMaterial
friend

Definition at line 56 of file MeshComponentData.h.

Member Data Documentation

◆ m_component

IMeshComponent* Arcane::Materials::MeshComponentData::m_component = nullptr
private

Constituent whose data is managed.

Definition at line 130 of file MeshComponentData.h.

◆ m_component_id

Int16 Arcane::Materials::MeshComponentData::m_component_id = -1
private

Constituent index (in the list of constituents of this type).

See also
IMeshMaterialMng.

Definition at line 136 of file MeshComponentData.h.

◆ m_constituent_local_id_list

ConstituentItemLocalIdList Arcane::Materials::MeshComponentData::m_constituent_local_id_list
private

◆ m_is_indexer_owner

bool Arcane::Materials::MeshComponentData::m_is_indexer_owner = false
private

Indicates if we own the indexer (in this case, it will be destroyed with the instance).

Definition at line 145 of file MeshComponentData.h.

◆ m_items

ItemGroup Arcane::Materials::MeshComponentData::m_items
private

List of entities of this constituent.

Definition at line 142 of file MeshComponentData.h.

◆ m_name

String Arcane::Materials::MeshComponentData::m_name
private

Name of the constituent.

Definition at line 139 of file MeshComponentData.h.

◆ m_part_data

MeshComponentPartData* Arcane::Materials::MeshComponentData::m_part_data = nullptr
private

Definition at line 153 of file MeshComponentData.h.

◆ m_recompute_part_data_functor

FunctorT<MeshComponentData> Arcane::Materials::MeshComponentData::m_recompute_part_data_functor
private

Definition at line 154 of file MeshComponentData.h.

◆ m_specific_execution_policy

Accelerator::eExecutionPolicy Arcane::Materials::MeshComponentData::m_specific_execution_policy = Accelerator::eExecutionPolicy::None
private

Specific execution policy.

Definition at line 157 of file MeshComponentData.h.

◆ m_variable_indexer

MeshMaterialVariableIndexer* Arcane::Materials::MeshComponentData::m_variable_indexer = nullptr
private

Info for indexing partial variables.

Definition at line 148 of file MeshComponentData.h.


The documentation for this class was generated from the following files: