move sub-functions of value impls to concrete types
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
7536cf4c7c
commit
03c18debec
14 changed files with 339 additions and 119 deletions
|
|
@ -9,7 +9,7 @@
|
|||
/// \brief The values of properties.
|
||||
/// \details Each entity has a value for each property it is associated with.
|
||||
/// These value classes represent plain objects. They are not associated with any entity.
|
||||
/// Each value may be indeterminate. \see IkarusProperty
|
||||
/// Each value may be undefined. \see IkarusProperty
|
||||
/// Values are stored as lists. If a property is "singular" then its value is a list of size 1.
|
||||
/// Values are typed, with types existing for each of the corresponding property types.
|
||||
/// When setting values for a property the type must match the property type and the value must be valid under the property's
|
||||
|
|
@ -21,25 +21,6 @@ IKARUS_BEGIN_HEADER
|
|||
/// \brief The common type for all values.
|
||||
struct IkarusValue;
|
||||
|
||||
/// \brief Checks if a value is indeterminate.
|
||||
/// \param value The value.
|
||||
/// \pre \li Must not be null.
|
||||
/// \return True if the value is indeterminate, false otherwise.
|
||||
IKA_API bool ikarus_value_is_indeterminate(IkarusValue const * value);
|
||||
|
||||
/// \brief Sets the indeterminate state of a value.
|
||||
/// \param value The value.
|
||||
/// \pre \li Must not be null.
|
||||
/// \param indeterminate The new indeterminate state.
|
||||
IKA_API void ikarus_value_set_indeterminate(IkarusValue * value, bool indeterminate);
|
||||
|
||||
/// \brief Converts an entity value to a string.
|
||||
/// \pre \li Must not be null.
|
||||
/// \param value The entity value.
|
||||
/// \return A string representation of the value or null if an error occurred.
|
||||
/// \remark The returned value is owned by the caller.
|
||||
IKA_API char const * ikarus_value_to_string(IkarusValue const * value);
|
||||
|
||||
/// \brief Visits an entity value, calling the appropriate function for the value's type.
|
||||
/// \param value The entity value to visit.
|
||||
/// \pre \li Must not be null.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue