aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/array_ref.pxd
blob: 47a4b3d8f2887c5f540605d42312dffb8e07bbf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from libcpp cimport bool as bool_t
 

cdef extern from "util/generic/array_ref.h" nogil: 
    cdef cppclass TArrayRef[T]: 
        TArrayRef(...) except + 
 
        T& operator[](size_t) 
 
        bool_t empty()
        T* data() except + 
        size_t size() except + 
        T* begin() except + 
        T* end() except + 
 
    cdef cppclass TConstArrayRef[T]: 
        TConstArrayRef(...) except + 
 
        const T& operator[](size_t) 
 
        bool_t empty()
        const T* data() except + 
        size_t size() except + 
        const T* begin() except + 
        const T* end() except +