Tangence::Meta::Property(3pm)

Tangence::Meta::Property3pm

Structure representing one "tangence" property

Overview

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

Constructor

new

   $property = Tangence::Meta::Property->new( %args )

Returns a new instance initialised by the given arguments.

class => Tangence::Meta::Class

Reference to the containing class

name => STRING

Name of the property

dimension => INT

Dimension of the property, as one of the "DIM_*" constants from Tangence::Constants.

type => STRING

The element type as a Tangence::Meta::Type reference.

smashed => BOOL

Optional. If true, marks that the property is smashed.

Accessors

class

   $class = $property->class

Returns the class the property is a member of

name

   $name = $property->name

Returns the name of the class

dimension

   $dimension = $property->dimension

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

type

   $type = $property->type

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

overall_type

   $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.

smashed

   $smashed = $property->smashed

Returns true if the property is smashed.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Paul Evans <[email protected]>

From libtangence-perl 0.33-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.