Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::PropertyImpl::FieldProperty< DataType > Class Template Reference
Collaboration diagram for Arcane::PropertyImpl::FieldProperty< DataType >:

Public Member Functions

 FieldProperty (const DataType &default_value)
FieldProperty & operator= (const DataType &v)
 explicit (false) operator DataType() const
void setValue (const DataType &v)
DataType value () const
bool isValueSet () const
void setValidator (std::function< void(DataType &)> &&func)

Private Attributes

DataType m_value
DataType m_default_value
bool m_has_value = false
std::function< void(DataType &)> m_validator

Detailed Description

template<typename DataType>
class Arcane::PropertyImpl::FieldProperty< DataType >

Definition at line 40 of file FieldProperty.h.

Constructor & Destructor Documentation

◆ FieldProperty() [1/2]

template<typename DataType>
Arcane::PropertyImpl::FieldProperty< DataType >::FieldProperty ( const DataType & default_value)
inlineexplicit

Definition at line 44 of file FieldProperty.h.

◆ FieldProperty() [2/2]

template<typename DataType>
Arcane::PropertyImpl::FieldProperty< DataType >::FieldProperty ( )
inline

Definition at line 48 of file FieldProperty.h.

Member Function Documentation

◆ explicit()

template<typename DataType>
Arcane::PropertyImpl::FieldProperty< DataType >::explicit ( false ) const
inline

Definition at line 56 of file FieldProperty.h.

◆ isValueSet()

template<typename DataType>
bool Arcane::PropertyImpl::FieldProperty< DataType >::isValueSet ( ) const
inline

Definition at line 72 of file FieldProperty.h.

◆ operator=()

template<typename DataType>
FieldProperty & Arcane::PropertyImpl::FieldProperty< DataType >::operator= ( const DataType & v)
inline

Definition at line 51 of file FieldProperty.h.

◆ setValidator()

template<typename DataType>
void Arcane::PropertyImpl::FieldProperty< DataType >::setValidator ( std::function< void(DataType &)> && func)
inline

Definition at line 73 of file FieldProperty.h.

◆ setValue()

template<typename DataType>
void Arcane::PropertyImpl::FieldProperty< DataType >::setValue ( const DataType & v)
inline

Definition at line 60 of file FieldProperty.h.

◆ value()

template<typename DataType>
DataType Arcane::PropertyImpl::FieldProperty< DataType >::value ( ) const
inline

Definition at line 71 of file FieldProperty.h.

Member Data Documentation

◆ m_default_value

template<typename DataType>
DataType Arcane::PropertyImpl::FieldProperty< DataType >::m_default_value
private

Definition at line 78 of file FieldProperty.h.

◆ m_has_value

template<typename DataType>
bool Arcane::PropertyImpl::FieldProperty< DataType >::m_has_value = false
private

Definition at line 79 of file FieldProperty.h.

◆ m_validator

template<typename DataType>
std::function<void(DataType&)> Arcane::PropertyImpl::FieldProperty< DataType >::m_validator
private

Definition at line 80 of file FieldProperty.h.

◆ m_value

template<typename DataType>
DataType Arcane::PropertyImpl::FieldProperty< DataType >::m_value
private

Definition at line 77 of file FieldProperty.h.


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