BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ModelView::Compatibility Namespace Reference

Functions

MVVM_MODEL_EXPORT bool IsCompatibleGroupTag (const SessionItemContainer &container, const TagInfo &taginfo)
 Returns true if given TagInfo is a tag from GroupItem which is compatible with given container. More...
 
MVVM_MODEL_EXPORT bool IsCompatibleSinglePropertyTag (const SessionItemContainer &container, const TagInfo &taginfo)
 Returns true if given TagInfo is a single property tag which is compatible with given container. More...
 
MVVM_MODEL_EXPORT bool IsCompatibleUniversalTag (const SessionItemContainer &container, const TagInfo &taginfo)
 Returns true if given TagInfo is compatible with given container. More...
 

Function Documentation

◆ IsCompatibleGroupTag()

MVVM_MODEL_EXPORT bool ModelView::Compatibility::IsCompatibleGroupTag ( const SessionItemContainer container,
const TagInfo taginfo 
)

Returns true if given TagInfo is a tag from GroupItem which is compatible with given container.

See more explanations in the code.

Referenced by TEST_F(), and ModelView::JsonItemContainerConverter::JsonItemContainerConverterImpl::update_container().

◆ IsCompatibleSinglePropertyTag()

MVVM_MODEL_EXPORT bool ModelView::Compatibility::IsCompatibleSinglePropertyTag ( const SessionItemContainer container,
const TagInfo taginfo 
)

Returns true if given TagInfo is a single property tag which is compatible with given container.

See more explanations in the code.

Referenced by TEST_F(), and ModelView::JsonItemContainerConverter::JsonItemContainerConverterImpl::update_container().

◆ IsCompatibleUniversalTag()

MVVM_MODEL_EXPORT bool ModelView::Compatibility::IsCompatibleUniversalTag ( const SessionItemContainer container,
const TagInfo taginfo 
)

Returns true if given TagInfo is compatible with given container.

See explanations in the code.

Referenced by TEST_F(), and ModelView::JsonItemContainerConverter::JsonItemContainerConverterImpl::update_container().