Skip to content

Class: Reference

instance reference statistics module apply any instance , used full destroy

Constructors

Methods

Constructors

constructor

new Reference(): Reference

Returns

Reference

Methods

getInstance

getInstance(): Reference

Returns

Reference

Defined in

src/util/Reference.ts:10


attached

attached(ref, target): void

current instance attached from parent instance

Parameters

NameTypeDescription
refanyreference current
targetanyreference parent

Returns

void

Defined in

src/util/Reference.ts:20


detached

detached(ref, target): void

current instance detached from parent instance

Parameters

NameTypeDescription
refanyreference current
targetanyreference parent

Returns

void

Defined in

src/util/Reference.ts:35


hasReference

hasReference(ref): boolean

current instance has reference

Parameters

NameType
refany

Returns

boolean

Defined in

src/util/Reference.ts:45


getReferenceCount

getReferenceCount(ref): number

get current instance reference count

Parameters

NameType
refany

Returns

number

Defined in

src/util/Reference.ts:58


getReference

getReference(ref): Map<any, any>

get current instance reference from where

Parameters

NameType
refany

Returns

Map<any, any>

Defined in

src/util/Reference.ts:71