Public Member Functions
InferenceEngine::VariableStateInternal Class Reference

Minimal interface for variable state implementation. More...

#include <ie_variable_state_internal.hpp>

Inheritance diagram for InferenceEngine::VariableStateInternal:
InferenceEngine::IVariableStateInternal

Public Member Functions

 VariableStateInternal (std::string name)
 Constructs a variable state with a given name. More...
 
std::string GetName () const override
 Gets a variable state name. More...
 
void SetState (Blob::Ptr newState) override
 Sets the new state for the next inference. More...
 
Blob::CPtr GetState () const override
 Returns the value of the variable state. More...
 
- Public Member Functions inherited from InferenceEngine::IVariableStateInternal
virtual ~IVariableStateInternal ()=default
 A default virtual dtor.
 
virtual void Reset ()=0
 Reset internal variable state for relevant infer request, to a value specified as default for according ReadValue node.
 
Use IVariableStateInternal::GetState method virtual instead Blob::CPtr GetLastState () const
 Returns the value of the variable state. More...
 

Additional Inherited Members

- Public Types inherited from InferenceEngine::IVariableStateInternal
using Ptr = std::shared_ptr< IVariableStateInternal >
 A shared pointer to a IVariableStateInternal interface.
 

Detailed Description

Minimal interface for variable state implementation.

Constructor & Destructor Documentation

◆ VariableStateInternal()

InferenceEngine::VariableStateInternal::VariableStateInternal ( std::string  name)
inlineexplicit

Constructs a variable state with a given name.

Parameters
nameA name of variable state

Member Function Documentation

◆ GetName()

std::string InferenceEngine::VariableStateInternal::GetName ( ) const
inlineoverridevirtual

Gets a variable state name.

Returns
A string representing variable state name

Implements InferenceEngine::IVariableStateInternal.

◆ GetState()

Blob::CPtr InferenceEngine::VariableStateInternal::GetState ( ) const
inlineoverridevirtual

Returns the value of the variable state.

Returns
The value of the variable state

Implements InferenceEngine::IVariableStateInternal.

◆ SetState()

void InferenceEngine::VariableStateInternal::SetState ( Blob::Ptr  newState)
inlineoverridevirtual

Sets the new state for the next inference.

Parameters
newStateA new state

Implements InferenceEngine::IVariableStateInternal.


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