Compute Graph Framework SDK Reference  5.8
dw::framework::ExceptionSafeProcessNode Class Reference

Detailed Description

Definition at line 40 of file ExceptionSafeNode.hpp.

Inheritance diagram for dw::framework::ExceptionSafeProcessNode:
Collaboration diagram for dw::framework::ExceptionSafeProcessNode:

Public Member Functions

 ExceptionSafeProcessNode (std::unique_ptr< Node > impl)
 
dwStatus getErrorSignal (dwGraphErrorSignal *&errorSignal) override
 
dwStatus getHealthSignal (dwGraphHealthSignal *&healthSignal, bool updateFromModule=false) override
 
dwStatus getName (const char **name) override
 
size_t getPassCount () const noexcept override
 
dwStatus getPasses (VectorFixed< Pass * > &passList) override
 
dwStatus getPasses (VectorFixed< Pass * > &passList, dwProcessorType processorType, dwProcessType processType) override
 
dwStatus reportCurrentErrorSignal (dwGraphErrorSignal &signal) override
 
dwStatus reportCurrentHealthSignal (dwGraphHealthSignal &signal) override
 
dwStatus reset () override
 
void resetPorts () override
 
dwStatus run () override
 
dwStatus runPass (size_t passIndex) override
 
dwStatus runPassByID (uint8_t passID) override
 
dwStatus setInputChannel (ChannelObject *channel, uint8_t portID) override
 
dwStatus setInputChannel (ChannelObject *channel, uint8_t portID, dwSerializationType dataType) override
 
dwStatus setIterationCount (uint32_t iterationCount) override final
 
dwStatus setName (const char *name) override
 
dwStatus setOutputChannel (ChannelObject *channel, uint8_t portID) override
 
dwStatus setState (const char *state) override
 
dwStatus validate () override
 
 ~ExceptionSafeProcessNode () override=default
 
- Public Member Functions inherited from dw::framework::Node
virtual dwStatus getErrorSignal (dwGraphErrorSignal *&errorSignal)=0
 Get the pointer to the error signal for this node. More...
 
virtual dwStatus getHealthSignal (dwGraphHealthSignal *&healthSignals, bool updateFromModule=false)=0
 Get the pointer to the health signal for this node. More...
 
virtual dwStatus getName (const char **name)=0
 Get the name of the node. More...
 
virtual size_t getPassCount () const noexcept=0
 Get number of passes in the node. More...
 
virtual dwStatus getPasses (VectorFixed< Pass * > &passList)=0
 Get all the passes in the node. More...
 
virtual dwStatus getPasses (VectorFixed< Pass * > &passList, dwProcessorType processorType, dwProcessType processType)=0
 Get node passes filtered by processor type and process type. More...
 
virtual dwStatus reportCurrentErrorSignal (dwGraphErrorSignal &signal)=0
 A function that allows user override to update error signal It is automatically called by dwFramework when getErrorSignal is called and when pass returns non-success return code. More...
 
virtual dwStatus reportCurrentHealthSignal (dwGraphHealthSignal &signal)=0
 A function that allows user override to update health signal It is automatically called by dwFramework during teardown and when pass returns non-success return code. More...
 
virtual dwStatus reset ()=0
 Resets the state of the node. More...
 
virtual void resetPorts ()=0
 Resets all the ports in the node. More...
 
virtual dwStatus run ()=0
 Runs all the passes in the node. More...
 
virtual dwStatus runPass (size_t passIndex)=0
 Run one pass by index as defined by the pass descriptors. More...
 
virtual dwStatus runPassByID (uint8_t passID)=0
 Run one pass by ID as defined by the PassList enum class. More...
 
virtual dwStatus setInputChannel (ChannelObject *channel, uint8_t portID)=0
 Sets an input channel for this node with an accompanying port. More...
 
virtual dwStatus setInputChannel (ChannelObject *channel, uint8_t portID, dwSerializationType dataType)=0
 Sets an input channel for this node with an accompanying port. More...
 
virtual dwStatus setIterationCount (uint32_t iterationCount)=0
 Sets the node's iteration count. More...
 
virtual dwStatus setName (const char *name)=0
 Set the name of the node. More...
 
virtual dwStatus setOutputChannel (ChannelObject *channel, uint8_t portID)=0
 Sets an output channel for this node with an accompanying port. More...
 
virtual dwStatus setState (const char *state)=0
 Set the current state in node. Node implementation of this API need to be thread-safe. More...
 
virtual dwStatus validate ()=0
 Checks that all mandatory ports are bound. The implementation should validate that all the ports are bound to the appropriate channels (any required ports, that is). For example, a camera node may have processed output and raw output ports, but only one is required to be bound. More...
 
virtual ~Node ()=default
 

