#[allow(non_camel_case_types)]
pub struct vtkAffineCharArray(*mut core::ffi::c_void);
impl vtkAffineCharArray {
#[doc(alias = "vtkAffineCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineCharArray_create_drop() {
let obj = vtkAffineCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineDoubleArray(*mut core::ffi::c_void);
impl vtkAffineDoubleArray {
#[doc(alias = "vtkAffineDoubleArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineDoubleArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineDoubleArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineDoubleArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineDoubleArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineDoubleArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineDoubleArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineDoubleArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineDoubleArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineDoubleArray_create_drop() {
let obj = vtkAffineDoubleArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineDoubleArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineFloatArray(*mut core::ffi::c_void);
impl vtkAffineFloatArray {
#[doc(alias = "vtkAffineFloatArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineFloatArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineFloatArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineFloatArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineFloatArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineFloatArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineFloatArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineFloatArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineFloatArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineFloatArray_create_drop() {
let obj = vtkAffineFloatArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineFloatArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineIdTypeArray(*mut core::ffi::c_void);
impl vtkAffineIdTypeArray {
#[doc(alias = "vtkAffineIdTypeArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineIdTypeArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineIdTypeArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineIdTypeArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineIdTypeArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineIdTypeArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineIdTypeArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineIdTypeArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineIdTypeArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineIdTypeArray_create_drop() {
let obj = vtkAffineIdTypeArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineIdTypeArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineIntArray(*mut core::ffi::c_void);
impl vtkAffineIntArray {
#[doc(alias = "vtkAffineIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineIntArray_create_drop() {
let obj = vtkAffineIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineLongArray(*mut core::ffi::c_void);
impl vtkAffineLongArray {
#[doc(alias = "vtkAffineLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineLongArray_create_drop() {
let obj = vtkAffineLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineLongLongArray(*mut core::ffi::c_void);
impl vtkAffineLongLongArray {
#[doc(alias = "vtkAffineLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineLongLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineLongLongArray_create_drop() {
let obj = vtkAffineLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineShortArray(*mut core::ffi::c_void);
impl vtkAffineShortArray {
#[doc(alias = "vtkAffineShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineShortArray_create_drop() {
let obj = vtkAffineShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineSignedCharArray(*mut core::ffi::c_void);
impl vtkAffineSignedCharArray {
#[doc(alias = "vtkAffineSignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineSignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineSignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineSignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineSignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineSignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineSignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineSignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineSignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineSignedCharArray_create_drop() {
let obj = vtkAffineSignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineSignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineUnsignedCharArray(*mut core::ffi::c_void);
impl vtkAffineUnsignedCharArray {
#[doc(alias = "vtkAffineUnsignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineUnsignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineUnsignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineUnsignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineUnsignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineUnsignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineUnsignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineUnsignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineUnsignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineUnsignedCharArray_create_drop() {
let obj = vtkAffineUnsignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineUnsignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineUnsignedIntArray(*mut core::ffi::c_void);
impl vtkAffineUnsignedIntArray {
#[doc(alias = "vtkAffineUnsignedIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineUnsignedIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineUnsignedIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineUnsignedIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineUnsignedIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineUnsignedIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineUnsignedIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineUnsignedIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineUnsignedIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineUnsignedIntArray_create_drop() {
let obj = vtkAffineUnsignedIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineUnsignedIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineUnsignedLongArray(*mut core::ffi::c_void);
impl vtkAffineUnsignedLongArray {
#[doc(alias = "vtkAffineUnsignedLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineUnsignedLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineUnsignedLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineUnsignedLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineUnsignedLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineUnsignedLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineUnsignedLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineUnsignedLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineUnsignedLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineUnsignedLongArray_create_drop() {
let obj = vtkAffineUnsignedLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineUnsignedLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineUnsignedLongLongArray(*mut core::ffi::c_void);
impl vtkAffineUnsignedLongLongArray {
#[doc(alias = "vtkAffineUnsignedLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineUnsignedLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineUnsignedLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineUnsignedLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineUnsignedLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineUnsignedLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineUnsignedLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineUnsignedLongLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineUnsignedLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineUnsignedLongLongArray_create_drop() {
let obj = vtkAffineUnsignedLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineUnsignedLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAffineUnsignedShortArray(*mut core::ffi::c_void);
impl vtkAffineUnsignedShortArray {
#[doc(alias = "vtkAffineUnsignedShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAffineUnsignedShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAffineUnsignedShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAffineUnsignedShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAffineUnsignedShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAffineUnsignedShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAffineUnsignedShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAffineUnsignedShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAffineUnsignedShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAffineUnsignedShortArray_create_drop() {
let obj = vtkAffineUnsignedShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAffineUnsignedShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAnimationCue(*mut core::ffi::c_void);
impl vtkAnimationCue {
#[doc(alias = "vtkAnimationCue")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAnimationCue_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAnimationCue_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAnimationCue_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAnimationCue_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAnimationCue {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAnimationCue {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAnimationCue_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAnimationCue_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAnimationCue_create_drop() {
let obj = vtkAnimationCue::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAnimationCue(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkArchiver(*mut core::ffi::c_void);
impl vtkArchiver {
#[doc(alias = "vtkArchiver")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkArchiver_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkArchiver_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkArchiver_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkArchiver_get_ptr(self.0) }
}
}
impl std::default::Default for vtkArchiver {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkArchiver {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkArchiver_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkArchiver_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkArchiver_create_drop() {
let obj = vtkArchiver::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkArchiver(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBitArray(*mut core::ffi::c_void);
impl vtkBitArray {
#[doc(alias = "vtkBitArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBitArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBitArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBitArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBitArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBitArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBitArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBitArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBitArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBitArray_create_drop() {
let obj = vtkBitArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBitArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBitArrayIterator(*mut core::ffi::c_void);
impl vtkBitArrayIterator {
#[doc(alias = "vtkBitArrayIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBitArrayIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBitArrayIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBitArrayIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBitArrayIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBitArrayIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBitArrayIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBitArrayIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBitArrayIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBitArrayIterator_create_drop() {
let obj = vtkBitArrayIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBitArrayIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBoxMuellerRandomSequence(*mut core::ffi::c_void);
impl vtkBoxMuellerRandomSequence {
#[doc(alias = "vtkBoxMuellerRandomSequence")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBoxMuellerRandomSequence_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBoxMuellerRandomSequence_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBoxMuellerRandomSequence_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBoxMuellerRandomSequence_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBoxMuellerRandomSequence {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBoxMuellerRandomSequence {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBoxMuellerRandomSequence_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBoxMuellerRandomSequence_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBoxMuellerRandomSequence_create_drop() {
let obj = vtkBoxMuellerRandomSequence::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBoxMuellerRandomSequence(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkByteSwap(*mut core::ffi::c_void);
impl vtkByteSwap {
#[doc(alias = "vtkByteSwap")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkByteSwap_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkByteSwap_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkByteSwap_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkByteSwap_get_ptr(self.0) }
}
}
impl std::default::Default for vtkByteSwap {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkByteSwap {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkByteSwap_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkByteSwap_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkByteSwap_create_drop() {
let obj = vtkByteSwap::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkByteSwap(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCallbackCommand(*mut core::ffi::c_void);
impl vtkCallbackCommand {
#[doc(alias = "vtkCallbackCommand")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCallbackCommand_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCallbackCommand_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCallbackCommand_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCallbackCommand_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCallbackCommand {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCallbackCommand {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCallbackCommand_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCallbackCommand_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCallbackCommand_create_drop() {
let obj = vtkCallbackCommand::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCallbackCommand(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCharArray(*mut core::ffi::c_void);
impl vtkCharArray {
#[doc(alias = "vtkCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCharArray_create_drop() {
let obj = vtkCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCollection(*mut core::ffi::c_void);
impl vtkCollection {
#[doc(alias = "vtkCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCollection_create_drop() {
let obj = vtkCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCollectionIterator(*mut core::ffi::c_void);
impl vtkCollectionIterator {
#[doc(alias = "vtkCollectionIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCollectionIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCollectionIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCollectionIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCollectionIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCollectionIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCollectionIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCollectionIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCollectionIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCollectionIterator_create_drop() {
let obj = vtkCollectionIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCollectionIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeCharArray(*mut core::ffi::c_void);
impl vtkCompositeCharArray {
#[doc(alias = "vtkCompositeCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeCharArray_create_drop() {
let obj = vtkCompositeCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeDoubleArray(*mut core::ffi::c_void);
impl vtkCompositeDoubleArray {
#[doc(alias = "vtkCompositeDoubleArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeDoubleArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeDoubleArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeDoubleArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeDoubleArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeDoubleArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeDoubleArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeDoubleArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeDoubleArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeDoubleArray_create_drop() {
let obj = vtkCompositeDoubleArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeDoubleArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeFloatArray(*mut core::ffi::c_void);
impl vtkCompositeFloatArray {
#[doc(alias = "vtkCompositeFloatArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeFloatArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeFloatArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeFloatArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeFloatArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeFloatArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeFloatArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeFloatArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeFloatArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeFloatArray_create_drop() {
let obj = vtkCompositeFloatArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeFloatArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeIdTypeArray(*mut core::ffi::c_void);
impl vtkCompositeIdTypeArray {
#[doc(alias = "vtkCompositeIdTypeArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeIdTypeArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeIdTypeArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeIdTypeArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeIdTypeArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeIdTypeArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeIdTypeArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeIdTypeArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeIdTypeArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeIdTypeArray_create_drop() {
let obj = vtkCompositeIdTypeArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeIdTypeArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeIntArray(*mut core::ffi::c_void);
impl vtkCompositeIntArray {
#[doc(alias = "vtkCompositeIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeIntArray_create_drop() {
let obj = vtkCompositeIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeLongArray(*mut core::ffi::c_void);
impl vtkCompositeLongArray {
#[doc(alias = "vtkCompositeLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeLongArray_create_drop() {
let obj = vtkCompositeLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeLongLongArray(*mut core::ffi::c_void);
impl vtkCompositeLongLongArray {
#[doc(alias = "vtkCompositeLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeLongLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeLongLongArray_create_drop() {
let obj = vtkCompositeLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeShortArray(*mut core::ffi::c_void);
impl vtkCompositeShortArray {
#[doc(alias = "vtkCompositeShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeShortArray_create_drop() {
let obj = vtkCompositeShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeSignedCharArray(*mut core::ffi::c_void);
impl vtkCompositeSignedCharArray {
#[doc(alias = "vtkCompositeSignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeSignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeSignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeSignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeSignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeSignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeSignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeSignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeSignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeSignedCharArray_create_drop() {
let obj = vtkCompositeSignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeSignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeUnsignedCharArray(*mut core::ffi::c_void);
impl vtkCompositeUnsignedCharArray {
#[doc(alias = "vtkCompositeUnsignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeUnsignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeUnsignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeUnsignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeUnsignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeUnsignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeUnsignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeUnsignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeUnsignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeUnsignedCharArray_create_drop() {
let obj = vtkCompositeUnsignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeUnsignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeUnsignedIntArray(*mut core::ffi::c_void);
impl vtkCompositeUnsignedIntArray {
#[doc(alias = "vtkCompositeUnsignedIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeUnsignedIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeUnsignedIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeUnsignedIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeUnsignedIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeUnsignedIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeUnsignedIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeUnsignedIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeUnsignedIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeUnsignedIntArray_create_drop() {
let obj = vtkCompositeUnsignedIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeUnsignedIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeUnsignedLongArray(*mut core::ffi::c_void);
impl vtkCompositeUnsignedLongArray {
#[doc(alias = "vtkCompositeUnsignedLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeUnsignedLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeUnsignedLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeUnsignedLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeUnsignedLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeUnsignedLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeUnsignedLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeUnsignedLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeUnsignedLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeUnsignedLongArray_create_drop() {
let obj = vtkCompositeUnsignedLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeUnsignedLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeUnsignedLongLongArray(*mut core::ffi::c_void);
impl vtkCompositeUnsignedLongLongArray {
#[doc(alias = "vtkCompositeUnsignedLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeUnsignedLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeUnsignedLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeUnsignedLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeUnsignedLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeUnsignedLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeUnsignedLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeUnsignedLongLongArray_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkCompositeUnsignedLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeUnsignedLongLongArray_create_drop() {
let obj = vtkCompositeUnsignedLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeUnsignedLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeUnsignedShortArray(*mut core::ffi::c_void);
impl vtkCompositeUnsignedShortArray {
#[doc(alias = "vtkCompositeUnsignedShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeUnsignedShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeUnsignedShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeUnsignedShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeUnsignedShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeUnsignedShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeUnsignedShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeUnsignedShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeUnsignedShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeUnsignedShortArray_create_drop() {
let obj = vtkCompositeUnsignedShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeUnsignedShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantCharArray(*mut core::ffi::c_void);
impl vtkConstantCharArray {
#[doc(alias = "vtkConstantCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantCharArray_create_drop() {
let obj = vtkConstantCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantDoubleArray(*mut core::ffi::c_void);
impl vtkConstantDoubleArray {
#[doc(alias = "vtkConstantDoubleArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantDoubleArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantDoubleArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantDoubleArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantDoubleArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantDoubleArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantDoubleArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantDoubleArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantDoubleArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantDoubleArray_create_drop() {
let obj = vtkConstantDoubleArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantDoubleArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantFloatArray(*mut core::ffi::c_void);
impl vtkConstantFloatArray {
#[doc(alias = "vtkConstantFloatArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantFloatArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantFloatArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantFloatArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantFloatArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantFloatArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantFloatArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantFloatArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantFloatArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantFloatArray_create_drop() {
let obj = vtkConstantFloatArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantFloatArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantIdTypeArray(*mut core::ffi::c_void);
impl vtkConstantIdTypeArray {
#[doc(alias = "vtkConstantIdTypeArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantIdTypeArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantIdTypeArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantIdTypeArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantIdTypeArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantIdTypeArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantIdTypeArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantIdTypeArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantIdTypeArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantIdTypeArray_create_drop() {
let obj = vtkConstantIdTypeArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantIdTypeArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantIntArray(*mut core::ffi::c_void);
impl vtkConstantIntArray {
#[doc(alias = "vtkConstantIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantIntArray_create_drop() {
let obj = vtkConstantIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantLongArray(*mut core::ffi::c_void);
impl vtkConstantLongArray {
#[doc(alias = "vtkConstantLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantLongArray_create_drop() {
let obj = vtkConstantLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantLongLongArray(*mut core::ffi::c_void);
impl vtkConstantLongLongArray {
#[doc(alias = "vtkConstantLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantLongLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantLongLongArray_create_drop() {
let obj = vtkConstantLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantShortArray(*mut core::ffi::c_void);
impl vtkConstantShortArray {
#[doc(alias = "vtkConstantShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantShortArray_create_drop() {
let obj = vtkConstantShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantSignedCharArray(*mut core::ffi::c_void);
impl vtkConstantSignedCharArray {
#[doc(alias = "vtkConstantSignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantSignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantSignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantSignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantSignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantSignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantSignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantSignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantSignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantSignedCharArray_create_drop() {
let obj = vtkConstantSignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantSignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantUnsignedCharArray(*mut core::ffi::c_void);
impl vtkConstantUnsignedCharArray {
#[doc(alias = "vtkConstantUnsignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantUnsignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantUnsignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantUnsignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantUnsignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantUnsignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantUnsignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantUnsignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantUnsignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantUnsignedCharArray_create_drop() {
let obj = vtkConstantUnsignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantUnsignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantUnsignedIntArray(*mut core::ffi::c_void);
impl vtkConstantUnsignedIntArray {
#[doc(alias = "vtkConstantUnsignedIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantUnsignedIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantUnsignedIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantUnsignedIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantUnsignedIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantUnsignedIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantUnsignedIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantUnsignedIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantUnsignedIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantUnsignedIntArray_create_drop() {
let obj = vtkConstantUnsignedIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantUnsignedIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantUnsignedLongArray(*mut core::ffi::c_void);
impl vtkConstantUnsignedLongArray {
#[doc(alias = "vtkConstantUnsignedLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantUnsignedLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantUnsignedLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantUnsignedLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantUnsignedLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantUnsignedLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantUnsignedLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantUnsignedLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantUnsignedLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantUnsignedLongArray_create_drop() {
let obj = vtkConstantUnsignedLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantUnsignedLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantUnsignedLongLongArray(*mut core::ffi::c_void);
impl vtkConstantUnsignedLongLongArray {
#[doc(alias = "vtkConstantUnsignedLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantUnsignedLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantUnsignedLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantUnsignedLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantUnsignedLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantUnsignedLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantUnsignedLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantUnsignedLongLongArray_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkConstantUnsignedLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantUnsignedLongLongArray_create_drop() {
let obj = vtkConstantUnsignedLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantUnsignedLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConstantUnsignedShortArray(*mut core::ffi::c_void);
impl vtkConstantUnsignedShortArray {
#[doc(alias = "vtkConstantUnsignedShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConstantUnsignedShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConstantUnsignedShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConstantUnsignedShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConstantUnsignedShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConstantUnsignedShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConstantUnsignedShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConstantUnsignedShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConstantUnsignedShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConstantUnsignedShortArray_create_drop() {
let obj = vtkConstantUnsignedShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConstantUnsignedShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataArrayCollection(*mut core::ffi::c_void);
impl vtkDataArrayCollection {
#[doc(alias = "vtkDataArrayCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataArrayCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataArrayCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataArrayCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataArrayCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataArrayCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataArrayCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataArrayCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataArrayCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataArrayCollection_create_drop() {
let obj = vtkDataArrayCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataArrayCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataArrayCollectionIterator(*mut core::ffi::c_void);
impl vtkDataArrayCollectionIterator {
#[doc(alias = "vtkDataArrayCollectionIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataArrayCollectionIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataArrayCollectionIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataArrayCollectionIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataArrayCollectionIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataArrayCollectionIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataArrayCollectionIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataArrayCollectionIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataArrayCollectionIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataArrayCollectionIterator_create_drop() {
let obj = vtkDataArrayCollectionIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataArrayCollectionIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataArraySelection(*mut core::ffi::c_void);
impl vtkDataArraySelection {
#[doc(alias = "vtkDataArraySelection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataArraySelection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataArraySelection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataArraySelection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataArraySelection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataArraySelection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataArraySelection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataArraySelection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataArraySelection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataArraySelection_create_drop() {
let obj = vtkDataArraySelection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataArraySelection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDebugLeaks(*mut core::ffi::c_void);
impl vtkDebugLeaks {
#[doc(alias = "vtkDebugLeaks")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDebugLeaks_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDebugLeaks_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDebugLeaks_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDebugLeaks_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDebugLeaks {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDebugLeaks {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDebugLeaks_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDebugLeaks_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDebugLeaks_create_drop() {
let obj = vtkDebugLeaks::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDebugLeaks(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDeserializer(*mut core::ffi::c_void);
impl vtkDeserializer {
#[doc(alias = "vtkDeserializer")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDeserializer_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDeserializer_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDeserializer_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDeserializer_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDeserializer {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDeserializer {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDeserializer_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDeserializer_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDeserializer_create_drop() {
let obj = vtkDeserializer::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDeserializer(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDoubleArray(*mut core::ffi::c_void);
impl vtkDoubleArray {
#[doc(alias = "vtkDoubleArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDoubleArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDoubleArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDoubleArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDoubleArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDoubleArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDoubleArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDoubleArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDoubleArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDoubleArray_create_drop() {
let obj = vtkDoubleArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDoubleArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDynamicLoader(*mut core::ffi::c_void);
impl vtkDynamicLoader {
#[doc(alias = "vtkDynamicLoader")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDynamicLoader_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDynamicLoader_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDynamicLoader_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDynamicLoader_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDynamicLoader {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDynamicLoader {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDynamicLoader_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDynamicLoader_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDynamicLoader_create_drop() {
let obj = vtkDynamicLoader::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDynamicLoader(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkEventDataDevice3D(*mut core::ffi::c_void);
impl vtkEventDataDevice3D {
#[doc(alias = "vtkEventDataDevice3D")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkEventDataDevice3D_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkEventDataDevice3D_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkEventDataDevice3D_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkEventDataDevice3D_get_ptr(self.0) }
}
}
impl std::default::Default for vtkEventDataDevice3D {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkEventDataDevice3D {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkEventDataDevice3D_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkEventDataDevice3D_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkEventDataDevice3D_create_drop() {
let obj = vtkEventDataDevice3D::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkEventDataDevice3D(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkEventDataForDevice(*mut core::ffi::c_void);
impl vtkEventDataForDevice {
#[doc(alias = "vtkEventDataForDevice")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkEventDataForDevice_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkEventDataForDevice_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkEventDataForDevice_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkEventDataForDevice_get_ptr(self.0) }
}
}
impl std::default::Default for vtkEventDataForDevice {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkEventDataForDevice {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkEventDataForDevice_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkEventDataForDevice_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkEventDataForDevice_create_drop() {
let obj = vtkEventDataForDevice::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkEventDataForDevice(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkEventForwarderCommand(*mut core::ffi::c_void);
impl vtkEventForwarderCommand {
#[doc(alias = "vtkEventForwarderCommand")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkEventForwarderCommand_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkEventForwarderCommand_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkEventForwarderCommand_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkEventForwarderCommand_get_ptr(self.0) }
}
}
impl std::default::Default for vtkEventForwarderCommand {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkEventForwarderCommand {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkEventForwarderCommand_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkEventForwarderCommand_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkEventForwarderCommand_create_drop() {
let obj = vtkEventForwarderCommand::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkEventForwarderCommand(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkFileOutputWindow(*mut core::ffi::c_void);
impl vtkFileOutputWindow {
#[doc(alias = "vtkFileOutputWindow")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkFileOutputWindow_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkFileOutputWindow_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkFileOutputWindow_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkFileOutputWindow_get_ptr(self.0) }
}
}
impl std::default::Default for vtkFileOutputWindow {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkFileOutputWindow {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkFileOutputWindow_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkFileOutputWindow_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkFileOutputWindow_create_drop() {
let obj = vtkFileOutputWindow::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkFileOutputWindow(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkFloatArray(*mut core::ffi::c_void);
impl vtkFloatArray {
#[doc(alias = "vtkFloatArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkFloatArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkFloatArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkFloatArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkFloatArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkFloatArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkFloatArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkFloatArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkFloatArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkFloatArray_create_drop() {
let obj = vtkFloatArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkFloatArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGarbageCollector(*mut core::ffi::c_void);
impl vtkGarbageCollector {
#[doc(alias = "vtkGarbageCollector")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGarbageCollector_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGarbageCollector_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGarbageCollector_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGarbageCollector_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGarbageCollector {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGarbageCollector {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGarbageCollector_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkGarbageCollector_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGarbageCollector_create_drop() {
let obj = vtkGarbageCollector::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGarbageCollector(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIdList(*mut core::ffi::c_void);
impl vtkIdList {
#[doc(alias = "vtkIdList")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIdList_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIdList_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIdList_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIdList_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIdList {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIdList {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIdList_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIdList_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIdList_create_drop() {
let obj = vtkIdList::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIdList(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIdListCollection(*mut core::ffi::c_void);
impl vtkIdListCollection {
#[doc(alias = "vtkIdListCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIdListCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIdListCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIdListCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIdListCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIdListCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIdListCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIdListCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIdListCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIdListCollection_create_drop() {
let obj = vtkIdListCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIdListCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIdTypeArray(*mut core::ffi::c_void);
impl vtkIdTypeArray {
#[doc(alias = "vtkIdTypeArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIdTypeArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIdTypeArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIdTypeArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIdTypeArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIdTypeArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIdTypeArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIdTypeArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIdTypeArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIdTypeArray_create_drop() {
let obj = vtkIdTypeArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIdTypeArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedCharArray(*mut core::ffi::c_void);
impl vtkIndexedCharArray {
#[doc(alias = "vtkIndexedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedCharArray_create_drop() {
let obj = vtkIndexedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedDoubleArray(*mut core::ffi::c_void);
impl vtkIndexedDoubleArray {
#[doc(alias = "vtkIndexedDoubleArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedDoubleArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedDoubleArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedDoubleArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedDoubleArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedDoubleArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedDoubleArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedDoubleArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedDoubleArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedDoubleArray_create_drop() {
let obj = vtkIndexedDoubleArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedDoubleArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedFloatArray(*mut core::ffi::c_void);
impl vtkIndexedFloatArray {
#[doc(alias = "vtkIndexedFloatArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedFloatArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedFloatArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedFloatArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedFloatArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedFloatArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedFloatArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedFloatArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedFloatArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedFloatArray_create_drop() {
let obj = vtkIndexedFloatArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedFloatArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedIdTypeArray(*mut core::ffi::c_void);
impl vtkIndexedIdTypeArray {
#[doc(alias = "vtkIndexedIdTypeArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedIdTypeArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedIdTypeArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedIdTypeArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedIdTypeArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedIdTypeArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedIdTypeArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedIdTypeArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedIdTypeArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedIdTypeArray_create_drop() {
let obj = vtkIndexedIdTypeArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedIdTypeArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedIntArray(*mut core::ffi::c_void);
impl vtkIndexedIntArray {
#[doc(alias = "vtkIndexedIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedIntArray_create_drop() {
let obj = vtkIndexedIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedLongArray(*mut core::ffi::c_void);
impl vtkIndexedLongArray {
#[doc(alias = "vtkIndexedLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedLongArray_create_drop() {
let obj = vtkIndexedLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedLongLongArray(*mut core::ffi::c_void);
impl vtkIndexedLongLongArray {
#[doc(alias = "vtkIndexedLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedLongLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedLongLongArray_create_drop() {
let obj = vtkIndexedLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedShortArray(*mut core::ffi::c_void);
impl vtkIndexedShortArray {
#[doc(alias = "vtkIndexedShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedShortArray_create_drop() {
let obj = vtkIndexedShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedSignedCharArray(*mut core::ffi::c_void);
impl vtkIndexedSignedCharArray {
#[doc(alias = "vtkIndexedSignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedSignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedSignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedSignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedSignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedSignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedSignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedSignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedSignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedSignedCharArray_create_drop() {
let obj = vtkIndexedSignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedSignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedUnsignedCharArray(*mut core::ffi::c_void);
impl vtkIndexedUnsignedCharArray {
#[doc(alias = "vtkIndexedUnsignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedUnsignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedUnsignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedUnsignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedUnsignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedUnsignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedUnsignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedUnsignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedUnsignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedUnsignedCharArray_create_drop() {
let obj = vtkIndexedUnsignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedUnsignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedUnsignedIntArray(*mut core::ffi::c_void);
impl vtkIndexedUnsignedIntArray {
#[doc(alias = "vtkIndexedUnsignedIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedUnsignedIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedUnsignedIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedUnsignedIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedUnsignedIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedUnsignedIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedUnsignedIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedUnsignedIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedUnsignedIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedUnsignedIntArray_create_drop() {
let obj = vtkIndexedUnsignedIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedUnsignedIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedUnsignedLongArray(*mut core::ffi::c_void);
impl vtkIndexedUnsignedLongArray {
#[doc(alias = "vtkIndexedUnsignedLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedUnsignedLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedUnsignedLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedUnsignedLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedUnsignedLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedUnsignedLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedUnsignedLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedUnsignedLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedUnsignedLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedUnsignedLongArray_create_drop() {
let obj = vtkIndexedUnsignedLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedUnsignedLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedUnsignedLongLongArray(*mut core::ffi::c_void);
impl vtkIndexedUnsignedLongLongArray {
#[doc(alias = "vtkIndexedUnsignedLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedUnsignedLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedUnsignedLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedUnsignedLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedUnsignedLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedUnsignedLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedUnsignedLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedUnsignedLongLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedUnsignedLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedUnsignedLongLongArray_create_drop() {
let obj = vtkIndexedUnsignedLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedUnsignedLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIndexedUnsignedShortArray(*mut core::ffi::c_void);
impl vtkIndexedUnsignedShortArray {
#[doc(alias = "vtkIndexedUnsignedShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIndexedUnsignedShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIndexedUnsignedShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIndexedUnsignedShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIndexedUnsignedShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIndexedUnsignedShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIndexedUnsignedShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIndexedUnsignedShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIndexedUnsignedShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIndexedUnsignedShortArray_create_drop() {
let obj = vtkIndexedUnsignedShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIndexedUnsignedShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkInformation(*mut core::ffi::c_void);
impl vtkInformation {
#[doc(alias = "vtkInformation")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkInformation_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkInformation_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkInformation_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkInformation_get_ptr(self.0) }
}
}
impl std::default::Default for vtkInformation {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkInformation {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkInformation_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkInformation_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkInformation_create_drop() {
let obj = vtkInformation::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkInformation(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkInformationIterator(*mut core::ffi::c_void);
impl vtkInformationIterator {
#[doc(alias = "vtkInformationIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkInformationIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkInformationIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkInformationIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkInformationIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkInformationIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkInformationIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkInformationIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkInformationIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkInformationIterator_create_drop() {
let obj = vtkInformationIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkInformationIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkInformationKeyLookup(*mut core::ffi::c_void);
impl vtkInformationKeyLookup {
#[doc(alias = "vtkInformationKeyLookup")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkInformationKeyLookup_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkInformationKeyLookup_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkInformationKeyLookup_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkInformationKeyLookup_get_ptr(self.0) }
}
}
impl std::default::Default for vtkInformationKeyLookup {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkInformationKeyLookup {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkInformationKeyLookup_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkInformationKeyLookup_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkInformationKeyLookup_create_drop() {
let obj = vtkInformationKeyLookup::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkInformationKeyLookup(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkInformationVector(*mut core::ffi::c_void);
impl vtkInformationVector {
#[doc(alias = "vtkInformationVector")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkInformationVector_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkInformationVector_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkInformationVector_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkInformationVector_get_ptr(self.0) }
}
}
impl std::default::Default for vtkInformationVector {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkInformationVector {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkInformationVector_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkInformationVector_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkInformationVector_create_drop() {
let obj = vtkInformationVector::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkInformationVector(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIntArray(*mut core::ffi::c_void);
impl vtkIntArray {
#[doc(alias = "vtkIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIntArray_create_drop() {
let obj = vtkIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLongArray(*mut core::ffi::c_void);
impl vtkLongArray {
#[doc(alias = "vtkLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLongArray_create_drop() {
let obj = vtkLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLongLongArray(*mut core::ffi::c_void);
impl vtkLongLongArray {
#[doc(alias = "vtkLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLongLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLongLongArray_create_drop() {
let obj = vtkLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLookupTable(*mut core::ffi::c_void);
impl vtkLookupTable {
#[doc(alias = "vtkLookupTable")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLookupTable_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLookupTable_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLookupTable_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLookupTable_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLookupTable {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLookupTable {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLookupTable_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLookupTable_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLookupTable_create_drop() {
let obj = vtkLookupTable::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLookupTable(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMarshalContext(*mut core::ffi::c_void);
impl vtkMarshalContext {
#[doc(alias = "vtkMarshalContext")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMarshalContext_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMarshalContext_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMarshalContext_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMarshalContext_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMarshalContext {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMarshalContext {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMarshalContext_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMarshalContext_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMarshalContext_create_drop() {
let obj = vtkMarshalContext::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMarshalContext(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMath(*mut core::ffi::c_void);
impl vtkMath {
#[doc(alias = "vtkMath")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMath_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMath_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMath_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkMath_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMath {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMath {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMath_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMath_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMath_create_drop() {
let obj = vtkMath::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMath(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMersenneTwister(*mut core::ffi::c_void);
impl vtkMersenneTwister {
#[doc(alias = "vtkMersenneTwister")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMersenneTwister_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMersenneTwister_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMersenneTwister_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMersenneTwister_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMersenneTwister {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMersenneTwister {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMersenneTwister_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMersenneTwister_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMersenneTwister_create_drop() {
let obj = vtkMersenneTwister::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMersenneTwister(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMinimalStandardRandomSequence(*mut core::ffi::c_void);
impl vtkMinimalStandardRandomSequence {
#[doc(alias = "vtkMinimalStandardRandomSequence")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMinimalStandardRandomSequence_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMinimalStandardRandomSequence_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMinimalStandardRandomSequence_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMinimalStandardRandomSequence_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMinimalStandardRandomSequence {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMinimalStandardRandomSequence {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMinimalStandardRandomSequence_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkMinimalStandardRandomSequence_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMinimalStandardRandomSequence_create_drop() {
let obj = vtkMinimalStandardRandomSequence::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMinimalStandardRandomSequence(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMultiThreader(*mut core::ffi::c_void);
impl vtkMultiThreader {
#[doc(alias = "vtkMultiThreader")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMultiThreader_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMultiThreader_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMultiThreader_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMultiThreader_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMultiThreader {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMultiThreader {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMultiThreader_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMultiThreader_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMultiThreader_create_drop() {
let obj = vtkMultiThreader::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMultiThreader(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkObject(*mut core::ffi::c_void);
impl vtkObject {
#[doc(alias = "vtkObject")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkObject_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkObject_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkObject_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkObject_get_ptr(self.0) }
}
}
impl std::default::Default for vtkObject {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkObject {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkObject_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkObject_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkObject_create_drop() {
let obj = vtkObject::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkObject(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkObjectFactoryCollection(*mut core::ffi::c_void);
impl vtkObjectFactoryCollection {
#[doc(alias = "vtkObjectFactoryCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkObjectFactoryCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkObjectFactoryCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkObjectFactoryCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkObjectFactoryCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkObjectFactoryCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkObjectFactoryCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkObjectFactoryCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkObjectFactoryCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkObjectFactoryCollection_create_drop() {
let obj = vtkObjectFactoryCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkObjectFactoryCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOldStyleCallbackCommand(*mut core::ffi::c_void);
impl vtkOldStyleCallbackCommand {
#[doc(alias = "vtkOldStyleCallbackCommand")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOldStyleCallbackCommand_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOldStyleCallbackCommand_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOldStyleCallbackCommand_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOldStyleCallbackCommand_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOldStyleCallbackCommand {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOldStyleCallbackCommand {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOldStyleCallbackCommand_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkOldStyleCallbackCommand_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOldStyleCallbackCommand_create_drop() {
let obj = vtkOldStyleCallbackCommand::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOldStyleCallbackCommand(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOutputWindow(*mut core::ffi::c_void);
impl vtkOutputWindow {
#[doc(alias = "vtkOutputWindow")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOutputWindow_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOutputWindow_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOutputWindow_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOutputWindow_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOutputWindow {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOutputWindow {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOutputWindow_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkOutputWindow_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOutputWindow_create_drop() {
let obj = vtkOutputWindow::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOutputWindow(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOverrideInformationCollection(*mut core::ffi::c_void);
impl vtkOverrideInformationCollection {
#[doc(alias = "vtkOverrideInformationCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOverrideInformationCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOverrideInformationCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOverrideInformationCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOverrideInformationCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOverrideInformationCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOverrideInformationCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOverrideInformationCollection_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkOverrideInformationCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOverrideInformationCollection_create_drop() {
let obj = vtkOverrideInformationCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOverrideInformationCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPoints(*mut core::ffi::c_void);
impl vtkPoints {
#[doc(alias = "vtkPoints")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPoints_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPoints_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPoints_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPoints_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPoints {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPoints {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPoints_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPoints_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPoints_create_drop() {
let obj = vtkPoints::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPoints(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPoints2D(*mut core::ffi::c_void);
impl vtkPoints2D {
#[doc(alias = "vtkPoints2D")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPoints2D_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPoints2D_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPoints2D_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPoints2D_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPoints2D {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPoints2D {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPoints2D_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPoints2D_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPoints2D_create_drop() {
let obj = vtkPoints2D::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPoints2D(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPriorityQueue(*mut core::ffi::c_void);
impl vtkPriorityQueue {
#[doc(alias = "vtkPriorityQueue")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPriorityQueue_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPriorityQueue_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPriorityQueue_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPriorityQueue_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPriorityQueue {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPriorityQueue {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPriorityQueue_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPriorityQueue_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPriorityQueue_create_drop() {
let obj = vtkPriorityQueue::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPriorityQueue(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkRandomPool(*mut core::ffi::c_void);
impl vtkRandomPool {
#[doc(alias = "vtkRandomPool")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkRandomPool_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkRandomPool_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkRandomPool_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkRandomPool_get_ptr(self.0) }
}
}
impl std::default::Default for vtkRandomPool {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkRandomPool {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkRandomPool_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkRandomPool_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkRandomPool_create_drop() {
let obj = vtkRandomPool::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkRandomPool(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkReferenceCount(*mut core::ffi::c_void);
impl vtkReferenceCount {
#[doc(alias = "vtkReferenceCount")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkReferenceCount_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkReferenceCount_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkReferenceCount_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkReferenceCount_get_ptr(self.0) }
}
}
impl std::default::Default for vtkReferenceCount {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkReferenceCount {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkReferenceCount_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkReferenceCount_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkReferenceCount_create_drop() {
let obj = vtkReferenceCount::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkReferenceCount(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkScalarsToColors(*mut core::ffi::c_void);
impl vtkScalarsToColors {
#[doc(alias = "vtkScalarsToColors")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkScalarsToColors_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkScalarsToColors_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkScalarsToColors_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkScalarsToColors_get_ptr(self.0) }
}
}
impl std::default::Default for vtkScalarsToColors {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkScalarsToColors {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkScalarsToColors_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkScalarsToColors_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkScalarsToColors_create_drop() {
let obj = vtkScalarsToColors::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkScalarsToColors(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSerializer(*mut core::ffi::c_void);
impl vtkSerializer {
#[doc(alias = "vtkSerializer")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSerializer_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSerializer_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSerializer_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSerializer_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSerializer {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSerializer {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSerializer_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSerializer_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSerializer_create_drop() {
let obj = vtkSerializer::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSerializer(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkShortArray(*mut core::ffi::c_void);
impl vtkShortArray {
#[doc(alias = "vtkShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkShortArray_create_drop() {
let obj = vtkShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSignedCharArray(*mut core::ffi::c_void);
impl vtkSignedCharArray {
#[doc(alias = "vtkSignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSignedCharArray_create_drop() {
let obj = vtkSignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSortDataArray(*mut core::ffi::c_void);
impl vtkSortDataArray {
#[doc(alias = "vtkSortDataArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSortDataArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSortDataArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSortDataArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSortDataArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSortDataArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSortDataArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSortDataArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSortDataArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSortDataArray_create_drop() {
let obj = vtkSortDataArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSortDataArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStringArray(*mut core::ffi::c_void);
impl vtkStringArray {
#[doc(alias = "vtkStringArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStringArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStringArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStringArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStringArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStringArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStringArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStringArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStringArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStringArray_create_drop() {
let obj = vtkStringArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStringArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStringOutputWindow(*mut core::ffi::c_void);
impl vtkStringOutputWindow {
#[doc(alias = "vtkStringOutputWindow")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStringOutputWindow_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStringOutputWindow_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStringOutputWindow_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStringOutputWindow_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStringOutputWindow {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStringOutputWindow {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStringOutputWindow_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStringOutputWindow_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStringOutputWindow_create_drop() {
let obj = vtkStringOutputWindow::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStringOutputWindow(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTimePointUtility(*mut core::ffi::c_void);
impl vtkTimePointUtility {
#[doc(alias = "vtkTimePointUtility")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTimePointUtility_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTimePointUtility_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTimePointUtility_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTimePointUtility_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTimePointUtility {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTimePointUtility {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTimePointUtility_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTimePointUtility_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTimePointUtility_create_drop() {
let obj = vtkTimePointUtility::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTimePointUtility(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeFloat32Array(*mut core::ffi::c_void);
impl vtkTypeFloat32Array {
#[doc(alias = "vtkTypeFloat32Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeFloat32Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeFloat32Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeFloat32Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeFloat32Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeFloat32Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeFloat32Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeFloat32Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeFloat32Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeFloat32Array_create_drop() {
let obj = vtkTypeFloat32Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeFloat32Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeFloat64Array(*mut core::ffi::c_void);
impl vtkTypeFloat64Array {
#[doc(alias = "vtkTypeFloat64Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeFloat64Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeFloat64Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeFloat64Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeFloat64Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeFloat64Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeFloat64Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeFloat64Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeFloat64Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeFloat64Array_create_drop() {
let obj = vtkTypeFloat64Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeFloat64Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeInt16Array(*mut core::ffi::c_void);
impl vtkTypeInt16Array {
#[doc(alias = "vtkTypeInt16Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeInt16Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeInt16Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeInt16Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeInt16Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeInt16Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeInt16Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeInt16Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeInt16Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeInt16Array_create_drop() {
let obj = vtkTypeInt16Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeInt16Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeInt32Array(*mut core::ffi::c_void);
impl vtkTypeInt32Array {
#[doc(alias = "vtkTypeInt32Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeInt32Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeInt32Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeInt32Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeInt32Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeInt32Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeInt32Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeInt32Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeInt32Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeInt32Array_create_drop() {
let obj = vtkTypeInt32Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeInt32Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeInt64Array(*mut core::ffi::c_void);
impl vtkTypeInt64Array {
#[doc(alias = "vtkTypeInt64Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeInt64Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeInt64Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeInt64Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeInt64Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeInt64Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeInt64Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeInt64Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeInt64Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeInt64Array_create_drop() {
let obj = vtkTypeInt64Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeInt64Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeInt8Array(*mut core::ffi::c_void);
impl vtkTypeInt8Array {
#[doc(alias = "vtkTypeInt8Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeInt8Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeInt8Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeInt8Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeInt8Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeInt8Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeInt8Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeInt8Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeInt8Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeInt8Array_create_drop() {
let obj = vtkTypeInt8Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeInt8Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeUInt16Array(*mut core::ffi::c_void);
impl vtkTypeUInt16Array {
#[doc(alias = "vtkTypeUInt16Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeUInt16Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeUInt16Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeUInt16Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeUInt16Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeUInt16Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeUInt16Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeUInt16Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeUInt16Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeUInt16Array_create_drop() {
let obj = vtkTypeUInt16Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeUInt16Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeUInt32Array(*mut core::ffi::c_void);
impl vtkTypeUInt32Array {
#[doc(alias = "vtkTypeUInt32Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeUInt32Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeUInt32Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeUInt32Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeUInt32Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeUInt32Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeUInt32Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeUInt32Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeUInt32Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeUInt32Array_create_drop() {
let obj = vtkTypeUInt32Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeUInt32Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeUInt64Array(*mut core::ffi::c_void);
impl vtkTypeUInt64Array {
#[doc(alias = "vtkTypeUInt64Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeUInt64Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeUInt64Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeUInt64Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeUInt64Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeUInt64Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeUInt64Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeUInt64Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeUInt64Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeUInt64Array_create_drop() {
let obj = vtkTypeUInt64Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeUInt64Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTypeUInt8Array(*mut core::ffi::c_void);
impl vtkTypeUInt8Array {
#[doc(alias = "vtkTypeUInt8Array")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTypeUInt8Array_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTypeUInt8Array_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTypeUInt8Array_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTypeUInt8Array_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTypeUInt8Array {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTypeUInt8Array {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTypeUInt8Array_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTypeUInt8Array_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTypeUInt8Array_create_drop() {
let obj = vtkTypeUInt8Array::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTypeUInt8Array(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnsignedCharArray(*mut core::ffi::c_void);
impl vtkUnsignedCharArray {
#[doc(alias = "vtkUnsignedCharArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnsignedCharArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnsignedCharArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnsignedCharArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnsignedCharArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnsignedCharArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnsignedCharArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnsignedCharArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUnsignedCharArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnsignedCharArray_create_drop() {
let obj = vtkUnsignedCharArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnsignedCharArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnsignedIntArray(*mut core::ffi::c_void);
impl vtkUnsignedIntArray {
#[doc(alias = "vtkUnsignedIntArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnsignedIntArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnsignedIntArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnsignedIntArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnsignedIntArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnsignedIntArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnsignedIntArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnsignedIntArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUnsignedIntArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnsignedIntArray_create_drop() {
let obj = vtkUnsignedIntArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnsignedIntArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnsignedLongArray(*mut core::ffi::c_void);
impl vtkUnsignedLongArray {
#[doc(alias = "vtkUnsignedLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnsignedLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnsignedLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnsignedLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnsignedLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnsignedLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnsignedLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnsignedLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUnsignedLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnsignedLongArray_create_drop() {
let obj = vtkUnsignedLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnsignedLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnsignedLongLongArray(*mut core::ffi::c_void);
impl vtkUnsignedLongLongArray {
#[doc(alias = "vtkUnsignedLongLongArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnsignedLongLongArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnsignedLongLongArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnsignedLongLongArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnsignedLongLongArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnsignedLongLongArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnsignedLongLongArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnsignedLongLongArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUnsignedLongLongArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnsignedLongLongArray_create_drop() {
let obj = vtkUnsignedLongLongArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnsignedLongLongArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnsignedShortArray(*mut core::ffi::c_void);
impl vtkUnsignedShortArray {
#[doc(alias = "vtkUnsignedShortArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnsignedShortArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnsignedShortArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnsignedShortArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnsignedShortArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnsignedShortArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnsignedShortArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnsignedShortArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUnsignedShortArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnsignedShortArray_create_drop() {
let obj = vtkUnsignedShortArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnsignedShortArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkVariantArray(*mut core::ffi::c_void);
impl vtkVariantArray {
#[doc(alias = "vtkVariantArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkVariantArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkVariantArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkVariantArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkVariantArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkVariantArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkVariantArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkVariantArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkVariantArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkVariantArray_create_drop() {
let obj = vtkVariantArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkVariantArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkVersion(*mut core::ffi::c_void);
impl vtkVersion {
#[doc(alias = "vtkVersion")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkVersion_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkVersion_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkVersion_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkVersion_get_ptr(self.0) }
}
}
impl std::default::Default for vtkVersion {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkVersion {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkVersion_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkVersion_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkVersion_create_drop() {
let obj = vtkVersion::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkVersion(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkVoidArray(*mut core::ffi::c_void);
impl vtkVoidArray {
#[doc(alias = "vtkVoidArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkVoidArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkVoidArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkVoidArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkVoidArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkVoidArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkVoidArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkVoidArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkVoidArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkVoidArray_create_drop() {
let obj = vtkVoidArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkVoidArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkWeakReference(*mut core::ffi::c_void);
impl vtkWeakReference {
#[doc(alias = "vtkWeakReference")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkWeakReference_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkWeakReference_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkWeakReference_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkWeakReference_get_ptr(self.0) }
}
}
impl std::default::Default for vtkWeakReference {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkWeakReference {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkWeakReference_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkWeakReference_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkWeakReference_create_drop() {
let obj = vtkWeakReference::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkWeakReference(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkXMLFileOutputWindow(*mut core::ffi::c_void);
impl vtkXMLFileOutputWindow {
#[doc(alias = "vtkXMLFileOutputWindow")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkXMLFileOutputWindow_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkXMLFileOutputWindow_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkXMLFileOutputWindow_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkXMLFileOutputWindow_get_ptr(self.0) }
}
}
impl std::default::Default for vtkXMLFileOutputWindow {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkXMLFileOutputWindow {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkXMLFileOutputWindow_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkXMLFileOutputWindow_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkXMLFileOutputWindow_create_drop() {
let obj = vtkXMLFileOutputWindow::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkXMLFileOutputWindow(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}