SoNodeDependencies Class |
This class is a cache handler that can be used to monitor the modifications made to elements or fields.
Namespace: OIV.Inventor.Caches
The SoNodeDependencies type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoNodeDependencies | Initializes a new instance of the SoNodeDependencies class |
Name | Description | |
---|---|---|
![]() | AddDependency(SoField) | Add given field as a dependency for the cache. |
![]() | AddDependency(Type, Int32) | Add given element type as a dependency for the cache. |
![]() | Dispose |
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.) |
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Invalidate | Manually invalidate the cache. |
![]() | IsValid | Returns true if the cache is valid for the given #state. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UpdateCache | Update cache according to given #state. |
Name | Description | |
---|---|---|
![]() | IsDisposable | ISafeDisposable interface implementation.
(Inherited from SoDisposable.) |
In order to add new Elements or Fields to be monitored by the cache, use the appropriate addDependency() method.
If one of the added elements or fields has been modified since the last call to updateCache(), the isValid() method will return false, and a subsequent call to updateCache() will make it valid again.
Additionnally, the handled cache can be manually invalidated using the invalidate() method.