Skip to content

SetClassIdAttribute

template <typename ValueType, typename isHashTheBase> struct SetClassIdAttribute

Helper struct adding a classId attribute for classes inheriting (but not being) Hash. See also its specialisation for isHashTheBase and ValueType.

Functions

Name Description
SetClassIdAttribute Set the classId attribute as given by value.getClassInfo() value : of classId to set e : element to set classId to
resetHashDerivedMoved Helper to hack rvalue reference 'value' (which is Hash derived) back into a valid state
resetHashDerivedMoved No-op for lvalue reference

Function Details

SetClassIdAttribute

SetClassIdAttribute(const ValueType& value, Element& e)

Set the classId attribute as given by value.getClassInfo()

value : of classId to set

e : element to set classId to

resetHashDerivedMoved

void resetHashDerivedMoved(ValueType&& value)

Helper to hack rvalue reference 'value' (which is Hash derived) back into a valid state

void resetHashDerivedMoved(ValueType& value)

No-op for lvalue reference