interface InferenceEngine::IVariableStateInternal

Overview

Minimal interface for variable state implementation. More…

#include <ie_ivariable_state_internal.hpp>

template IVariableStateInternal: public std::enable_shared_from_this< IVariableStateInternal >
{
    // typedefs

    typedef std::shared_ptr<IVariableStateInternal> Ptr;

    // construction

    IVariableStateInternal(const std::string& name);

    // methods

    virtual std::string GetName() const;
    virtual void Reset();
    virtual void SetState(const Blob::Ptr& newState);
    virtual Blob::CPtr GetState() const;

protected:
};

Detailed Documentation

Minimal interface for variable state implementation.

Typedefs

typedef std::shared_ptr<IVariableStateInternal> Ptr

A shared pointer to a IVariableStateInternal interface.

Methods

virtual std::string GetName() const

Gets a variable state name.

Returns:

A string representing variable state name

virtual void Reset()

Reset internal variable state for relevant infer request, to a value specified as default for according ReadValue node.

virtual void SetState(const Blob::Ptr& newState)

Sets the new state for the next inference.

Parameters:

newState

A new state

virtual Blob::CPtr GetState() const

Returns the value of the variable state.

Returns:

The value of the variable state