DOKK / manpages / debian 10 / libtangence-perl / Tangence::Meta::Property.3pm.en
Tangence::Meta::Property(3pm) User Contributed Perl Documentation Tangence::Meta::Property(3pm)

"Tangence::Meta::Property" - structure representing one "Tangence" property

This data structure object stores information about one Tangence class property. Once constructed, such objects are immutable.

Returns a new instance initialised by the given arguments.

Reference to the containing class
Name of the property
Dimension of the property, as one of the "DIM_*" constants from Tangence::Constants.
The element type as a Tangence::Meta::Type reference.
Optional. If true, marks that the property is smashed.

Returns the class the property is a member of

Returns the name of the class

Returns the dimension as one of the "DIM_*" constants.

$type = $property->type

Returns the element type as a Tangence::Meta::Type reference.

$type = $property->overall_type

Returns the type of the entire collection as a Tangence::Meta::Type reference. For scalar types this will be the element type. For dict types this will be a hash of the array type. For array, queue and objset types this will a list of the element type.

Returns true if the property is smashed.

Paul Evans <leonerd@leonerd.org.uk>

2018-07-28 perl v5.26.2