SmartEngine  1.6.0
Public Member Functions | List of all members
SmartEngine::IContext Class Referenceabstract

Every node in the AI graph must belong to the same context. More...

#include <Context.h>

Inheritance diagram for SmartEngine::IContext:
SmartEngine::IObject

Public Member Functions

virtual DeviceType GetDeviceType () const =0
 Returns the exact device type that was created. This might be different from what was requested due to platform availabilities. More...
 
- Public Member Functions inherited from SmartEngine::IObject
virtual ObjectId GetId () const =0
 Returns the ID of this object. More...
 
virtual void AddRef () const =0
 Increments the internal reference count on this object. It is not common to use this method directly. More...
 
virtual void Release () const =0
 Decrements the internal reference count on this object. It is not common to use this method directly. More...
 
virtual int GetRefCount () const =0
 Returns the number of references to this object. More...
 
virtual void * QueryInterface (ObjectClassId id)=0
 Queries the object for an interface and returns a pointer to that interface if found. More...
 
void operator= (IObject const &x)=delete
 

Additional Inherited Members

- Public Attributes inherited from SmartEngine::IObject
 private
 
 __pad0__: IObject() {} IObject(IObject const&) = delete
 

Detailed Description

Every node in the AI graph must belong to the same context.

Before the context is created, a check is done for a valid license, loading from the default location. If you want to override this behavior, call SetSmartEngineLicense() prior to creating a context.

Member Function Documentation

◆ GetDeviceType()

virtual DeviceType SmartEngine::IContext::GetDeviceType ( ) const
pure virtual

Returns the exact device type that was created. This might be different from what was requested due to platform availabilities.