a
    zn„fd  ã                   @  sF   d Z ddlmZ G dd„ dƒZG dd„ dƒZG dd„ dƒZd	d
„ ZdS )z8
This module defines the behavior of ``TParameter<T>``.
é    )Úannotationsc                   @  s4   e Zd ZdZedd„ ƒZdd„ Zdd„ Zdd	„ Zd
S )ÚTParameter_3c_boolean_3e_z0
    Behaviors for ``TParameter<boolean>``.
    c                 C  s   t |  d¡ƒS ©NZfVal©ÚboolÚmember©Úself© r
   ú^/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/uproot/behaviors/TParameter.pyÚvalue   s    zTParameter_3c_boolean_3e_.valuec                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   Ú__bool__   s    z"TParameter_3c_boolean_3e_.__bool__c                 C  s   t |  d¡ƒS r   ©Úintr   r   r
   r
   r   Ú__int__   s    z!TParameter_3c_boolean_3e_.__int__c                 C  s   t |  d¡ƒS r   ©Úfloatr   r   r
   r
   r   Ú	__float__   s    z#TParameter_3c_boolean_3e_.__float__N©	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r   r   r   r
   r
   r
   r   r   	   s   
r   c                   @  s<   e Zd ZdZedd„ ƒZdd„ Zdd„ Zdd	„ Zd
d„ Z	dS )ÚTParameter_3c_integer_3e_z0
    Behaviors for ``TParameter<integer>``.
    c                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   r   !   s    zTParameter_3c_integer_3e_.valuec                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   r   %   s    z"TParameter_3c_integer_3e_.__bool__c                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   r   (   s    z!TParameter_3c_integer_3e_.__int__c                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   Ú	__index__+   s    z#TParameter_3c_integer_3e_.__index__c                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   r   .   s    z#TParameter_3c_integer_3e_.__float__N)
r   r   r   r   r   r   r   r   r   r   r
   r
   r
   r   r      s   
r   c                   @  s4   e Zd ZdZedd„ ƒZdd„ Zdd„ Zdd	„ Zd
S )ÚTParameter_3c_floating_3e_z1
    Behaviors for ``TParameter<floating>``.
    c                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   r   7   s    z TParameter_3c_floating_3e_.valuec                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   r   ;   s    z#TParameter_3c_floating_3e_.__bool__c                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   r   >   s    z"TParameter_3c_floating_3e_.__int__c                 C  s   t |  d¡ƒS r   r   r   r
   r
   r   r   A   s    z$TParameter_3c_floating_3e_.__float__Nr   r
   r
   r
   r   r   2   s   
r   c                 C  s    | dv rt S | dv rtS tS dS )zJ
    Returns a Parameter class object for a given ``specialization``.
    )Z_3c_bool_3e_Z_3c_Bool_5f_t_3e_)Z_3c_float_3e_Z_3c_double_3e_Z_3c_long_20_double_3e_Z_3c_Float_5f_t_3e_Z_3c_Double_5f_t_3e_Z_3c_LongDouble_5f_t_3e_N)r   r   r   )Zspecializationr
   r
   r   Ú
TParameterE   s
    r   N)r   Ú
__future__r   r   r   r   r   r
   r
   r
   r   Ú<module>   s
   