function_name

View page source

Setting and Getting a Function’s Name

Syntax

f . function_name_set ( function_name )
function_name = f . function_name_get ()

See Also

fun_property

f

In the set operation, f has prototype

ADFun < Base > f

In the get operation, f has prototype

const ADFun < Base > f

(see ADFun < Base > constructor ).

function_name

is the name of the function. In the set operation, function_name has prototype

const std::string& function_name

In the get operation, function_name has prototype

std::string function_name

Example

The file function_name.cpp contains an example and test of these operations.