Protected Attributes

std::unique_ptr< Nodem_impl
 

Additional Inherited Members

- Public Types inherited from dw::framework::Node
using Name_t = FixedString< MAX_NAME_LEN >
 
- Static Public Attributes inherited from dw::framework::Node
static constexpr size_t MAX_NAME_LEN = 128
 
static constexpr uint32_t MAX_PASS_COUNT = 256
 
static constexpr uint32_t MAX_PORT_COUNT = 256
 
static constexpr uint8_t PASS_SETUP = std::numeric_limits<uint8_t>::max() - 1
 
static constexpr uint8_t PASS_TEARDOWN = std::numeric_limits<uint8_t>::max()
 

Constructor & Destructor Documentation

◆ ExceptionSafeProcessNode()

dw::framework::ExceptionSafeProcessNode::ExceptionSafeProcessNode ( std::unique_ptr< Node impl)
inlineexplicit

Definition at line 43 of file ExceptionSafeNode.hpp.

◆ ~ExceptionSafeProcessNode()

dw::framework::ExceptionSafeProcessNode::~ExceptionSafeProcessNode ( )
overridedefault

Member Function Documentation

◆ getErrorSignal()

dwStatus dw::framework::ExceptionSafeProcessNode::getErrorSignal ( dwGraphErrorSignal *&  errorSignal)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 142 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ getHealthSignal()

dwStatus dw::framework::ExceptionSafeProcessNode::getHealthSignal ( dwGraphHealthSignal *&  healthSignal,
bool  updateFromModule = false 
)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 149 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ getName()

dwStatus dw::framework::ExceptionSafeProcessNode::getName ( const char **  name)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 135 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ getPassCount()

size_t dw::framework::ExceptionSafeProcessNode::getPassCount ( ) const
inlineoverridevirtualnoexcept

Implements dw::framework::Node.

Definition at line 92 of file ExceptionSafeNode.hpp.

References m_impl.

◆ getPasses() [1/2]

dwStatus dw::framework::ExceptionSafeProcessNode::getPasses ( VectorFixed< Pass * > &  passList)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 112 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ getPasses() [2/2]

dwStatus dw::framework::ExceptionSafeProcessNode::getPasses ( VectorFixed< Pass * > &  passList,
dwProcessorType  processorType,
dwProcessType  processType 
)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 119 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ reportCurrentErrorSignal()

dwStatus dw::framework::ExceptionSafeProcessNode::reportCurrentErrorSignal ( dwGraphErrorSignal signal)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 156 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ reportCurrentHealthSignal()

dwStatus dw::framework::ExceptionSafeProcessNode::reportCurrentHealthSignal ( dwGraphHealthSignal signal)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 163 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ reset()

dwStatus dw::framework::ExceptionSafeProcessNode::reset ( )
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 50 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ resetPorts()

void dw::framework::ExceptionSafeProcessNode::resetPorts ( )
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 184 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guard(), and m_impl.

◆ run()

dwStatus dw::framework::ExceptionSafeProcessNode::run ( )
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 85 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ runPass()

dwStatus dw::framework::ExceptionSafeProcessNode::runPass ( size_t  passIndex)
inlineoverridevirtual

◆ runPassByID()

dwStatus dw::framework::ExceptionSafeProcessNode::runPassByID ( uint8_t  passID)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 97 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ setInputChannel() [1/2]

dwStatus dw::framework::ExceptionSafeProcessNode::setInputChannel ( ChannelObject channel,
uint8_t  portID 
)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 57 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ setInputChannel() [2/2]

dwStatus dw::framework::ExceptionSafeProcessNode::setInputChannel ( ChannelObject channel,
uint8_t  portID,
dwSerializationType  dataType 
)
inlineoverridevirtual

◆ setIterationCount()

dwStatus dw::framework::ExceptionSafeProcessNode::setIterationCount ( uint32_t  iterationCount)
inlinefinaloverridevirtual

Implements dw::framework::Node.

Definition at line 170 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ setName()

dwStatus dw::framework::ExceptionSafeProcessNode::setName ( const char *  name)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 128 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ setOutputChannel()

dwStatus dw::framework::ExceptionSafeProcessNode::setOutputChannel ( ChannelObject channel,
uint8_t  portID 
)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 71 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ setState()

dwStatus dw::framework::ExceptionSafeProcessNode::setState ( const char *  state)
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 177 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

◆ validate()

dwStatus dw::framework::ExceptionSafeProcessNode::validate ( )
inlineoverridevirtual

Implements dw::framework::Node.

Definition at line 78 of file ExceptionSafeNode.hpp.

References dw::framework::Exception::guardWithReturn(), and m_impl.

Member Data Documentation

◆ m_impl


The documentation for this class was generated from the following file: