
    h                      $    S SK Jr   " S S5      rg)    )c_void_pc                   b    \ rS rSrSrSr\rSr\	r
\S 5       r\R                  S 5       rS rSrg)CPointerBase   zn
Base class for objects that have a pointer access property
that controls access to the underlying C pointer.
Nc                     U R                   (       a  U R                   $ U R                  SU R                  R                  -  5      e)NzNULL %s pointer encountered.)_ptrnull_ptr_exception_class	__class____name__selfs    H/var/www/html/env/lib/python3.13/site-packages/django/contrib/gis/ptr.pyptrCPointerBase.ptr   s:     9999++*T^^-D-DD
 	
    c                 x    Ub1  [        XR                  5      (       d  [        S[        U5      -  5      eXl        g )NzIncompatible pointer type: %s.)
isinstanceptr_type	TypeErrortyper   )r   r   s     r   r   r      s1     z#}}==<tCyHII	r   c                     U R                   (       a/  U R                  (       a   U R                  U R                  5        ggg! [        [        [
        4 a     gf = f)z)
Free the memory used by the C++ object.
N)
destructorr   r   AttributeErrorImportErrorr   r   s    r   __del__CPointerBase.__del__!   sH     ??tyy)  )? #K; s   A AA)r   )r   
__module____qualname____firstlineno____doc__r   r   r   r   r   r	   propertyr   setterr   __static_attributes__ r   r   r   r      sM    
 DHJ-
 
 	ZZ r   r   N)ctypesr   r   r$   r   r   <module>r&      s    % %r   