Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::PropertiesImpl Class Reference

Public Types

typedef std::map< String, PropertyVariant * > MapType

Public Member Functions

 PropertiesImpl (IPropertyMng *pm, const String &name)
virtual void deleteMe ()
 Destroys the referenced object.
template<typename DataType>
bool getScalarValue (const String &name, DataType &value)
template<typename DataType>
void _setScalarValue (SmallVariant &s, const DataType &value)
void _setScalarValue (SmallVariant &s, const String &value)
template<typename DataType>
DataType setScalarValue (const String &name, const DataType &value)
template<typename DataType>
void setArrayValue (const String &name, ConstArrayView< DataType > value)
template<typename DataType>
void getArrayValue (const String &name, Array< DataType > &value)
void print (std::ostream &o)
void serialize (ISerializer *serializer)
void serializeReserve (ISerializer *serializer)
void serializePut (ISerializer *serializer)
void serializeGet (ISerializer *serializer)
Public Member Functions inherited from Arcane::SharedReference
void addRef () override
 Increments the reference counter.
void removeRef () override
 Decrements the reference counter.
Int32 refCount () const override
 Returns the value of the reference counter.
Public Member Functions inherited from Arcane::ISharedReference
virtual ~ISharedReference ()=default
 Releases resources.
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

Public Attributes

IPropertyMngm_property_mng
PropertiesImpl * m_parent_property
String m_name
String m_full_name
MapType m_property_map
UniqueArray< IPropertyType * > m_types

Static Public Attributes

static const Int32 SERIALIZE_VERSION = 2

Additional Inherited Members

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

Detailed Description

TODO: give a little more information for exceptions. TODO: merge with IData TODO: make a visitor on it (use the one from IData)

Definition at line 429 of file Properties.cc.

Member Typedef Documentation

◆ MapType

typedef std::map<String, PropertyVariant*> Arcane::PropertiesImpl::MapType

Definition at line 442 of file Properties.cc.

Constructor & Destructor Documentation

◆ PropertiesImpl()

Arcane::PropertiesImpl::PropertiesImpl ( IPropertyMng * pm,
const String & name )

Definition at line 563 of file Properties.cc.

◆ ~PropertiesImpl()

Arcane::PropertiesImpl::~PropertiesImpl ( )

Definition at line 589 of file Properties.cc.

Member Function Documentation

◆ _setScalarValue() [1/2]

template<typename DataType>
void Arcane::PropertiesImpl::_setScalarValue ( SmallVariant & s,
const DataType & value )
inline

Definition at line 480 of file Properties.cc.

◆ _setScalarValue() [2/2]

void Arcane::PropertiesImpl::_setScalarValue ( SmallVariant & s,
const String & value )
inline

Definition at line 484 of file Properties.cc.

◆ deleteMe()

virtual void Arcane::PropertiesImpl::deleteMe ( )
inlinevirtual

Destroys the referenced object.

Implements Arcane::SharedReference.

Definition at line 451 of file Properties.cc.

◆ getArrayValue()

template<typename DataType>
void Arcane::PropertiesImpl::getArrayValue ( const String & name,
Array< DataType > & value )
inline

Definition at line 526 of file Properties.cc.

◆ getScalarValue()

template<typename DataType>
bool Arcane::PropertiesImpl::getScalarValue ( const String & name,
DataType & value )
inline

Definition at line 465 of file Properties.cc.

◆ print()

void Arcane::PropertiesImpl::print ( std::ostream & o)

Definition at line 606 of file Properties.cc.

◆ serialize()

void Arcane::PropertiesImpl::serialize ( ISerializer * serializer)

Definition at line 631 of file Properties.cc.

◆ serializeGet()

void Arcane::PropertiesImpl::serializeGet ( ISerializer * serializer)

Definition at line 694 of file Properties.cc.

◆ serializePut()

void Arcane::PropertiesImpl::serializePut ( ISerializer * serializer)

Definition at line 671 of file Properties.cc.

◆ serializeReserve()

void Arcane::PropertiesImpl::serializeReserve ( ISerializer * serializer)

Definition at line 650 of file Properties.cc.

◆ setArrayValue()

template<typename DataType>
void Arcane::PropertiesImpl::setArrayValue ( const String & name,
ConstArrayView< DataType > value )
inline

Definition at line 511 of file Properties.cc.

◆ setScalarValue()

template<typename DataType>
DataType Arcane::PropertiesImpl::setScalarValue ( const String & name,
const DataType & value )
inline

Definition at line 490 of file Properties.cc.

Member Data Documentation

◆ m_full_name

String Arcane::PropertiesImpl::m_full_name

Definition at line 458 of file Properties.cc.

◆ m_name

String Arcane::PropertiesImpl::m_name

Definition at line 457 of file Properties.cc.

◆ m_parent_property

PropertiesImpl* Arcane::PropertiesImpl::m_parent_property

Definition at line 456 of file Properties.cc.

◆ m_property_map

MapType Arcane::PropertiesImpl::m_property_map

Definition at line 459 of file Properties.cc.

◆ m_property_mng

IPropertyMng* Arcane::PropertiesImpl::m_property_mng

Definition at line 455 of file Properties.cc.

◆ m_types

UniqueArray<IPropertyType*> Arcane::PropertiesImpl::m_types

Definition at line 460 of file Properties.cc.

◆ SERIALIZE_VERSION

const Int32 Arcane::PropertiesImpl::SERIALIZE_VERSION = 2
static

Definition at line 438 of file Properties.cc.


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