ILGPU  0.9.0
ILGPU.Util.CachedExtensionBase< TExtension > Class Template Reference

An extension base object that provides a default implementation of an IExtensionObject<TExtension> including caches. More...

Inheritance diagram for ILGPU.Util.CachedExtensionBase< TExtension >:
ILGPU.Util.ExtensionBase< TExtension > ILGPU.ICache ILGPU.Util.DisposeBase ILGPU.Util.IExtensionObject< TExtension >

Public Member Functions

virtual void ClearCache (ClearCacheMode mode)
 Clears all internal caches. More...
 
- Public Member Functions inherited from ILGPU.Util.ExtensionBase< TExtension >
void RegisterExtension< T > (T extension)
 Registers a new extensions. More...
 
GetExtension< T > ()
 Retrieves a extension of the given type. More...
 
bool TryGetExtension< T > (out T extension)
 Tries to retrieve a backend extension of the given type. More...
 
void ForEachExtension (Action< TExtension > action)
 Executes the given action for each registered extension. More...
 
- Public Member Functions inherited from ILGPU.Util.DisposeBase
void Dispose ()
 Triggers the 'dispose' functionality of this object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILGPU.Util.ExtensionBase< TExtension >
override void Dispose (bool disposing)
 

Detailed Description

An extension base object that provides a default implementation of an IExtensionObject<TExtension> including caches.

Template Parameters
TExtensionThe underlying extension type.
Type Constraints
TExtension :CachedExtension 

Member Function Documentation

virtual void ILGPU.Util.CachedExtensionBase< TExtension >.ClearCache ( ClearCacheMode  mode)
virtual

Clears all internal caches.

Parameters
modeThe clear mode.

This method is not thread-safe.

Implements ILGPU.ICache.

Reimplemented in ILGPU.Backends.Backend< TDelegate >, ILGPU.Backends.Backend< TDelegate >, and ILGPU.Context.


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