Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Core.ReferenceBase Class Referenceabstract

Base class for a IReferencable class. More...

Inheritance diagram for SiliconStudio.Core.ReferenceBase:
SiliconStudio.Core.IReferencable SiliconStudio.Core.Storage.Blob

Public Member Functions

virtual int AddReference ()
 Increments the reference count of this instance.
Returns
The method returns the new reference count.
More...
 
virtual int Release ()
 Decrements the reference count of this instance.
Returns
The method returns the new reference count.
When the reference count is going to 0, the component should release/dispose dependents objects. More...
 

Protected Member Functions

abstract void Destroy ()
 Releases unmanaged and - optionally - managed resources More...
 

Properties

int ReferenceCount [get]
 
- Properties inherited from SiliconStudio.Core.IReferencable
int ReferenceCount [get]
 Gets the reference count of this instance. More...
 

Detailed Description

Base class for a IReferencable class.

Definition at line 11 of file ReferenceBase.cs.

Member Function Documentation

virtual int SiliconStudio.Core.ReferenceBase.AddReference ( )
virtual

Increments the reference count of this instance.

Returns
The method returns the new reference count.

Implements SiliconStudio.Core.IReferencable.

Definition at line 19 of file ReferenceBase.cs.

abstract void SiliconStudio.Core.ReferenceBase.Destroy ( )
protectedpure virtual

Releases unmanaged and - optionally - managed resources

Implemented in SiliconStudio.Core.Storage.Blob.

virtual int SiliconStudio.Core.ReferenceBase.Release ( )
virtual

Decrements the reference count of this instance.

Returns
The method returns the new reference count.
When the reference count is going to 0, the component should release/dispose dependents objects.

Implements SiliconStudio.Core.IReferencable.

Definition at line 27 of file ReferenceBase.cs.

Property Documentation

int SiliconStudio.Core.ReferenceBase.ReferenceCount
get

Definition at line 16 of file ReferenceBase.cs.


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