1Config::Model::Role::CoUmspeurteCFounntcrtiibount(e3d)PCeornlfiDgo:c:uMmoednetla:t:iRoonle::ComputeFunction(3)
2
3
4

NAME

6       Config::Model::Role::ComputeFunction - compute &index or &element
7       functions
8

VERSION

10       version 2.138
11

SYNOPSIS

13        $value->eval_function('index');
14        $value->eval_function('element');
15
16        $value->eval_function('index','-');
17        $value->eval_function('index','- -');
18        $value->eval_function('index','-3');
19
20        $value->compute_string('&element(-)')
21        $value->compute_string('&index(- -)');
22

DESCRIPTION

24       Role used to let a value object get the index or the element name of
25       $self or of a node above.
26

METHODS

28   eval_function
29       Retrieve the index or the element name. Parameters are
30
31        ( function_name , [ up  ])
32
33       function_name
34           "element" or "index"
35
36       up  Optional parameter to indicate how many level to go up before
37           retrieving the index or element name. Each "-" is equivalent to a
38           call to "parent|Config::Model::Node/parent". Can be repeated dashes
39           (""-"", ""- -"", ...)  or a dash with a multiplier (""-"", ""-2"",
40           ...). White spaces are ignored.
41
42   compute_string
43       Perform a similar function as "eval_function" using a string where
44       function names are extracted.
45
46       E.g. "compute_string('&element(-)')" calls
47       "eval_function('element','-')"
48

AUTHOR

50       Dominique Dumont
51
53       This software is Copyright (c) 2005-2019 by Dominique Dumont.
54
55       This is free software, licensed under:
56
57         The GNU Lesser General Public License, Version 2.1, February 1999
58
59
60
61perl v5.30.1                      2020-0C1o-n2f9ig::Model::Role::ComputeFunction(3)
Impressum