Show / Hide Table of Contents

Class CacheId

Unique ID to identify cache objects.

Inheritance
System.Object
CacheId
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public class CacheId

Constructors

| Improve this Doc View Source

CacheId(CacheId, String, Int32)

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.

System.String memberName

member function name. Typically filled in by compiler services. Pass in value when creating indicators.

System.Int32 lineNumber

line number. Typically filled in by compiler services. Pass in value when creating indicators.

| Improve this Doc View Source

CacheId(CacheId, String, Int32, Int32[])

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

System.String memberName

member function name, or ""

System.Int32 lineNumber

line number or 0

System.Int32[] parameterIds

list of parameter ids

Properties

| Improve this Doc View Source

Key

Cryptographic key

Declaration
public int Key { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

AddParameters(Int32[])

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
System.Int32[] parameterIds
Returns
Type Description
CacheId

new cache id

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2011-2021, Bertram Solutions LLC