Show / Hide Table of Contents

Class CacheId

Unique ID to identify cache objects.

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

Constructors

| Edit this page View Source

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.

| Edit this page View Source

CacheId(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

Properties

| Edit this page View Source

Key

Cryptographic key

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

Methods

| Edit this page View Source

AddParameters(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

  • Edit this page
  • View Source
In this article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com