Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ICaseMng Class Referenceabstract

Case manager interface. More...

#include <arcane/core/ICaseMng.h>

Inheritance diagram for Arcane::ICaseMng:
Collaboration diagram for Arcane::ICaseMng:

Public Member Functions

virtual ~ICaseMng ()=default
 Frees resources.
virtual IApplicationapplication ()=0
 Associated application.
virtual ITraceMngtraceMng ()=0
 Trace manager.
virtual IMeshMngmeshMng () const =0
 Associated mesh manager.
virtual ISubDomainsubDomain ()=0
 Sub-domain manager.
virtual ICaseDocumentcaseDocument ()=0
 XML document of the dataset (can be null if no dataset).
virtual ICaseDocumentFragmentcaseDocumentFragment ()=0
 Fragment of the XML Document associated with the dataset (can be null if no dataset).
virtual IPhysicalUnitSystemphysicalUnitSystem () const =0
 Associated unit system.
virtual ICaseDocumentreadCaseDocument (const String &filename, ByteConstArrayView bytes)=0
 Reads the XML document of the dataset.
virtual void readOptions (bool is_phase1)=0
 Reads the dataset options corresponding to the used modules.
virtual void printOptions ()=0
 Prints the option values.
virtual void readFunctions ()=0
 Reads the dataset tables.
virtual void registerOptions (ICaseOptions *)=0
 Registers a list of dataset options.
virtual void unregisterOptions (ICaseOptions *)=0
 Unregisters a list of dataset options.
virtual CaseOptionsCollection blocks () const =0
 Collection of option blocks.
virtual ICaseFunctionfindFunction (const String &name) const =0
 Returns the function by name name or nullptr if none exists.
virtual CaseFunctionCollection functions ()=0
 Returns the list of tables.
virtual void removeFunction (ICaseFunction *func, bool dofree)=0
 Deletes a function.
virtual void removeFunction (ICaseFunction *func)=0
 Deletes a function.
virtual void addFunction (ICaseFunction *func)=0
 Adds the function func.
virtual void addFunction (Ref< ICaseFunction > func)=0
 Adds the function func.
virtual void updateOptions (Real current_time, Real current_deltat, Integer current_iteration)=0
 Updates the options based on a time-marching table.
virtual void setTreatWarningAsError (bool v)=0
 Sets the way warnings are treated.
virtual bool isTreatWarningAsError () const =0
 Indicates whether warnings in the dataset should be treated as errors and cause the code to stop.
virtual void setAllowUnkownRootElelement (bool v)=0
 Sets the permission for unknown elements at the document root.
virtual bool isAllowUnkownRootElelement () const =0
 Indicates whether unknown elements at the document root are allowed.
virtual IObservableobservable (eCaseMngEventType type)=0
 Observable on the instance.
virtual Ref< ICaseMngtoReference ()=0
virtual ICaseMngInternal_internalImpl ()=0
 Internal implementation.

Private Member Functions

 ARCCORE_DECLARE_REFERENCE_COUNTED_INCLASS_METHODS ()

Detailed Description

Case manager interface.

This interface is managed by a reference counter and should not be explicitly destroyed.

Definition at line 56 of file ICaseMng.h.

Member Function Documentation

◆ _internalImpl()

virtual ICaseMngInternal * Arcane::ICaseMng::_internalImpl ( )
pure virtual

Internal implementation.

Implemented in Arcane::CaseMng.

References _internalImpl().

Referenced by _internalImpl(), Arcane::CaseOptionMultiExtended::_search(), and Arcane::CaseOptions::CaseOptions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFunction() [1/2]

virtual void Arcane::ICaseMng::addFunction ( ICaseFunction * func)
pure virtual

Adds the function func.

Addition can only be done during initialization. The caller remains the owner of the func instance and must remove it via removeFunction().

Implemented in Arcane::CaseMng.

References addFunction().

Referenced by addFunction(), and addFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFunction() [2/2]

virtual void Arcane::ICaseMng::addFunction ( Ref< ICaseFunction > func)
pure virtual

Adds the function func.

Addition can only be done during initialization.

Implemented in Arcane::CaseMng.

References addFunction().

Here is the call graph for this function:

◆ application()

virtual IApplication * Arcane::ICaseMng::application ( )
pure virtual

Associated application.

Implemented in Arcane::CaseMng.

◆ blocks()

virtual CaseOptionsCollection Arcane::ICaseMng::blocks ( ) const
pure virtual

Collection of option blocks.

Implemented in Arcane::CaseMng.

Referenced by Arcane::TimeLoopMng::doOneIteration(), and Arcane::SubDomain::dumpInternalInfos().

Here is the caller graph for this function:

◆ caseDocument()

virtual ICaseDocument * Arcane::ICaseMng::caseDocument ( )
pure virtual

XML document of the dataset (can be null if no dataset).

Implemented in Arcane::CaseMng.

Referenced by Arcane::TimeLoopMng::_fillModuleStateMap(), Arcane::SubDomain::allocateMeshes(), and Arcane::CaseOptionBase::caseDocument().

Here is the caller graph for this function:

◆ caseDocumentFragment()

virtual ICaseDocumentFragment * Arcane::ICaseMng::caseDocumentFragment ( )
pure virtual

Fragment of the XML Document associated with the dataset (can be null if no dataset).

Implemented in Arcane::CaseMng.

◆ findFunction()

virtual ICaseFunction * Arcane::ICaseMng::findFunction ( const String & name) const
pure virtual

Returns the function by name name or nullptr if none exists.

Implemented in Arcane::CaseMng.

◆ functions()

virtual CaseFunctionCollection Arcane::ICaseMng::functions ( )
pure virtual

