Template Class MetaParameter

Clara Holoscan v0.4.0
template<typename ValueT>
class MetaParameter

Class to define a parameter.

Public Functions

MetaParameter() = default

inline explicit MetaParameter(ValueT &value)

Construct a new MetaParameter object.

Parameters

value – The value of the parameter.

inline explicit MetaParameter(ValueT &&value)

Construct a new MetaParameter object.

Parameters

value – The value of the parameter.

inline MetaParameter &operator=(const ValueT &value)

Define the assignment operator.

Parameters

value – The value of the parameter.

Returns

The reference to the parameter.

inline MetaParameter &&operator=(ValueT &&value)

Define the assignment operator.

Parameters

value – The value of the parameter.

Returns

The reference to the parameter.

inline const std::string &key() const

Get the key (name) of the parameter.

Returns

The key (name) of the parameter.

inline bool has_value() const

Check whether the parameter contains a value.

Returns

true if the parameter contains a value.

inline ValueT &get()

Get the value of the parameter.

Returns

The reference to the value of the parameter.

inline void set_default_value()

Set the default value object if the parameter does not contain a value.

inline ValueT &default_value()

Return the default value object.

Returns

The default value object.

inline bool has_default_value() const

Check whether the parameter contains a default value.

Returns

true if the parameter contains a default value.

inline operator ValueT&()

Get the value of the argument.

Returns

The reference to the value of the parameter.

© Copyright 2022, NVIDIA. Last updated on Jun 28, 2023.