-
Notifications
You must be signed in to change notification settings - Fork 1
Const
mtbeek32 edited this page Feb 1, 2024
·
7 revisions
Constant functions const
- const(value, domain unit)
- const(value, domain unit, values unit)
const(value, domain unit) or const(value, domain unit, values unit) results in an attribute with the first argument value as constant value for each entry of the domain unit second argument.
The values unit can be configured with the value argument or explicitly as third argument).
- const(0 , domain) is synonym for const(0,domain,unit32).
- const(0f , domain) or const(float32(0),domain) is synonym for const(0,domain,float32).
- const(3[m], domain) is synonym for const (3, domain, m).
- literal value with Numeric, Point, uint2, uint4, bool or string value type
- unit domain unit with value type of group CanBedomain unit
- unit values unit with Numeric, Point, uint2, uint4, bool or string value type
The value type of argument value needs to match with the value type of the values unit argument.
attribute<uint8> Uint8Att (ADomain) := const(1b, ADomain);
attribute<string> StringAtt (ADomain) := const('const', ADomain, string);
Uint8Att | StringAtt |
---|---|
1 | 'const' |
1 | 'const' |
1 | 'const' |
1 | 'const' |
1 | 'const' |
ADomain, nr of rows = 5
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.