Class CacheId
Unique ID to identify cache objects.
Inheritance
Inherited Members
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public class CacheId
Constructors
| Improve this Doc View SourceCacheId(CacheId, string, int, params int[])
Create new cache id. This constructor is specifically aimed at building indicators. Therefore, all parameters are mandatory. The cache id created by this constructor is idential to one created using new CacheId(...).AddParameters(...)
Declaration
public CacheId(CacheId parentId, string memberName, int lineNumber, params int[] parameterIds)
Parameters
Type | Name | Description |
---|---|---|
CacheId | parentId | parent cache id |
string | memberName | member function name, or "" |
int | lineNumber | line number or 0 |
int[] | parameterIds | list of parameter ids |
CacheId(CacheId, string, int)
Create new cache id. Typically, this constructor is used without parameters, resulting in a new top-level cache id, specific to the current member function and line number.
Declaration
public CacheId(CacheId parentId = null, string memberName = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
CacheId | parentId | parent cache id. Typically not required. Pass in value when nesting indicators. |
string | memberName | member function name. Typically filled in by compiler services. Pass in value when creating indicators. |
int | lineNumber | line number. Typically filled in by compiler services. Pass in value when creating indicators. |
Properties
| Improve this Doc View SourceKey
Cryptographic key
Declaration
public int Key { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceAddParameters(params int[])
Create new cache id, adding a number of parameters to the previous cache id.
Declaration
public CacheId AddParameters(params int[] parameterIds)
Parameters
Type | Name | Description |
---|---|---|
int[] | parameterIds |
Returns
Type | Description |
---|---|
CacheId | new cache id |