|
Hedgehog
0.0.0
A library to generate hybrid pipeline workflow systems
|
#include "core_graph_multi_receivers.h"


Public Member Functions | |
| CoreGraphMultiReceivers (std::string_view const &name, NodeType const type, size_t const numberThreads) | |
| CoreGraphMultiReceivers constructor. More... | |
| ~CoreGraphMultiReceivers () override | |
| CoreGraphMultiReceivers destructor. | |
| bool | receiversEmpty () final |
| Test if all the CoreGraphMultiReceivers of the graphs (its input nodes CoreMultiReceivers) are empty. More... | |
| behavior::Node * | node () override |
| Get a node from the graph, that does not exist, throw an error in every case. More... | |
Public Member Functions inherited from hh::core::CoreMultiReceivers< GraphInputs... > | |
| CoreMultiReceivers (std::string_view const &name, NodeType const type, size_t const numberThreads) | |
| CoreMultiReceivers constructor. More... | |
| ~CoreMultiReceivers () override | |
| CoreMultiReceivers destructor. | |
| virtual size_t | totalQueueSize () |
| Compute all receivers queue size. More... | |
| void | removeForAllSenders (CoreNode *coreNode) |
| Remove all coreNode's senders from this. More... | |
Public Member Functions inherited from hh::core::CoreSlot | |
| CoreSlot (std::string_view const &name, NodeType const type, size_t const numberThreads) | |
| Core slot constructor. More... | |
| ~CoreSlot () override | |
| Core Slot destructor. | |
| virtual void | addNotifier (CoreNotifier *notifier)=0 |
| Interface to add a CoreNotifier to this slot. More... | |
| virtual void | removeNotifier (CoreNotifier *notifier)=0 |
| Interface to remove a CoreNotifier from this slot. More... | |
| virtual bool | hasNotifierConnected ()=0 |
| Test if notifiers are connected to this slot. More... | |
| virtual size_t | numberInputNodes () const =0 |
| Return the number of notifiers connected to this slot. More... | |
| virtual void | wakeUp ()=0 |
| Interface to define what the node do when it receive a signal. | |
| virtual bool | waitForNotification ()=0 |
| Interface to define how the node wait for a signal, and return if the node is terminated. More... | |
Public Member Functions inherited from hh::core::CoreNode | |
| CoreNode ()=delete | |
| Deleted default constructor. | |
| CoreNode (std::string_view const &name, NodeType const type, size_t numberThreads) | |
| Core node only constructor. More... | |
| virtual | ~CoreNode () |
| Default virtual destructor. | |
| virtual std::shared_ptr< CoreNode > | clone ()=0 |
| Virtual constructor for copy. More... | |
| virtual std::string | id () const |
| Unique Id accessor. More... | |
| virtual std::vector< std::pair< std::string, std::string > > | ids () const |
| Input node ids [nodeId, nodeIdCluster] accessor. More... | |
| std::string_view const & | name () const |
| Node name accessor. More... | |
| NodeType | type () const |
| Node type accessor. More... | |
| bool | isInside () const |
| Node inside property accessor. More... | |
| bool | hasBeenRegistered () const |
| Node registration property accessor. More... | |
| CoreNode * | coreClusterNode () const |
| Main cluster core node link to this node accessor. More... | |
| int | threadId () const |
| Thread id accessor. More... | |
| size_t | numberThreads () const |
| Number of threads associated accessor. More... | |
| CoreNode * | belongingNode () const |
| Belonging node accessor. More... | |
| std::shared_ptr< std::multimap< CoreNode *, std::shared_ptr< CoreNode > > > const & | insideNodes () const |
| Inside node accessor. More... | |
| std::shared_ptr< std::multimap< CoreNode *, std::shared_ptr< CoreNode > > > & | insideNodes () |
| Inside nodes accessor. More... | |
| std::chrono::duration< uint64_t, std::micro > const & | executionTime () const |
| Execution time accessor. More... | |
| std::chrono::duration< uint64_t, std::micro > const & | waitTime () const |
| Wait time accessor. More... | |
| std::chrono::duration< uint64_t, std::micro > const & | memoryWaitTime () const |
| Memory wait time accessor. More... | |
| bool | isInCluster () const |
| In cluster property accessor. More... | |
| bool | isActive () const |
| Is active property accessor. More... | |
| bool | isCudaRelated () const |
| Is related to CUDA, used to have a green background on the dot file. More... | |
| virtual int | graphId () |
| Graph id accessor. More... | |
| virtual int | deviceId () |
| Device id accessor. More... | |
| virtual std::chrono::duration< uint64_t, std::micro > | maxExecutionTime () const |
| Maximum execution time accessor. More... | |
| virtual std::chrono::duration< uint64_t, std::micro > | minExecutionTime () const |
| Minimum execution time accessor. More... | |
| virtual std::chrono::duration< uint64_t, std::micro > | maxWaitTime () const |
| Maximum waiting time accessor. More... | |
| virtual std::chrono::duration< uint64_t, std::micro > | minWaitTime () const |
| Minimum waiting time accessor. More... | |
| std::chrono::time_point< std::chrono::high_resolution_clock > const & | creationTimeStamp () const |
| Creation timestamp accessor. More... | |
| std::chrono::time_point< std::chrono::high_resolution_clock > const & | startExecutionTimeStamp () const |
| Execution start timestamp accessor. More... | |
| std::chrono::duration< uint64_t, std::micro > const & | creationDuration () const |
| Creation duration accessor. More... | |
| std::chrono::duration< uint64_t, std::micro > const & | executionDuration () const |
| Execution duration accessor. More... | |
| std::chrono::duration< uint64_t, std::micro > | meanExecTimeCluster () const |
| Compute and return the mean execution time for all tasks in the node cluster. More... | |
| std::chrono::duration< uint64_t, std::micro > | meanWaitTimeCluster () const |
| Compute and return the mean wait time for all tasks in the node cluster. More... | |
| std::chrono::duration< uint64_t, std::micro > | meanMemoryWaitTimeCluster () const |
| Compute and return the mean memory wait time for all tasks in the node cluster. More... | |
| uint64_t | stdvExecTimeCluster () const |
| Compute and return the standard deviation execution time for all tasks in the node cluster. More... | |
| uint64_t | stdvWaitTimeCluster () const |
| Compute and return the standard deviation wait time for all tasks in the node cluster. More... | |
| uint64_t | stdvMemoryWaitTimeCluster () const |
| Compute and return the standard deviation memory wait time for all tasks in the node cluster. More... | |
| std::pair< uint64_t, uint64_t > | minmaxWaitTimeCluster () const |
| Compute and return the min and max wait time for all tasks in the node cluster. More... | |
| std::pair< uint64_t, uint64_t > | minmaxMemoryWaitTimeCluster () const |
| Compute and return the min and max memory wait time for all tasks in the node cluster. More... | |
| std::pair< uint64_t, uint64_t > | minmaxExecTimeCluster () const |
| Compute and return the min and max execution time for all tasks in the node cluster. More... | |
| size_t | numberActiveThreadInCluster () const |
| Compute and return the number of active nodes in a cluster. More... | |
| virtual std::string | extraPrintingInformation () |
| Extra printing information accessor. More... | |
| void | startExecutionTimeStamp (std::chrono::time_point< std::chrono::high_resolution_clock > const &startExecutionTimeStamp) |
| Execution timestamp setter. More... | |
| virtual void | deviceId (int deviceId) |
| Device id setter. More... | |
| virtual void | setInside () |
| Set the node as inside, (inside a graph) | |
| void | setInCluster () |
| Set the task as part of a cluster. | |
| void | threadId (uint8_t threadId) |
| Set the thread id. More... | |
| void | coreClusterNode (CoreNode *coreClusterNode) |
| Set the main cluster node to associate to this node. More... | |
| void | name (std::string_view const &name) |
| Name node setter. More... | |
| void | numberThreads (size_t numberThreads) |
| Number of threads setter. More... | |
| void | belongingNode (CoreNode *belongingNode) |
| Belonging node setter. More... | |
| void | hasBeenRegistered (bool hasBeenRegistered) |
| Has been registered property setter. More... | |
| void | isActive (bool isActive) |
| Is active property setter. More... | |
| void | isCudaRelated (bool isCudaRelated) |
| Is CUDA related property setter. More... | |
| void | isInside (bool isInside) |
| Set the node as being inside another one. More... | |
| void | creationDuration (std::chrono::duration< uint64_t, std::micro > const &creationDuration) |
| Creation duration setter. More... | |
| void | executionDuration (std::chrono::duration< uint64_t, std::micro > const &executionDuration) |
| Execution duration setter. More... | |
| void | incrementWaitForMemoryDuration (std::chrono::duration< uint64_t, std::micro > const &memoryWait) |
| Add wait for memory duration to total duration. More... | |
| virtual void | preRun () |
| Method defining what to do before the run. | |
| virtual void | run () |
| Run method, main execution. | |
| virtual void | postRun () |
| Method defining what to do after the run. | |
| virtual void | createCluster (std::shared_ptr< std::multimap< CoreNode *, std::shared_ptr< CoreNode >>> &) |
| Define how to create a cluster for the node, by default do nothing. | |
| virtual void | joinThreads () |
| Define what is done when the thread is joined. | |
| virtual void | duplicateEdge (CoreNode *duplicateNode, std::map< CoreNode *, std::shared_ptr< CoreNode >> &correspondenceMap)=0 |
| Duplicate all of the edges from this to its copy duplicateNode. More... | |
| virtual void | visit (AbstractPrinter *printer)=0 |
| Abstract visit method for printing mechanism. More... | |
| virtual std::set< CoreSlot * > | getSlots ()=0 |
| Slots accessor for the node. More... | |
| void | removeInsideNode (CoreNode *coreNode) |
| Remove a node from the registered inside nodes. More... | |
| void | copyInnerStructure (CoreNode *rhs) |
| Copy inner structure from rhs nodes to this. More... | |
Public Member Functions inherited from hh::core::CoreReceiver< Inputs > | |
| CoreReceiver (std::string_view const &name, NodeType const type, size_t const numberThreads) | |
| Constructor with node name, node type and number of threads for the node. More... | |
| ~CoreReceiver () override | |
| Default destructor. | |
| virtual void | addSender (CoreSender< Inputs > *sender)=0 |
| Interface to add a CoreSender to the receiver. More... | |
| virtual void | removeSender (CoreSender< Inputs > *sender)=0 |
| Interface to remove a CoreSender from the receiver. More... | |
| virtual void | receive (std::shared_ptr< Inputs > data)=0 |
| Interface to receive a data. More... | |
| virtual bool | receiverEmpty ()=0 |
| Accessor to test emptiness on the receiver. More... | |
| virtual size_t | queueSize () |
| Interface to get the number of element to be treated by this node for this type, by default return 0. More... | |
| virtual std::set< CoreReceiver< Inputs > *> | receivers ()=0 |
| Accessor to all receivers connected to this receiver. More... | |
Public Member Functions inherited from hh::core::CoreGraphReceiver< GraphInputs > | |
| CoreGraphReceiver (std::string_view const &name, NodeType const type, size_t const numberThreads) | |
| CoreGraphReceiver constructor. More... | |
| virtual | ~CoreGraphReceiver () |
| CoreGraphReceiver destructor. | |
| void | addSender (CoreSender< GraphInputs > *sender) final |
| Add a CoreSender to the graph. More... | |
| void | removeSender (CoreSender< GraphInputs > *sender) final |
| Remove a CoreSender from the graph. More... | |
| void | receive (std::shared_ptr< GraphInputs > ptr) final |
| Define how the graph receives data for a specific type and sends the data to all input nodes. More... | |
| void | addGraphReceiverInput (CoreReceiver< GraphInputs > *receiver) |
| Register a CoreReceiver from an input node. More... | |
| bool | receiverEmpty () final |
| Test emptiness in all graph receivers. More... | |
| std::set< CoreReceiver< GraphInputs > *> | receivers () override |
| Get a set of CoreReceiver built from the input nodes. More... | |
| behavior::Node * | node () override |
| Get a node from the graph, that does not exist, throw an error in every case. More... | |
Public Member Functions inherited from hh::core::CoreReceiver< GraphInputs > | |
| CoreReceiver (std::string_view const &name, NodeType const type, size_t const numberThreads) | |
| Constructor with node name, node type and number of threads for the node. More... | |
| ~CoreReceiver () override | |
| Default destructor. | |
| virtual size_t | queueSize () |
| Interface to get the number of element to be treated by this node for this type, by default return 0. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from hh::core::CoreNode | |
| void | addUniqueInsideNode (const std::shared_ptr< CoreNode > &coreNode) |
| Add a node to the inside nodes. More... | |
| void | incrementWaitDuration (std::chrono::duration< uint64_t, std::micro > const &wait) |
| Increment wait duration. More... | |
| void | incrementExecutionDuration (std::chrono::duration< uint64_t, std::micro > const &exec) |
| Increment execution duration. More... | |
Graph multi receiver.
| GraphInputs | Graph's input types |
Definition at line 33 of file core_graph_multi_receivers.h.
|
inline |
CoreGraphMultiReceivers constructor.
| name | Node name |
| type | Node type |
| numberThreads | Node number of threads |
Definition at line 40 of file core_graph_multi_receivers.h.
|
inlineoverridevirtual |
Get a node from the graph, that does not exist, throw an error in every case.
| std::runtime_error | A graph does not have node |
Implements hh::core::CoreNode.
Definition at line 57 of file core_graph_multi_receivers.h.
|
inlinefinalvirtual |
Test if all the CoreGraphMultiReceivers of the graphs (its input nodes CoreMultiReceivers) are empty.
Implements hh::core::CoreMultiReceivers< GraphInputs... >.
Definition at line 52 of file core_graph_multi_receivers.h.