holoscan::MetaParameter
holoscan::MetaParameter
Class to define a parameter.
Template parameters
Constructors
MetaParameter
Default
Copy
Move
Copy (with key and headline and description and flag)
Assignment operators
operator=
Copy assign
Move assign
Define the assignment operator.
Returns: The reference to the parameter.
Parameters
The value of the parameter.
Methods
key
Get the key (name) of the parameter.
Returns: The key (name) of the parameter.
headline
Get the headline of the parameter.
Returns: The headline of the parameter.
description
Get the description of the parameter.
Returns: The description of the parameter.
flag
Get the flag of the parameter.
Returns: The flag of the parameter.
has_value
Check whether the parameter contains a value.
Returns: true if the parameter contains a value.
get
Mutable
Const
Get the value of the parameter.
Returns: The reference to the value of the parameter.
try_get
Mutable
Const
Try to get the value of the parameter.
Return the reference to the std::optional value of the parameter.
Returns: The reference to the optional value of the parameter.
operator->
Provides a pointer to the object managed by the shared pointer pointed to by the parameter value or dereferences the pointer.
Returns: The pointer to the object managed by the shared pointer pointed to by the parameter value or the dereferenced pointer.
Template parameters
The type of the pointer.
operator*
Provides a reference to the object managed by the shared pointer pointed to by the parameter value or dereferences the pointer.
Returns: The reference to the object managed by the shared pointer pointed to by the parameter value or the dereferenced pointer.
Template parameters
The type of the pointer.
set_default_value
Set the default value object if the parameter does not contain a value.
default_value
Mutable
Const
Return the default value object.
Returns: The default value object.
has_default_value
Check whether the parameter contains a default value.
Returns: true if the parameter contains a default value.
operator ValueT &
Get the value of the argument.
Returns: The reference to the value of the parameter.