Returns the list of tables.

The returned pointer is no longer valid as soon as the list of tables changes.

Implemented in Arcane::CaseMng.

◆ isAllowUnkownRootElelement()

virtual bool Arcane::ICaseMng::isAllowUnkownRootElelement ( ) const
pure virtual

Indicates whether unknown elements at the document root are allowed.

Implemented in Arcane::CaseMng.

References isAllowUnkownRootElelement().

Referenced by isAllowUnkownRootElelement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isTreatWarningAsError()

virtual bool Arcane::ICaseMng::isTreatWarningAsError ( ) const
pure virtual

Indicates whether warnings in the dataset should be treated as errors and cause the code to stop.

Implemented in Arcane::CaseMng.

References isTreatWarningAsError().

Referenced by isTreatWarningAsError().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ meshMng()

virtual IMeshMng * Arcane::ICaseMng::meshMng ( ) const
pure virtual

Associated mesh manager.

Implemented in Arcane::CaseMng.

◆ observable()

virtual IObservable * Arcane::ICaseMng::observable ( eCaseMngEventType type)
pure virtual

Observable on the instance.

The type of the observable is given by type

Implemented in Arcane::CaseMng.

References observable().

Referenced by observable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ physicalUnitSystem()

virtual IPhysicalUnitSystem * Arcane::ICaseMng::physicalUnitSystem ( ) const
pure virtual

Associated unit system.

Implemented in Arcane::CaseMng.

◆ printOptions()

virtual void Arcane::ICaseMng::printOptions ( )
pure virtual

Prints the option values.

Implemented in Arcane::CaseMng.

Referenced by Arcane::CodeService::initCase().

Here is the caller graph for this function:

◆ readCaseDocument()

virtual ICaseDocument * Arcane::ICaseMng::readCaseDocument ( const String & filename,
ByteConstArrayView bytes )
pure virtual

Reads the XML document of the dataset.

Implemented in Arcane::CaseMng.

◆ readFunctions()

virtual void Arcane::ICaseMng::readFunctions ( )
pure virtual

Reads the dataset tables.

Implemented in Arcane::CaseMng.

◆ readOptions()

virtual void Arcane::ICaseMng::readOptions ( bool is_phase1)
pure virtual

Reads the dataset options corresponding to the used modules.

Implemented in Arcane::CaseMng.

Referenced by Arcane::CodeService::initCase().

Here is the caller graph for this function:

◆ registerOptions()

virtual void Arcane::ICaseMng::registerOptions ( ICaseOptions * )
pure virtual

Registers a list of dataset options.

Implemented in Arcane::CaseMng.

Referenced by Arcane::CaseOptions::CaseOptions(), Arcane::CaseOptions::CaseOptions(), and Arcane::CaseOptions::CaseOptions().

Here is the caller graph for this function:

◆ removeFunction() [1/2]

virtual void Arcane::ICaseMng::removeFunction ( ICaseFunction * func)
pure virtual

Deletes a function.

Deletes the function func. If this function is not in this list, nothing is done.

Implemented in Arcane::CaseMng.

References removeFunction().

Here is the call graph for this function:

◆ removeFunction() [2/2]

virtual void Arcane::ICaseMng::removeFunction ( ICaseFunction * func,
bool dofree )
pure virtual

Deletes a function.

Deletes the function func. If this function is not in this list, nothing is done. If dofree is true, the delete operator is called on this function.

Implemented in Arcane::CaseMng.

References removeFunction().

Referenced by removeFunction(), and removeFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAllowUnkownRootElelement()

virtual void Arcane::ICaseMng::setAllowUnkownRootElelement ( bool v)
pure virtual

Sets the permission for unknown elements at the document root.

Implemented in Arcane::CaseMng.

References setAllowUnkownRootElelement().

Referenced by setAllowUnkownRootElelement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTreatWarningAsError()

virtual void Arcane::ICaseMng::setTreatWarningAsError ( bool v)
pure virtual

Sets the way warnings are treated.

See also
isTreatWarningAsError().

Implemented in Arcane::CaseMng.

References setTreatWarningAsError().

Referenced by setTreatWarningAsError().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subDomain()

virtual ISubDomain * Arcane::ICaseMng::subDomain ( )
pure virtual

Sub-domain manager.

Implemented in Arcane::CaseMng.

◆ traceMng()

virtual ITraceMng * Arcane::ICaseMng::traceMng ( )
pure virtual

Trace manager.

Implemented in Arcane::CaseMng.

◆ unregisterOptions()

virtual void Arcane::ICaseMng::unregisterOptions ( ICaseOptions * )
pure virtual

Unregisters a list of dataset options.

Implemented in Arcane::CaseMng.

◆ updateOptions()

virtual void Arcane::ICaseMng::updateOptions ( Real current_time,
Real current_deltat,
Integer current_iteration )
pure virtual

Updates the options based on a time-marching table.

For each option dependent on a marching table, updates its value using the current_time parameter if it is a marching table with a real parameter, or current_iteration if it is a marching table with an integer parameter. If the option function has a non-zero coefficient ICaseFunction::deltatCoef(), the time used is equal to current_time + coef*current_deltat.

Parameters
current_timetime used as parameter for the function
current_deltatdeltat used as parameter for the function
current_iterationiteration used as parameter for the function

Implemented in Arcane::CaseMng.

References updateOptions().

Referenced by Arcane::ModuleMaster::masterContinueInit(), Arcane::ModuleMaster::masterStartInit(), Arcane::ModuleMaster::timeLoopBegin(), and updateOptions().

Here is the call graph for this function:
Here is the caller graph for this function:

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