python-cnorxz/cnorxz/base/array.pxd

21 lines
639 B
Cython
Raw Normal View History

2023-05-07 21:28:30 +02:00
from libcpp.memory cimport shared_ptr
from range cimport cpp_RangeBase
2023-05-08 22:28:31 +02:00
cdef extern from "array/array.h" namespace "CNORXZ":
cdef cppclass cpp_CArrayBase "CNORXZ::CArrayBase" [T]:
cpp_CArrayBase() except+
cpp_CArrayBase(const cpp_CArrayBase[T]&) except+
2023-05-07 21:28:30 +02:00
size_t size() except+
2023-05-08 22:28:31 +02:00
shared_ptr[cpp_RangeBase] range() except+
cdef extern from "array/array.h" namespace "CNORXZ":
cdef cppclass cpp_MArray "CNORXZ::MArray" [T] (cpp_CArrayBase[T]):
cpp_MArray() except+
cpp_MArray(const cpp_MArray[T]&) except+
2023-05-07 21:28:30 +02:00
2023-05-08 22:28:31 +02:00
cpp_MArray(const shared_ptr[cpp_RangeBase]&) except+