abstract class MethodCostFunc extends (ErgoTreeEvaluator, MethodCall, Any, Array[Any]) ⇒ CostDetails
Type of functions used to assign cost to method call nodes.
For a function f: (mc, obj, args) => cost
it is called before the evaluation of
the mc
node with the given obj
as method receiver and args
as method
arguments.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MethodCostFunc
- Function4
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new MethodCostFunc()
Abstract Value Members
-
abstract
def
apply(E: ErgoTreeEvaluator, mc: MethodCall, obj: Any, args: Array[Any]): CostDetails
The function returns an estimated cost of evaluation BEFORE actual evaluation of the method.
The function returns an estimated cost of evaluation BEFORE actual evaluation of the method. For this reason MethodCostFunc is not used for higher-order operations like
Coll.map
,Coll.filter
etc.- Definition Classes
- MethodCostFunc → Function4
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
curried: (ErgoTreeEvaluator) ⇒ (MethodCall) ⇒ (Any) ⇒ (Array[Any]) ⇒ CostDetails
- Definition Classes
- Function4
- Annotations
- @unspecialized()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Function4 → AnyRef → Any
-
def
tupled: ((ErgoTreeEvaluator, MethodCall, Any, Array[Any])) ⇒ CostDetails
- Definition Classes
- Function4
- Annotations
- @unspecialized()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()