a
    yn„f·  ã                   @  sR   d dl mZ d dlmZ d dlmZmZmZ eded�ZG dd„ deee ƒZ	dS )	é    )Úannotations)ÚMeta)ÚGenericÚJSONSerializableÚTypeVarÚT)Úboundc                   @  sÊ   e Zd ZU dZdZded< dddœdd„Zed	d
œdd„ƒZedd
œdd„ƒZ	ed	d
œdd„ƒZ
edd
œdd„ƒZedd
œdd„ƒZedd„ ƒZed	d
œdd„ƒZed	d
œdd„ƒZedd
œdd„ƒZd S )!ÚIndexedOptionMetaTr   Ú_contentÚstrr   )ÚkeysÚreturnc                 G  s8   | j d ur,|D ]}|| j v r| j |   S q| jj|Ž S ©N)Ú_parametersr
   Úpurelist_parameters)Úselfr   Úkey© r   úb/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/awkward/_meta/indexedoptionmeta.pyr      s
    

z%IndexedOptionMeta.purelist_parametersÚbool)r   c                 C  s   | j jS r   )r
   Úpurelist_isregular©r   r   r   r   r      s    z$IndexedOptionMeta.purelist_isregularÚintc                 C  s   | j jS r   )r
   Úpurelist_depthr   r   r   r   r      s    z IndexedOptionMeta.purelist_depthc                 C  s   | j jS r   )r
   Úis_identity_liker   r   r   r   r   !   s    z"IndexedOptionMeta.is_identity_likeztuple[int, int]c                 C  s   | j jS r   )r
   Úminmax_depthr   r   r   r   r   %   s    zIndexedOptionMeta.minmax_depthztuple[bool, int]c                 C  s   | j jS r   )r
   Úbranch_depthr   r   r   r   r   )   s    zIndexedOptionMeta.branch_depthc                 C  s   | j jS r   )r
   Úfieldsr   r   r   r   r   -   s    zIndexedOptionMeta.fieldsc                 C  s   | j jS r   )r
   Úis_tupler   r   r   r   r   1   s    zIndexedOptionMeta.is_tuplec                 C  s   dS )NTr   r   r   r   r   Údimension_optiontype5   s    z&IndexedOptionMeta.dimension_optiontypec                 C  s   | j S r   )r
   r   r   r   r   Úcontent9   s    zIndexedOptionMeta.contentN)Ú__name__Ú
__module__Ú__qualname__Z
is_indexedZ	is_optionÚ__annotations__r   Úpropertyr   r   r   r   r   r   r   r   r    r   r   r   r   r	      s,   

r	   N)
Ú
__future__r   Zawkward._meta.metar   Zawkward._typingr   r   r   r   r	   r   r   r   r   Ú<module>   s   