StatisticsAutoRegisterMember.kl¶
Interfaces¶
StatisticSourceWithAutoRegisterMember (interface)¶
The StatisticSourceWithAutoRegisterMember interface is a simplified interface for supporting the StatisticSource interface while delegating most implementation details to a member of type StatisticsAutoRegisterMember. The StatisticsAutoRegisterMember member then manages the registration and unregistration, and the storage of the private key.
An object implementing the StatisticSourceWithAutoRegisterMember (interface) interface must have a StatisticsAutoRegisterMember member, and must construct it in its constructor if FabricStatisticsEnabled (passing this as construction argument). The object then only needs to implement the StatisticSourceWithAutoRegisterMember simplified interface.
Important: for a good behavior, the StatisticsAutoRegisterMember member should not be cloned, which requires a custom implementation of .clone() by owner objects.
See 統計(Statistics) for an example of usage.
Functions¶
StatisticRecord[] | getStatistics ? () |
Functions in detail¶
StatisticRecord[] StatisticSourceWithAutoRegisterMember.getStatistics? ()
Returns statistics related to this object. The Name should be included, but the Type will be automatically generated.
Types¶
StatisticsAutoRegisterMember (object)¶
Member that needs to be defined within objects implementing the StatisticSourceWithAutoRegisterMember interface. See StatisticSourceWithAutoRegisterMember for more details.
Methods¶
StatisticsAutoRegisterMember ( in Ref<StatisticSourceWithAutoRegisterMember> source ) | |
StatisticsAutoRegisterMember ( in StatisticsAutoRegisterMember other ) | |
StatisticsAutoRegisterMember () | |
StatisticsAutoRegisterMember | clone ? () |