Struct NodeInfo¶
Defined in File node.hpp
Struct Documentation¶
-
struct
ripple
::
NodeInfo
¶ This class defines extra infromation for a node which may be useful for the construction of graphs, but which is not necessary for execution.
We store it separately to reduce the memory footprint of the node so that on the fast path (node execution) this information does not result in a performance hit.
Public Types
-
using
Name
= std::string¶ Defines the type used for the node name.
-
using
IdType
= uint64_t¶ Defines the type used for the node id.
Public Functions
-
NodeInfo
() = default¶ Default constructor for node info.
-
NodeInfo
(ExecutionKind exec_kind_) noexcept¶ Constructor to set the execution kind for the node.
- Parameters
exec_kind_
: The execution kind for the node.
-
NodeInfo
(NodeKind kind_, ExecutionKind exec_kind_) noexcept¶ Constructor to set the kind and execution kind for the node.
- Parameters
kind_
: The kind of teh node.exec_kind_
: The execution kind for the node.
-
NodeInfo
(Name name_) noexcept¶ Constructor for node info which sets the name for the node.
- Parameters
name_
: The name of the node.
-
NodeInfo
(Name name_, IdType id_) noexcept¶ Constructor to set the node name and id.
- Parameters
name_
: The name of the node.id_
: The id of the node.
-
NodeInfo
(Name name_, IdType id_, NodeKind kind_) noexcept¶ Constructor to set the node name , id, and kind.
- Parameters
name_
: The name of the node.id_
: The id of the node.kind_
: The kind of the node.
-
NodeInfo
(Name name_, IdType id_, NodeKind kind_, ExecutionKind exec_) noexcept¶ Constructor to set the node name, id, kind, and execution target for the node.
- Parameters
name_
: The name of the node.id_
: The id of the node.kind_
: The kind of the node.exec_
: The execution kind of the node.
Public Members
-
Name
name
= default_name¶ The name of the node.
-
IdType
id
= default_id¶ Id of the node.
-
ExecutionKind
exec
= ExecutionKind::gpu¶ Execution kind of the node.
Public Static Functions
-
using