ó
VxTc           @   se   d  d l  m Z d  d l m Z d  d l m Z d Z d   Z d   Z e	 d k ra e d  n  d	 S(
   i’’’’(   t   division(   t   generate_algebras(   t   utilss4   scitbx.source_generators.array_family.generate_applyc         C   sĀ   t  j |  d | d  } t  j | t  | } | d k rD d } n  d } t j |  d k rh d } n  | d | j   f d	 | | f IJt j | |  | d
 | j   f IJ| j   d  S(   Ns
   %s_apply.ht   wt   reft   versat   functorst   tinyt	   operatorss  #ifndef SCITBX_ARRAY_FAMILY_%s_APPLY_H
#define SCITBX_ARRAY_FAMILY_%s_APPLY_H

#ifndef DOXYGEN_SHOULD_SKIP_THIS

#include <scitbx/type_holder.h>
#include <scitbx/array_family/%s.h>
#include <scitbx/array_family/detail/generic_array_%s.h>

namespace scitbx { namespace af {
i   sh   }} // namespace scitbx::af

#endif // DOXYGEN_SHOULD_SKIP_THIS

#endif // SCITBX_ARRAY_FAMILY_%s_APPLY_H(	   R   t	   join_opent   write_this_is_auto_generatedt   thisR   t   base_array_type_namet   uppert   generate_unary_applyt   close(   t
   target_dirt   array_type_namet   ft   include_array_type_namet   generic_include(    (    sb   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/scitbx/source_generators/array_family/generate_apply.pyt   one_type   s    		c      	   C   s"   x d
 D] } t  |  |  q Wd  S(   Nt
   tiny_plainR   t   small_plaint   smallt   shared_plaint   sharedt   versa_plainR   R   (	   R   s   tinyR   R   R   R   R   s   versas   ref(   R   (   R   R   (    (    sb   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/scitbx/source_generators/array_family/generate_apply.pyt   run'   s        
t   __main__t   .N(
   t
   __future__R    t%   scitbx.source_generators.array_familyR   t   scitbx.source_generatorsR   R   R   R   t   __name__(    (    (    sb   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/scitbx/source_generators/array_family/generate_apply.pyt   <module>   s   	 		