The scalar_function class is used to register user-defined scalar functions. This class has three different constructors to support the different types of scalar functions that are supported. See the IP method ipFuncxxx for details on how to implement methods for scalar functions. See the IP method ipGetScalarFunctions for details on registering scalar functions.