#[allow(non_camel_case_types)]
pub struct vtkAMRDataInternals(*mut core::ffi::c_void);
impl vtkAMRDataInternals {
#[doc(alias = "vtkAMRDataInternals")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAMRDataInternals_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAMRDataInternals_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAMRDataInternals_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAMRDataInternals_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAMRDataInternals {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAMRDataInternals {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAMRDataInternals_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAMRDataInternals_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAMRDataInternals_create_drop() {
let obj = vtkAMRDataInternals::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAMRDataInternals(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAdjacentVertexIterator(*mut core::ffi::c_void);
impl vtkAdjacentVertexIterator {
#[doc(alias = "vtkAdjacentVertexIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAdjacentVertexIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAdjacentVertexIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAdjacentVertexIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAdjacentVertexIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAdjacentVertexIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAdjacentVertexIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAdjacentVertexIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAdjacentVertexIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAdjacentVertexIterator_create_drop() {
let obj = vtkAdjacentVertexIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAdjacentVertexIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAnimationScene(*mut core::ffi::c_void);
impl vtkAnimationScene {
#[doc(alias = "vtkAnimationScene")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAnimationScene_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAnimationScene_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAnimationScene_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAnimationScene_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAnimationScene {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAnimationScene {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAnimationScene_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAnimationScene_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAnimationScene_create_drop() {
let obj = vtkAnimationScene::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAnimationScene(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAnnotation(*mut core::ffi::c_void);
impl vtkAnnotation {
#[doc(alias = "vtkAnnotation")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAnnotation_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAnnotation_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAnnotation_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAnnotation_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAnnotation {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAnnotation {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAnnotation_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAnnotation_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAnnotation_create_drop() {
let obj = vtkAnnotation::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAnnotation(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAnnotationLayers(*mut core::ffi::c_void);
impl vtkAnnotationLayers {
#[doc(alias = "vtkAnnotationLayers")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAnnotationLayers_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAnnotationLayers_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAnnotationLayers_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAnnotationLayers_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAnnotationLayers {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAnnotationLayers {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAnnotationLayers_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAnnotationLayers_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAnnotationLayers_create_drop() {
let obj = vtkAnnotationLayers::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAnnotationLayers(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAnnulus(*mut core::ffi::c_void);
impl vtkAnnulus {
#[doc(alias = "vtkAnnulus")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAnnulus_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAnnulus_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAnnulus_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAnnulus_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAnnulus {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAnnulus {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAnnulus_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAnnulus_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAnnulus_create_drop() {
let obj = vtkAnnulus::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAnnulus(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkArrayData(*mut core::ffi::c_void);
impl vtkArrayData {
#[doc(alias = "vtkArrayData")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkArrayData_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkArrayData_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkArrayData_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkArrayData_get_ptr(self.0) }
}
}
impl std::default::Default for vtkArrayData {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkArrayData {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkArrayData_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkArrayData_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkArrayData_create_drop() {
let obj = vtkArrayData::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkArrayData(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAttributesErrorMetric(*mut core::ffi::c_void);
impl vtkAttributesErrorMetric {
#[doc(alias = "vtkAttributesErrorMetric")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAttributesErrorMetric_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAttributesErrorMetric_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAttributesErrorMetric_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAttributesErrorMetric_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAttributesErrorMetric {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAttributesErrorMetric {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAttributesErrorMetric_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAttributesErrorMetric_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAttributesErrorMetric_create_drop() {
let obj = vtkAttributesErrorMetric::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAttributesErrorMetric(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBSPCuts(*mut core::ffi::c_void);
impl vtkBSPCuts {
#[doc(alias = "vtkBSPCuts")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBSPCuts_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBSPCuts_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBSPCuts_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBSPCuts_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBSPCuts {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBSPCuts {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBSPCuts_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBSPCuts_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBSPCuts_create_drop() {
let obj = vtkBSPCuts::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBSPCuts(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBSPIntersections(*mut core::ffi::c_void);
impl vtkBSPIntersections {
#[doc(alias = "vtkBSPIntersections")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBSPIntersections_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBSPIntersections_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBSPIntersections_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBSPIntersections_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBSPIntersections {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBSPIntersections {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBSPIntersections_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBSPIntersections_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBSPIntersections_create_drop() {
let obj = vtkBSPIntersections::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBSPIntersections(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBezierCurve(*mut core::ffi::c_void);
impl vtkBezierCurve {
#[doc(alias = "vtkBezierCurve")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBezierCurve_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBezierCurve_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBezierCurve_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBezierCurve_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBezierCurve {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBezierCurve {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBezierCurve_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBezierCurve_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBezierCurve_create_drop() {
let obj = vtkBezierCurve::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBezierCurve(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBezierHexahedron(*mut core::ffi::c_void);
impl vtkBezierHexahedron {
#[doc(alias = "vtkBezierHexahedron")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBezierHexahedron_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBezierHexahedron_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBezierHexahedron_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBezierHexahedron_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBezierHexahedron {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBezierHexahedron {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBezierHexahedron_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBezierHexahedron_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBezierHexahedron_create_drop() {
let obj = vtkBezierHexahedron::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBezierHexahedron(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBezierInterpolation(*mut core::ffi::c_void);
impl vtkBezierInterpolation {
#[doc(alias = "vtkBezierInterpolation")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBezierInterpolation_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBezierInterpolation_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBezierInterpolation_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBezierInterpolation_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBezierInterpolation {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBezierInterpolation {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBezierInterpolation_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBezierInterpolation_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBezierInterpolation_create_drop() {
let obj = vtkBezierInterpolation::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBezierInterpolation(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBezierQuadrilateral(*mut core::ffi::c_void);
impl vtkBezierQuadrilateral {
#[doc(alias = "vtkBezierQuadrilateral")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBezierQuadrilateral_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBezierQuadrilateral_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBezierQuadrilateral_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBezierQuadrilateral_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBezierQuadrilateral {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBezierQuadrilateral {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBezierQuadrilateral_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBezierQuadrilateral_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBezierQuadrilateral_create_drop() {
let obj = vtkBezierQuadrilateral::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBezierQuadrilateral(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBezierTetra(*mut core::ffi::c_void);
impl vtkBezierTetra {
#[doc(alias = "vtkBezierTetra")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBezierTetra_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBezierTetra_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBezierTetra_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBezierTetra_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBezierTetra {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBezierTetra {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBezierTetra_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBezierTetra_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBezierTetra_create_drop() {
let obj = vtkBezierTetra::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBezierTetra(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBezierTriangle(*mut core::ffi::c_void);
impl vtkBezierTriangle {
#[doc(alias = "vtkBezierTriangle")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBezierTriangle_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBezierTriangle_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBezierTriangle_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBezierTriangle_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBezierTriangle {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBezierTriangle {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBezierTriangle_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBezierTriangle_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBezierTriangle_create_drop() {
let obj = vtkBezierTriangle::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBezierTriangle(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBezierWedge(*mut core::ffi::c_void);
impl vtkBezierWedge {
#[doc(alias = "vtkBezierWedge")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBezierWedge_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBezierWedge_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBezierWedge_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBezierWedge_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBezierWedge {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBezierWedge {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBezierWedge_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBezierWedge_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBezierWedge_create_drop() {
let obj = vtkBezierWedge::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBezierWedge(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBiQuadraticQuad(*mut core::ffi::c_void);
impl vtkBiQuadraticQuad {
#[doc(alias = "vtkBiQuadraticQuad")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBiQuadraticQuad_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBiQuadraticQuad_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBiQuadraticQuad_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBiQuadraticQuad_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBiQuadraticQuad {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBiQuadraticQuad {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBiQuadraticQuad_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBiQuadraticQuad_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBiQuadraticQuad_create_drop() {
let obj = vtkBiQuadraticQuad::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBiQuadraticQuad(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBiQuadraticQuadraticHexahedron(*mut core::ffi::c_void);
impl vtkBiQuadraticQuadraticHexahedron {
#[doc(alias = "vtkBiQuadraticQuadraticHexahedron")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBiQuadraticQuadraticHexahedron_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBiQuadraticQuadraticHexahedron_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBiQuadraticQuadraticHexahedron_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBiQuadraticQuadraticHexahedron_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBiQuadraticQuadraticHexahedron {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBiQuadraticQuadraticHexahedron {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBiQuadraticQuadraticHexahedron_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkBiQuadraticQuadraticHexahedron_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBiQuadraticQuadraticHexahedron_create_drop() {
let obj = vtkBiQuadraticQuadraticHexahedron::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBiQuadraticQuadraticHexahedron(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBiQuadraticQuadraticWedge(*mut core::ffi::c_void);
impl vtkBiQuadraticQuadraticWedge {
#[doc(alias = "vtkBiQuadraticQuadraticWedge")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBiQuadraticQuadraticWedge_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBiQuadraticQuadraticWedge_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBiQuadraticQuadraticWedge_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBiQuadraticQuadraticWedge_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBiQuadraticQuadraticWedge {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBiQuadraticQuadraticWedge {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBiQuadraticQuadraticWedge_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBiQuadraticQuadraticWedge_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBiQuadraticQuadraticWedge_create_drop() {
let obj = vtkBiQuadraticQuadraticWedge::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBiQuadraticQuadraticWedge(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBiQuadraticTriangle(*mut core::ffi::c_void);
impl vtkBiQuadraticTriangle {
#[doc(alias = "vtkBiQuadraticTriangle")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBiQuadraticTriangle_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBiQuadraticTriangle_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBiQuadraticTriangle_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkBiQuadraticTriangle_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBiQuadraticTriangle {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBiQuadraticTriangle {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBiQuadraticTriangle_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBiQuadraticTriangle_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBiQuadraticTriangle_create_drop() {
let obj = vtkBiQuadraticTriangle::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBiQuadraticTriangle(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkBox(*mut core::ffi::c_void);
impl vtkBox {
#[doc(alias = "vtkBox")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkBox_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkBox_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkBox_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkBox_get_ptr(self.0) }
}
}
impl std::default::Default for vtkBox {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkBox {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkBox_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkBox_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkBox_create_drop() {
let obj = vtkBox::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkBox(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellArray(*mut core::ffi::c_void);
impl vtkCellArray {
#[doc(alias = "vtkCellArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellArray_create_drop() {
let obj = vtkCellArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellArrayIterator(*mut core::ffi::c_void);
impl vtkCellArrayIterator {
#[doc(alias = "vtkCellArrayIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellArrayIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellArrayIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellArrayIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellArrayIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellArrayIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellArrayIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellArrayIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellArrayIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellArrayIterator_create_drop() {
let obj = vtkCellArrayIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellArrayIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellAttribute(*mut core::ffi::c_void);
impl vtkCellAttribute {
#[doc(alias = "vtkCellAttribute")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellAttribute_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellAttribute_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellAttribute_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellAttribute_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellAttribute {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellAttribute {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellAttribute_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellAttribute_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellAttribute_create_drop() {
let obj = vtkCellAttribute::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellAttribute(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellAttributeCalculator(*mut core::ffi::c_void);
impl vtkCellAttributeCalculator {
#[doc(alias = "vtkCellAttributeCalculator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellAttributeCalculator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellAttributeCalculator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellAttributeCalculator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellAttributeCalculator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellAttributeCalculator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellAttributeCalculator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellAttributeCalculator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellAttributeCalculator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellAttributeCalculator_create_drop() {
let obj = vtkCellAttributeCalculator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellAttributeCalculator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellData(*mut core::ffi::c_void);
impl vtkCellData {
#[doc(alias = "vtkCellData")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellData_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellData_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellData_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellData_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellData {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellData {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellData_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellData_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellData_create_drop() {
let obj = vtkCellData::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellData(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGrid(*mut core::ffi::c_void);
impl vtkCellGrid {
#[doc(alias = "vtkCellGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGrid_create_drop() {
let obj = vtkCellGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGridBoundsQuery(*mut core::ffi::c_void);
impl vtkCellGridBoundsQuery {
#[doc(alias = "vtkCellGridBoundsQuery")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGridBoundsQuery_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGridBoundsQuery_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGridBoundsQuery_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGridBoundsQuery_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGridBoundsQuery {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGridBoundsQuery {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGridBoundsQuery_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGridBoundsQuery_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGridBoundsQuery_create_drop() {
let obj = vtkCellGridBoundsQuery::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGridBoundsQuery(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGridCopyQuery(*mut core::ffi::c_void);
impl vtkCellGridCopyQuery {
#[doc(alias = "vtkCellGridCopyQuery")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGridCopyQuery_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGridCopyQuery_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGridCopyQuery_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGridCopyQuery_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGridCopyQuery {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGridCopyQuery {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGridCopyQuery_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGridCopyQuery_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGridCopyQuery_create_drop() {
let obj = vtkCellGridCopyQuery::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGridCopyQuery(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGridEvaluator(*mut core::ffi::c_void);
impl vtkCellGridEvaluator {
#[doc(alias = "vtkCellGridEvaluator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGridEvaluator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGridEvaluator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGridEvaluator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGridEvaluator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGridEvaluator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGridEvaluator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGridEvaluator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGridEvaluator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGridEvaluator_create_drop() {
let obj = vtkCellGridEvaluator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGridEvaluator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGridRangeQuery(*mut core::ffi::c_void);
impl vtkCellGridRangeQuery {
#[doc(alias = "vtkCellGridRangeQuery")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGridRangeQuery_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGridRangeQuery_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGridRangeQuery_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGridRangeQuery_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGridRangeQuery {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGridRangeQuery {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGridRangeQuery_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGridRangeQuery_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGridRangeQuery_create_drop() {
let obj = vtkCellGridRangeQuery::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGridRangeQuery(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGridResponders(*mut core::ffi::c_void);
impl vtkCellGridResponders {
#[doc(alias = "vtkCellGridResponders")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGridResponders_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGridResponders_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGridResponders_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGridResponders_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGridResponders {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGridResponders {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGridResponders_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGridResponders_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGridResponders_create_drop() {
let obj = vtkCellGridResponders::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGridResponders(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGridSidesCache(*mut core::ffi::c_void);
impl vtkCellGridSidesCache {
#[doc(alias = "vtkCellGridSidesCache")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGridSidesCache_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGridSidesCache_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGridSidesCache_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGridSidesCache_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGridSidesCache {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGridSidesCache {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGridSidesCache_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGridSidesCache_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGridSidesCache_create_drop() {
let obj = vtkCellGridSidesCache::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGridSidesCache(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGridSidesQuery(*mut core::ffi::c_void);
impl vtkCellGridSidesQuery {
#[doc(alias = "vtkCellGridSidesQuery")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGridSidesQuery_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGridSidesQuery_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGridSidesQuery_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGridSidesQuery_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGridSidesQuery {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGridSidesQuery {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGridSidesQuery_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGridSidesQuery_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGridSidesQuery_create_drop() {
let obj = vtkCellGridSidesQuery::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGridSidesQuery(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellLinks(*mut core::ffi::c_void);
impl vtkCellLinks {
#[doc(alias = "vtkCellLinks")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellLinks_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellLinks_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellLinks_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellLinks_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellLinks {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellLinks {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellLinks_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellLinks_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellLinks_create_drop() {
let obj = vtkCellLinks::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellLinks(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellLocator(*mut core::ffi::c_void);
impl vtkCellLocator {
#[doc(alias = "vtkCellLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellLocator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellLocator_create_drop() {
let obj = vtkCellLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellLocatorStrategy(*mut core::ffi::c_void);
impl vtkCellLocatorStrategy {
#[doc(alias = "vtkCellLocatorStrategy")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellLocatorStrategy_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellLocatorStrategy_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellLocatorStrategy_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellLocatorStrategy_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellLocatorStrategy {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellLocatorStrategy {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellLocatorStrategy_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellLocatorStrategy_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellLocatorStrategy_create_drop() {
let obj = vtkCellLocatorStrategy::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellLocatorStrategy(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellTreeLocator(*mut core::ffi::c_void);
impl vtkCellTreeLocator {
#[doc(alias = "vtkCellTreeLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellTreeLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellTreeLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellTreeLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellTreeLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellTreeLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellTreeLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellTreeLocator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellTreeLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellTreeLocator_create_drop() {
let obj = vtkCellTreeLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellTreeLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellTypes(*mut core::ffi::c_void);
impl vtkCellTypes {
#[doc(alias = "vtkCellTypes")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellTypes_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellTypes_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellTypes_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellTypes_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellTypes {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellTypes {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellTypes_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellTypes_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellTypes_create_drop() {
let obj = vtkCellTypes::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellTypes(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkClosestNPointsStrategy(*mut core::ffi::c_void);
impl vtkClosestNPointsStrategy {
#[doc(alias = "vtkClosestNPointsStrategy")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkClosestNPointsStrategy_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkClosestNPointsStrategy_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkClosestNPointsStrategy_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkClosestNPointsStrategy_get_ptr(self.0) }
}
}
impl std::default::Default for vtkClosestNPointsStrategy {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkClosestNPointsStrategy {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkClosestNPointsStrategy_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkClosestNPointsStrategy_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkClosestNPointsStrategy_create_drop() {
let obj = vtkClosestNPointsStrategy::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkClosestNPointsStrategy(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkClosestPointStrategy(*mut core::ffi::c_void);
impl vtkClosestPointStrategy {
#[doc(alias = "vtkClosestPointStrategy")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkClosestPointStrategy_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkClosestPointStrategy_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkClosestPointStrategy_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkClosestPointStrategy_get_ptr(self.0) }
}
}
impl std::default::Default for vtkClosestPointStrategy {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkClosestPointStrategy {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkClosestPointStrategy_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkClosestPointStrategy_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkClosestPointStrategy_create_drop() {
let obj = vtkClosestPointStrategy::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkClosestPointStrategy(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCone(*mut core::ffi::c_void);
impl vtkCone {
#[doc(alias = "vtkCone")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCone_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCone_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCone_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkCone_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCone {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCone {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCone_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCone_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCone_create_drop() {
let obj = vtkCone::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCone(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkConvexPointSet(*mut core::ffi::c_void);
impl vtkConvexPointSet {
#[doc(alias = "vtkConvexPointSet")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkConvexPointSet_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkConvexPointSet_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkConvexPointSet_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkConvexPointSet_get_ptr(self.0) }
}
}
impl std::default::Default for vtkConvexPointSet {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkConvexPointSet {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkConvexPointSet_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkConvexPointSet_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkConvexPointSet_create_drop() {
let obj = vtkConvexPointSet::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkConvexPointSet(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCoordinateFrame(*mut core::ffi::c_void);
impl vtkCoordinateFrame {
#[doc(alias = "vtkCoordinateFrame")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCoordinateFrame_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCoordinateFrame_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCoordinateFrame_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCoordinateFrame_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCoordinateFrame {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCoordinateFrame {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCoordinateFrame_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCoordinateFrame_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCoordinateFrame_create_drop() {
let obj = vtkCoordinateFrame::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCoordinateFrame(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCubicLine(*mut core::ffi::c_void);
impl vtkCubicLine {
#[doc(alias = "vtkCubicLine")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCubicLine_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCubicLine_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCubicLine_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCubicLine_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCubicLine {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCubicLine {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCubicLine_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCubicLine_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCubicLine_create_drop() {
let obj = vtkCubicLine::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCubicLine(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCylinder(*mut core::ffi::c_void);
impl vtkCylinder {
#[doc(alias = "vtkCylinder")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCylinder_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCylinder_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCylinder_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCylinder_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCylinder {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCylinder {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCylinder_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCylinder_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCylinder_create_drop() {
let obj = vtkCylinder::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCylinder(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataAssembly(*mut core::ffi::c_void);
impl vtkDataAssembly {
#[doc(alias = "vtkDataAssembly")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataAssembly_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataAssembly_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataAssembly_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataAssembly_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataAssembly {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataAssembly {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataAssembly_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataAssembly_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataAssembly_create_drop() {
let obj = vtkDataAssembly::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataAssembly(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataAssemblyUtilities(*mut core::ffi::c_void);
impl vtkDataAssemblyUtilities {
#[doc(alias = "vtkDataAssemblyUtilities")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataAssemblyUtilities_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataAssemblyUtilities_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataAssemblyUtilities_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataAssemblyUtilities_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataAssemblyUtilities {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataAssemblyUtilities {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataAssemblyUtilities_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataAssemblyUtilities_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataAssemblyUtilities_create_drop() {
let obj = vtkDataAssemblyUtilities::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataAssemblyUtilities(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataObject(*mut core::ffi::c_void);
impl vtkDataObject {
#[doc(alias = "vtkDataObject")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataObject_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataObject_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataObject_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataObject_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataObject {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataObject {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataObject_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataObject_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataObject_create_drop() {
let obj = vtkDataObject::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataObject(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataObjectCollection(*mut core::ffi::c_void);
impl vtkDataObjectCollection {
#[doc(alias = "vtkDataObjectCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataObjectCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataObjectCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataObjectCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataObjectCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataObjectCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataObjectCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataObjectCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataObjectCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataObjectCollection_create_drop() {
let obj = vtkDataObjectCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataObjectCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataObjectTreeIterator(*mut core::ffi::c_void);
impl vtkDataObjectTreeIterator {
#[doc(alias = "vtkDataObjectTreeIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataObjectTreeIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataObjectTreeIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataObjectTreeIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataObjectTreeIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataObjectTreeIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataObjectTreeIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataObjectTreeIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataObjectTreeIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataObjectTreeIterator_create_drop() {
let obj = vtkDataObjectTreeIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataObjectTreeIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataObjectTypes(*mut core::ffi::c_void);
impl vtkDataObjectTypes {
#[doc(alias = "vtkDataObjectTypes")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataObjectTypes_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataObjectTypes_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataObjectTypes_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataObjectTypes_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataObjectTypes {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataObjectTypes {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataObjectTypes_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataObjectTypes_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataObjectTypes_create_drop() {
let obj = vtkDataObjectTypes::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataObjectTypes(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataSetAttributes(*mut core::ffi::c_void);
impl vtkDataSetAttributes {
#[doc(alias = "vtkDataSetAttributes")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataSetAttributes_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataSetAttributes_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataSetAttributes_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataSetAttributes_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataSetAttributes {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataSetAttributes {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataSetAttributes_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataSetAttributes_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataSetAttributes_create_drop() {
let obj = vtkDataSetAttributes::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataSetAttributes(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataSetCellIterator(*mut core::ffi::c_void);
impl vtkDataSetCellIterator {
#[doc(alias = "vtkDataSetCellIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataSetCellIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataSetCellIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataSetCellIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataSetCellIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataSetCellIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataSetCellIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataSetCellIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataSetCellIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataSetCellIterator_create_drop() {
let obj = vtkDataSetCellIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataSetCellIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataSetCollection(*mut core::ffi::c_void);
impl vtkDataSetCollection {
#[doc(alias = "vtkDataSetCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataSetCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataSetCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataSetCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataSetCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataSetCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataSetCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataSetCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataSetCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataSetCollection_create_drop() {
let obj = vtkDataSetCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataSetCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDirectedAcyclicGraph(*mut core::ffi::c_void);
impl vtkDirectedAcyclicGraph {
#[doc(alias = "vtkDirectedAcyclicGraph")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDirectedAcyclicGraph_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDirectedAcyclicGraph_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDirectedAcyclicGraph_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDirectedAcyclicGraph_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDirectedAcyclicGraph {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDirectedAcyclicGraph {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDirectedAcyclicGraph_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDirectedAcyclicGraph_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDirectedAcyclicGraph_create_drop() {
let obj = vtkDirectedAcyclicGraph::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDirectedAcyclicGraph(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDirectedGraph(*mut core::ffi::c_void);
impl vtkDirectedGraph {
#[doc(alias = "vtkDirectedGraph")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDirectedGraph_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDirectedGraph_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDirectedGraph_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDirectedGraph_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDirectedGraph {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDirectedGraph {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDirectedGraph_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDirectedGraph_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDirectedGraph_create_drop() {
let obj = vtkDirectedGraph::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDirectedGraph(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkEdgeListIterator(*mut core::ffi::c_void);
impl vtkEdgeListIterator {
#[doc(alias = "vtkEdgeListIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkEdgeListIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkEdgeListIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkEdgeListIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkEdgeListIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkEdgeListIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkEdgeListIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkEdgeListIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkEdgeListIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkEdgeListIterator_create_drop() {
let obj = vtkEdgeListIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkEdgeListIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkEdgeTable(*mut core::ffi::c_void);
impl vtkEdgeTable {
#[doc(alias = "vtkEdgeTable")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkEdgeTable_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkEdgeTable_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkEdgeTable_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkEdgeTable_get_ptr(self.0) }
}
}
impl std::default::Default for vtkEdgeTable {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkEdgeTable {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkEdgeTable_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkEdgeTable_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkEdgeTable_create_drop() {
let obj = vtkEdgeTable::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkEdgeTable(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkEmptyCell(*mut core::ffi::c_void);
impl vtkEmptyCell {
#[doc(alias = "vtkEmptyCell")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkEmptyCell_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkEmptyCell_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkEmptyCell_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkEmptyCell_get_ptr(self.0) }
}
}
impl std::default::Default for vtkEmptyCell {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkEmptyCell {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkEmptyCell_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkEmptyCell_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkEmptyCell_create_drop() {
let obj = vtkEmptyCell::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkEmptyCell(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkExplicitStructuredGrid(*mut core::ffi::c_void);
impl vtkExplicitStructuredGrid {
#[doc(alias = "vtkExplicitStructuredGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkExplicitStructuredGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkExplicitStructuredGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkExplicitStructuredGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkExplicitStructuredGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkExplicitStructuredGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkExplicitStructuredGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkExplicitStructuredGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkExplicitStructuredGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkExplicitStructuredGrid_create_drop() {
let obj = vtkExplicitStructuredGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkExplicitStructuredGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkExtractStructuredGridHelper(*mut core::ffi::c_void);
impl vtkExtractStructuredGridHelper {
#[doc(alias = "vtkExtractStructuredGridHelper")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkExtractStructuredGridHelper_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkExtractStructuredGridHelper_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkExtractStructuredGridHelper_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkExtractStructuredGridHelper_get_ptr(self.0) }
}
}
impl std::default::Default for vtkExtractStructuredGridHelper {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkExtractStructuredGridHelper {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkExtractStructuredGridHelper_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkExtractStructuredGridHelper_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkExtractStructuredGridHelper_create_drop() {
let obj = vtkExtractStructuredGridHelper::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkExtractStructuredGridHelper(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkFieldData(*mut core::ffi::c_void);
impl vtkFieldData {
#[doc(alias = "vtkFieldData")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkFieldData_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkFieldData_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkFieldData_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkFieldData_get_ptr(self.0) }
}
}
impl std::default::Default for vtkFieldData {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkFieldData {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkFieldData_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkFieldData_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkFieldData_create_drop() {
let obj = vtkFieldData::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkFieldData(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGenericAttributeCollection(*mut core::ffi::c_void);
impl vtkGenericAttributeCollection {
#[doc(alias = "vtkGenericAttributeCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGenericAttributeCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGenericAttributeCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGenericAttributeCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGenericAttributeCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGenericAttributeCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGenericAttributeCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGenericAttributeCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkGenericAttributeCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGenericAttributeCollection_create_drop() {
let obj = vtkGenericAttributeCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGenericAttributeCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGenericCell(*mut core::ffi::c_void);
impl vtkGenericCell {
#[doc(alias = "vtkGenericCell")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGenericCell_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGenericCell_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGenericCell_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGenericCell_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGenericCell {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGenericCell {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGenericCell_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkGenericCell_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGenericCell_create_drop() {
let obj = vtkGenericCell::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGenericCell(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGenericEdgeTable(*mut core::ffi::c_void);
impl vtkGenericEdgeTable {
#[doc(alias = "vtkGenericEdgeTable")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGenericEdgeTable_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGenericEdgeTable_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGenericEdgeTable_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGenericEdgeTable_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGenericEdgeTable {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGenericEdgeTable {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGenericEdgeTable_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkGenericEdgeTable_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGenericEdgeTable_create_drop() {
let obj = vtkGenericEdgeTable::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGenericEdgeTable(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGenericInterpolatedVelocityField(*mut core::ffi::c_void);
impl vtkGenericInterpolatedVelocityField {
#[doc(alias = "vtkGenericInterpolatedVelocityField")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGenericInterpolatedVelocityField_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGenericInterpolatedVelocityField_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGenericInterpolatedVelocityField_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGenericInterpolatedVelocityField_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGenericInterpolatedVelocityField {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGenericInterpolatedVelocityField {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGenericInterpolatedVelocityField_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkGenericInterpolatedVelocityField_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGenericInterpolatedVelocityField_create_drop() {
let obj = vtkGenericInterpolatedVelocityField::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGenericInterpolatedVelocityField(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGeometricErrorMetric(*mut core::ffi::c_void);
impl vtkGeometricErrorMetric {
#[doc(alias = "vtkGeometricErrorMetric")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGeometricErrorMetric_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGeometricErrorMetric_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGeometricErrorMetric_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGeometricErrorMetric_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGeometricErrorMetric {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGeometricErrorMetric {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGeometricErrorMetric_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkGeometricErrorMetric_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGeometricErrorMetric_create_drop() {
let obj = vtkGeometricErrorMetric::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGeometricErrorMetric(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGraphEdge(*mut core::ffi::c_void);
impl vtkGraphEdge {
#[doc(alias = "vtkGraphEdge")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGraphEdge_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGraphEdge_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGraphEdge_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGraphEdge_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGraphEdge {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGraphEdge {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGraphEdge_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkGraphEdge_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGraphEdge_create_drop() {
let obj = vtkGraphEdge::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGraphEdge(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGraphInternals(*mut core::ffi::c_void);
impl vtkGraphInternals {
#[doc(alias = "vtkGraphInternals")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGraphInternals_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGraphInternals_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGraphInternals_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGraphInternals_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGraphInternals {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGraphInternals {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGraphInternals_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkGraphInternals_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGraphInternals_create_drop() {
let obj = vtkGraphInternals::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGraphInternals(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHexagonalPrism(*mut core::ffi::c_void);
impl vtkHexagonalPrism {
#[doc(alias = "vtkHexagonalPrism")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHexagonalPrism_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHexagonalPrism_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHexagonalPrism_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHexagonalPrism_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHexagonalPrism {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHexagonalPrism {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHexagonalPrism_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkHexagonalPrism_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHexagonalPrism_create_drop() {
let obj = vtkHexagonalPrism::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHexagonalPrism(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHexahedron(*mut core::ffi::c_void);
impl vtkHexahedron {
#[doc(alias = "vtkHexahedron")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHexahedron_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHexahedron_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHexahedron_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHexahedron_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHexahedron {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHexahedron {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHexahedron_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkHexahedron_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHexahedron_create_drop() {
let obj = vtkHexahedron::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHexahedron(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHierarchicalBoxDataSet(*mut core::ffi::c_void);
impl vtkHierarchicalBoxDataSet {
#[doc(alias = "vtkHierarchicalBoxDataSet")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHierarchicalBoxDataSet_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHierarchicalBoxDataSet_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHierarchicalBoxDataSet_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHierarchicalBoxDataSet_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHierarchicalBoxDataSet {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHierarchicalBoxDataSet {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHierarchicalBoxDataSet_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkHierarchicalBoxDataSet_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHierarchicalBoxDataSet_create_drop() {
let obj = vtkHierarchicalBoxDataSet::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHierarchicalBoxDataSet(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGrid(*mut core::ffi::c_void);
impl vtkHyperTreeGrid {
#[doc(alias = "vtkHyperTreeGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkHyperTreeGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGrid_create_drop() {
let obj = vtkHyperTreeGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridGeometricLocator(*mut core::ffi::c_void);
impl vtkHyperTreeGridGeometricLocator {
#[doc(alias = "vtkHyperTreeGridGeometricLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridGeometricLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridGeometricLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridGeometricLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridGeometricLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridGeometricLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridGeometricLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridGeometricLocator_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHyperTreeGridGeometricLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridGeometricLocator_create_drop() {
let obj = vtkHyperTreeGridGeometricLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridGeometricLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridNonOrientedCursor(*mut core::ffi::c_void);
impl vtkHyperTreeGridNonOrientedCursor {
#[doc(alias = "vtkHyperTreeGridNonOrientedCursor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedCursor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridNonOrientedCursor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedCursor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridNonOrientedCursor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridNonOrientedCursor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridNonOrientedCursor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedCursor_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHyperTreeGridNonOrientedCursor_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridNonOrientedCursor_create_drop() {
let obj = vtkHyperTreeGridNonOrientedCursor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridNonOrientedCursor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridNonOrientedGeometryCursor(*mut core::ffi::c_void);
impl vtkHyperTreeGridNonOrientedGeometryCursor {
#[doc(alias = "vtkHyperTreeGridNonOrientedGeometryCursor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedGeometryCursor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridNonOrientedGeometryCursor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedGeometryCursor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridNonOrientedGeometryCursor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridNonOrientedGeometryCursor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridNonOrientedGeometryCursor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedGeometryCursor_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHyperTreeGridNonOrientedGeometryCursor_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridNonOrientedGeometryCursor_create_drop() {
let obj = vtkHyperTreeGridNonOrientedGeometryCursor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridNonOrientedGeometryCursor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridNonOrientedMooreSuperCursor(*mut core::ffi::c_void);
impl vtkHyperTreeGridNonOrientedMooreSuperCursor {
#[doc(alias = "vtkHyperTreeGridNonOrientedMooreSuperCursor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedMooreSuperCursor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridNonOrientedMooreSuperCursor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedMooreSuperCursor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridNonOrientedMooreSuperCursor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridNonOrientedMooreSuperCursor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridNonOrientedMooreSuperCursor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedMooreSuperCursor_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHyperTreeGridNonOrientedMooreSuperCursor_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridNonOrientedMooreSuperCursor_create_drop() {
let obj = vtkHyperTreeGridNonOrientedMooreSuperCursor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridNonOrientedMooreSuperCursor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridNonOrientedMooreSuperCursorLight(*mut core::ffi::c_void);
impl vtkHyperTreeGridNonOrientedMooreSuperCursorLight {
#[doc(alias = "vtkHyperTreeGridNonOrientedMooreSuperCursorLight")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedMooreSuperCursorLight_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridNonOrientedMooreSuperCursorLight_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedMooreSuperCursorLight_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridNonOrientedMooreSuperCursorLight_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridNonOrientedMooreSuperCursorLight {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridNonOrientedMooreSuperCursorLight {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedMooreSuperCursorLight_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHyperTreeGridNonOrientedMooreSuperCursorLight_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridNonOrientedMooreSuperCursorLight_create_drop() {
let obj = vtkHyperTreeGridNonOrientedMooreSuperCursorLight::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridNonOrientedMooreSuperCursorLight(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor(*mut core::ffi::c_void);
impl vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor {
#[doc(alias = "vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor_create_drop() {
let obj = vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor(*mut core::ffi::c_void);
impl vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor {
#[doc(alias = "vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe {
vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor_destructor(self.0)
}
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor_create_drop() {
let obj = vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridNonOrientedUnlimitedMooreSuperCursor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridNonOrientedVonNeumannSuperCursor(*mut core::ffi::c_void);
impl vtkHyperTreeGridNonOrientedVonNeumannSuperCursor {
#[doc(alias = "vtkHyperTreeGridNonOrientedVonNeumannSuperCursor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedVonNeumannSuperCursor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridNonOrientedVonNeumannSuperCursor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedVonNeumannSuperCursor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridNonOrientedVonNeumannSuperCursor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridNonOrientedVonNeumannSuperCursor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridNonOrientedVonNeumannSuperCursor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedVonNeumannSuperCursor_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHyperTreeGridNonOrientedVonNeumannSuperCursor_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridNonOrientedVonNeumannSuperCursor_create_drop() {
let obj = vtkHyperTreeGridNonOrientedVonNeumannSuperCursor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridNonOrientedVonNeumannSuperCursor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight(*mut core::ffi::c_void);
impl vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight {
#[doc(alias = "vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight_new() -> *mut core::ffi::c_void;
}
Self(unsafe {
&mut *vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight_new()
})
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe {
vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight_destructor(self.0)
}
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight_create_drop() {
let obj = vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridNonOrientedVonNeumannSuperCursorLight(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridOrientedCursor(*mut core::ffi::c_void);
impl vtkHyperTreeGridOrientedCursor {
#[doc(alias = "vtkHyperTreeGridOrientedCursor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridOrientedCursor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridOrientedCursor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridOrientedCursor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridOrientedCursor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridOrientedCursor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridOrientedCursor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridOrientedCursor_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkHyperTreeGridOrientedCursor_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridOrientedCursor_create_drop() {
let obj = vtkHyperTreeGridOrientedCursor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridOrientedCursor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHyperTreeGridOrientedGeometryCursor(*mut core::ffi::c_void);
impl vtkHyperTreeGridOrientedGeometryCursor {
#[doc(alias = "vtkHyperTreeGridOrientedGeometryCursor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHyperTreeGridOrientedGeometryCursor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHyperTreeGridOrientedGeometryCursor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHyperTreeGridOrientedGeometryCursor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHyperTreeGridOrientedGeometryCursor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHyperTreeGridOrientedGeometryCursor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHyperTreeGridOrientedGeometryCursor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHyperTreeGridOrientedGeometryCursor_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHyperTreeGridOrientedGeometryCursor_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHyperTreeGridOrientedGeometryCursor_create_drop() {
let obj = vtkHyperTreeGridOrientedGeometryCursor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHyperTreeGridOrientedGeometryCursor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImageData(*mut core::ffi::c_void);
impl vtkImageData {
#[doc(alias = "vtkImageData")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImageData_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImageData_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImageData_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImageData_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImageData {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImageData {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImageData_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImageData_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImageData_create_drop() {
let obj = vtkImageData::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImageData(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImageTransform(*mut core::ffi::c_void);
impl vtkImageTransform {
#[doc(alias = "vtkImageTransform")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImageTransform_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImageTransform_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImageTransform_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImageTransform_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImageTransform {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImageTransform {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImageTransform_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImageTransform_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImageTransform_create_drop() {
let obj = vtkImageTransform::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImageTransform(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImplicitBoolean(*mut core::ffi::c_void);
impl vtkImplicitBoolean {
#[doc(alias = "vtkImplicitBoolean")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImplicitBoolean_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImplicitBoolean_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImplicitBoolean_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImplicitBoolean_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImplicitBoolean {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImplicitBoolean {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImplicitBoolean_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImplicitBoolean_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImplicitBoolean_create_drop() {
let obj = vtkImplicitBoolean::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImplicitBoolean(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImplicitDataSet(*mut core::ffi::c_void);
impl vtkImplicitDataSet {
#[doc(alias = "vtkImplicitDataSet")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImplicitDataSet_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImplicitDataSet_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImplicitDataSet_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImplicitDataSet_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImplicitDataSet {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImplicitDataSet {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImplicitDataSet_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImplicitDataSet_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImplicitDataSet_create_drop() {
let obj = vtkImplicitDataSet::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImplicitDataSet(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImplicitFunctionCollection(*mut core::ffi::c_void);
impl vtkImplicitFunctionCollection {
#[doc(alias = "vtkImplicitFunctionCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImplicitFunctionCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImplicitFunctionCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImplicitFunctionCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImplicitFunctionCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImplicitFunctionCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImplicitFunctionCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImplicitFunctionCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImplicitFunctionCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImplicitFunctionCollection_create_drop() {
let obj = vtkImplicitFunctionCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImplicitFunctionCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImplicitHalo(*mut core::ffi::c_void);
impl vtkImplicitHalo {
#[doc(alias = "vtkImplicitHalo")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImplicitHalo_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImplicitHalo_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImplicitHalo_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImplicitHalo_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImplicitHalo {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImplicitHalo {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImplicitHalo_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImplicitHalo_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImplicitHalo_create_drop() {
let obj = vtkImplicitHalo::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImplicitHalo(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImplicitSelectionLoop(*mut core::ffi::c_void);
impl vtkImplicitSelectionLoop {
#[doc(alias = "vtkImplicitSelectionLoop")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImplicitSelectionLoop_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImplicitSelectionLoop_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImplicitSelectionLoop_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImplicitSelectionLoop_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImplicitSelectionLoop {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImplicitSelectionLoop {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImplicitSelectionLoop_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImplicitSelectionLoop_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImplicitSelectionLoop_create_drop() {
let obj = vtkImplicitSelectionLoop::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImplicitSelectionLoop(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImplicitSum(*mut core::ffi::c_void);
impl vtkImplicitSum {
#[doc(alias = "vtkImplicitSum")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImplicitSum_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImplicitSum_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImplicitSum_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImplicitSum_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImplicitSum {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImplicitSum {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImplicitSum_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImplicitSum_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImplicitSum_create_drop() {
let obj = vtkImplicitSum::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImplicitSum(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImplicitVolume(*mut core::ffi::c_void);
impl vtkImplicitVolume {
#[doc(alias = "vtkImplicitVolume")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImplicitVolume_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImplicitVolume_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImplicitVolume_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImplicitVolume_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImplicitVolume {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImplicitVolume {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImplicitVolume_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImplicitVolume_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImplicitVolume_create_drop() {
let obj = vtkImplicitVolume::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImplicitVolume(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImplicitWindowFunction(*mut core::ffi::c_void);
impl vtkImplicitWindowFunction {
#[doc(alias = "vtkImplicitWindowFunction")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImplicitWindowFunction_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImplicitWindowFunction_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImplicitWindowFunction_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImplicitWindowFunction_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImplicitWindowFunction {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImplicitWindowFunction {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImplicitWindowFunction_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImplicitWindowFunction_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImplicitWindowFunction_create_drop() {
let obj = vtkImplicitWindowFunction::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImplicitWindowFunction(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkInEdgeIterator(*mut core::ffi::c_void);
impl vtkInEdgeIterator {
#[doc(alias = "vtkInEdgeIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkInEdgeIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkInEdgeIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkInEdgeIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkInEdgeIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkInEdgeIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkInEdgeIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkInEdgeIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkInEdgeIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkInEdgeIterator_create_drop() {
let obj = vtkInEdgeIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkInEdgeIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIncrementalOctreeNode(*mut core::ffi::c_void);
impl vtkIncrementalOctreeNode {
#[doc(alias = "vtkIncrementalOctreeNode")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIncrementalOctreeNode_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIncrementalOctreeNode_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIncrementalOctreeNode_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIncrementalOctreeNode_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIncrementalOctreeNode {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIncrementalOctreeNode {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIncrementalOctreeNode_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkIncrementalOctreeNode_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIncrementalOctreeNode_create_drop() {
let obj = vtkIncrementalOctreeNode::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIncrementalOctreeNode(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIncrementalOctreePointLocator(*mut core::ffi::c_void);
impl vtkIncrementalOctreePointLocator {
#[doc(alias = "vtkIncrementalOctreePointLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIncrementalOctreePointLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIncrementalOctreePointLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIncrementalOctreePointLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIncrementalOctreePointLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIncrementalOctreePointLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIncrementalOctreePointLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIncrementalOctreePointLocator_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkIncrementalOctreePointLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIncrementalOctreePointLocator_create_drop() {
let obj = vtkIncrementalOctreePointLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIncrementalOctreePointLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkIterativeClosestPointTransform(*mut core::ffi::c_void);
impl vtkIterativeClosestPointTransform {
#[doc(alias = "vtkIterativeClosestPointTransform")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkIterativeClosestPointTransform_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkIterativeClosestPointTransform_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkIterativeClosestPointTransform_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkIterativeClosestPointTransform_get_ptr(self.0) }
}
}
impl std::default::Default for vtkIterativeClosestPointTransform {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkIterativeClosestPointTransform {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkIterativeClosestPointTransform_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkIterativeClosestPointTransform_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkIterativeClosestPointTransform_create_drop() {
let obj = vtkIterativeClosestPointTransform::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkIterativeClosestPointTransform(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkKdNode(*mut core::ffi::c_void);
impl vtkKdNode {
#[doc(alias = "vtkKdNode")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkKdNode_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkKdNode_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkKdNode_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkKdNode_get_ptr(self.0) }
}
}
impl std::default::Default for vtkKdNode {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkKdNode {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkKdNode_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkKdNode_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkKdNode_create_drop() {
let obj = vtkKdNode::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkKdNode(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkKdTree(*mut core::ffi::c_void);
impl vtkKdTree {
#[doc(alias = "vtkKdTree")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkKdTree_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkKdTree_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkKdTree_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkKdTree_get_ptr(self.0) }
}
}
impl std::default::Default for vtkKdTree {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkKdTree {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkKdTree_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkKdTree_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkKdTree_create_drop() {
let obj = vtkKdTree::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkKdTree(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkKdTreePointLocator(*mut core::ffi::c_void);
impl vtkKdTreePointLocator {
#[doc(alias = "vtkKdTreePointLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkKdTreePointLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkKdTreePointLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkKdTreePointLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkKdTreePointLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkKdTreePointLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkKdTreePointLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkKdTreePointLocator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkKdTreePointLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkKdTreePointLocator_create_drop() {
let obj = vtkKdTreePointLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkKdTreePointLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLagrangeCurve(*mut core::ffi::c_void);
impl vtkLagrangeCurve {
#[doc(alias = "vtkLagrangeCurve")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLagrangeCurve_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLagrangeCurve_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLagrangeCurve_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLagrangeCurve_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLagrangeCurve {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLagrangeCurve {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLagrangeCurve_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLagrangeCurve_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLagrangeCurve_create_drop() {
let obj = vtkLagrangeCurve::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLagrangeCurve(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLagrangeHexahedron(*mut core::ffi::c_void);
impl vtkLagrangeHexahedron {
#[doc(alias = "vtkLagrangeHexahedron")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLagrangeHexahedron_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLagrangeHexahedron_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLagrangeHexahedron_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLagrangeHexahedron_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLagrangeHexahedron {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLagrangeHexahedron {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLagrangeHexahedron_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLagrangeHexahedron_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLagrangeHexahedron_create_drop() {
let obj = vtkLagrangeHexahedron::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLagrangeHexahedron(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLagrangeInterpolation(*mut core::ffi::c_void);
impl vtkLagrangeInterpolation {
#[doc(alias = "vtkLagrangeInterpolation")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLagrangeInterpolation_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLagrangeInterpolation_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLagrangeInterpolation_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLagrangeInterpolation_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLagrangeInterpolation {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLagrangeInterpolation {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLagrangeInterpolation_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLagrangeInterpolation_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLagrangeInterpolation_create_drop() {
let obj = vtkLagrangeInterpolation::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLagrangeInterpolation(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLagrangeQuadrilateral(*mut core::ffi::c_void);
impl vtkLagrangeQuadrilateral {
#[doc(alias = "vtkLagrangeQuadrilateral")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLagrangeQuadrilateral_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLagrangeQuadrilateral_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLagrangeQuadrilateral_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLagrangeQuadrilateral_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLagrangeQuadrilateral {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLagrangeQuadrilateral {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLagrangeQuadrilateral_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLagrangeQuadrilateral_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLagrangeQuadrilateral_create_drop() {
let obj = vtkLagrangeQuadrilateral::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLagrangeQuadrilateral(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLagrangeTetra(*mut core::ffi::c_void);
impl vtkLagrangeTetra {
#[doc(alias = "vtkLagrangeTetra")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLagrangeTetra_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLagrangeTetra_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLagrangeTetra_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLagrangeTetra_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLagrangeTetra {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLagrangeTetra {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLagrangeTetra_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLagrangeTetra_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLagrangeTetra_create_drop() {
let obj = vtkLagrangeTetra::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLagrangeTetra(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLagrangeTriangle(*mut core::ffi::c_void);
impl vtkLagrangeTriangle {
#[doc(alias = "vtkLagrangeTriangle")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLagrangeTriangle_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLagrangeTriangle_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLagrangeTriangle_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLagrangeTriangle_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLagrangeTriangle {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLagrangeTriangle {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLagrangeTriangle_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLagrangeTriangle_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLagrangeTriangle_create_drop() {
let obj = vtkLagrangeTriangle::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLagrangeTriangle(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLagrangeWedge(*mut core::ffi::c_void);
impl vtkLagrangeWedge {
#[doc(alias = "vtkLagrangeWedge")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLagrangeWedge_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLagrangeWedge_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLagrangeWedge_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkLagrangeWedge_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLagrangeWedge {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLagrangeWedge {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLagrangeWedge_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLagrangeWedge_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLagrangeWedge_create_drop() {
let obj = vtkLagrangeWedge::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLagrangeWedge(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkLine(*mut core::ffi::c_void);
impl vtkLine {
#[doc(alias = "vtkLine")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkLine_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkLine_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkLine_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkLine_get_ptr(self.0) }
}
}
impl std::default::Default for vtkLine {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkLine {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkLine_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkLine_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkLine_create_drop() {
let obj = vtkLine::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkLine(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMeanValueCoordinatesInterpolator(*mut core::ffi::c_void);
impl vtkMeanValueCoordinatesInterpolator {
#[doc(alias = "vtkMeanValueCoordinatesInterpolator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMeanValueCoordinatesInterpolator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMeanValueCoordinatesInterpolator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMeanValueCoordinatesInterpolator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMeanValueCoordinatesInterpolator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMeanValueCoordinatesInterpolator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMeanValueCoordinatesInterpolator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMeanValueCoordinatesInterpolator_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkMeanValueCoordinatesInterpolator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMeanValueCoordinatesInterpolator_create_drop() {
let obj = vtkMeanValueCoordinatesInterpolator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMeanValueCoordinatesInterpolator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMergePoints(*mut core::ffi::c_void);
impl vtkMergePoints {
#[doc(alias = "vtkMergePoints")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMergePoints_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMergePoints_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMergePoints_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMergePoints_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMergePoints {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMergePoints {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMergePoints_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMergePoints_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMergePoints_create_drop() {
let obj = vtkMergePoints::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMergePoints(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMolecule(*mut core::ffi::c_void);
impl vtkMolecule {
#[doc(alias = "vtkMolecule")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMolecule_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMolecule_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMolecule_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMolecule_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMolecule {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMolecule {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMolecule_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMolecule_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMolecule_create_drop() {
let obj = vtkMolecule::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMolecule(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMultiBlockDataSet(*mut core::ffi::c_void);
impl vtkMultiBlockDataSet {
#[doc(alias = "vtkMultiBlockDataSet")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMultiBlockDataSet_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMultiBlockDataSet_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMultiBlockDataSet_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMultiBlockDataSet_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMultiBlockDataSet {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMultiBlockDataSet {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMultiBlockDataSet_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMultiBlockDataSet_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMultiBlockDataSet_create_drop() {
let obj = vtkMultiBlockDataSet::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMultiBlockDataSet(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMultiPieceDataSet(*mut core::ffi::c_void);
impl vtkMultiPieceDataSet {
#[doc(alias = "vtkMultiPieceDataSet")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMultiPieceDataSet_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMultiPieceDataSet_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMultiPieceDataSet_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMultiPieceDataSet_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMultiPieceDataSet {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMultiPieceDataSet {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMultiPieceDataSet_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMultiPieceDataSet_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMultiPieceDataSet_create_drop() {
let obj = vtkMultiPieceDataSet::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMultiPieceDataSet(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMutableDirectedGraph(*mut core::ffi::c_void);
impl vtkMutableDirectedGraph {
#[doc(alias = "vtkMutableDirectedGraph")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMutableDirectedGraph_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMutableDirectedGraph_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMutableDirectedGraph_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMutableDirectedGraph_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMutableDirectedGraph {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMutableDirectedGraph {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMutableDirectedGraph_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMutableDirectedGraph_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMutableDirectedGraph_create_drop() {
let obj = vtkMutableDirectedGraph::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMutableDirectedGraph(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMutableUndirectedGraph(*mut core::ffi::c_void);
impl vtkMutableUndirectedGraph {
#[doc(alias = "vtkMutableUndirectedGraph")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMutableUndirectedGraph_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMutableUndirectedGraph_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMutableUndirectedGraph_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMutableUndirectedGraph_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMutableUndirectedGraph {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMutableUndirectedGraph {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMutableUndirectedGraph_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMutableUndirectedGraph_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMutableUndirectedGraph_create_drop() {
let obj = vtkMutableUndirectedGraph::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMutableUndirectedGraph(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkNonMergingPointLocator(*mut core::ffi::c_void);
impl vtkNonMergingPointLocator {
#[doc(alias = "vtkNonMergingPointLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkNonMergingPointLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkNonMergingPointLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkNonMergingPointLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkNonMergingPointLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkNonMergingPointLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkNonMergingPointLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkNonMergingPointLocator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkNonMergingPointLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkNonMergingPointLocator_create_drop() {
let obj = vtkNonMergingPointLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkNonMergingPointLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkNonOverlappingAMR(*mut core::ffi::c_void);
impl vtkNonOverlappingAMR {
#[doc(alias = "vtkNonOverlappingAMR")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkNonOverlappingAMR_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkNonOverlappingAMR_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkNonOverlappingAMR_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkNonOverlappingAMR_get_ptr(self.0) }
}
}
impl std::default::Default for vtkNonOverlappingAMR {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkNonOverlappingAMR {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkNonOverlappingAMR_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkNonOverlappingAMR_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkNonOverlappingAMR_create_drop() {
let obj = vtkNonOverlappingAMR::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkNonOverlappingAMR(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOctreePointLocator(*mut core::ffi::c_void);
impl vtkOctreePointLocator {
#[doc(alias = "vtkOctreePointLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOctreePointLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOctreePointLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOctreePointLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOctreePointLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOctreePointLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOctreePointLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOctreePointLocator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkOctreePointLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOctreePointLocator_create_drop() {
let obj = vtkOctreePointLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOctreePointLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOctreePointLocatorNode(*mut core::ffi::c_void);
impl vtkOctreePointLocatorNode {
#[doc(alias = "vtkOctreePointLocatorNode")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOctreePointLocatorNode_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOctreePointLocatorNode_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOctreePointLocatorNode_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOctreePointLocatorNode_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOctreePointLocatorNode {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOctreePointLocatorNode {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOctreePointLocatorNode_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkOctreePointLocatorNode_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOctreePointLocatorNode_create_drop() {
let obj = vtkOctreePointLocatorNode::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOctreePointLocatorNode(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOrderedTriangulator(*mut core::ffi::c_void);
impl vtkOrderedTriangulator {
#[doc(alias = "vtkOrderedTriangulator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOrderedTriangulator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOrderedTriangulator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOrderedTriangulator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOrderedTriangulator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOrderedTriangulator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOrderedTriangulator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOrderedTriangulator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkOrderedTriangulator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOrderedTriangulator_create_drop() {
let obj = vtkOrderedTriangulator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOrderedTriangulator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOutEdgeIterator(*mut core::ffi::c_void);
impl vtkOutEdgeIterator {
#[doc(alias = "vtkOutEdgeIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOutEdgeIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOutEdgeIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOutEdgeIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOutEdgeIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOutEdgeIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOutEdgeIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOutEdgeIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkOutEdgeIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOutEdgeIterator_create_drop() {
let obj = vtkOutEdgeIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOutEdgeIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOverlappingAMR(*mut core::ffi::c_void);
impl vtkOverlappingAMR {
#[doc(alias = "vtkOverlappingAMR")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOverlappingAMR_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOverlappingAMR_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOverlappingAMR_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOverlappingAMR_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOverlappingAMR {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOverlappingAMR {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOverlappingAMR_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkOverlappingAMR_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOverlappingAMR_create_drop() {
let obj = vtkOverlappingAMR::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOverlappingAMR(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPartitionedDataSet(*mut core::ffi::c_void);
impl vtkPartitionedDataSet {
#[doc(alias = "vtkPartitionedDataSet")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPartitionedDataSet_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPartitionedDataSet_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPartitionedDataSet_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPartitionedDataSet_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPartitionedDataSet {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPartitionedDataSet {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPartitionedDataSet_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPartitionedDataSet_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPartitionedDataSet_create_drop() {
let obj = vtkPartitionedDataSet::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPartitionedDataSet(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPartitionedDataSetCollection(*mut core::ffi::c_void);
impl vtkPartitionedDataSetCollection {
#[doc(alias = "vtkPartitionedDataSetCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPartitionedDataSetCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPartitionedDataSetCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPartitionedDataSetCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPartitionedDataSetCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPartitionedDataSetCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPartitionedDataSetCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPartitionedDataSetCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPartitionedDataSetCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPartitionedDataSetCollection_create_drop() {
let obj = vtkPartitionedDataSetCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPartitionedDataSetCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPath(*mut core::ffi::c_void);
impl vtkPath {
#[doc(alias = "vtkPath")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPath_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPath_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPath_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkPath_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPath {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPath {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPath_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPath_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPath_create_drop() {
let obj = vtkPath::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPath(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPentagonalPrism(*mut core::ffi::c_void);
impl vtkPentagonalPrism {
#[doc(alias = "vtkPentagonalPrism")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPentagonalPrism_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPentagonalPrism_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPentagonalPrism_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPentagonalPrism_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPentagonalPrism {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPentagonalPrism {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPentagonalPrism_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPentagonalPrism_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPentagonalPrism_create_drop() {
let obj = vtkPentagonalPrism::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPentagonalPrism(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPerlinNoise(*mut core::ffi::c_void);
impl vtkPerlinNoise {
#[doc(alias = "vtkPerlinNoise")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPerlinNoise_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPerlinNoise_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPerlinNoise_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPerlinNoise_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPerlinNoise {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPerlinNoise {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPerlinNoise_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPerlinNoise_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPerlinNoise_create_drop() {
let obj = vtkPerlinNoise::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPerlinNoise(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPiecewiseFunction(*mut core::ffi::c_void);
impl vtkPiecewiseFunction {
#[doc(alias = "vtkPiecewiseFunction")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPiecewiseFunction_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPiecewiseFunction_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPiecewiseFunction_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPiecewiseFunction_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPiecewiseFunction {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPiecewiseFunction {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPiecewiseFunction_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPiecewiseFunction_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPiecewiseFunction_create_drop() {
let obj = vtkPiecewiseFunction::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPiecewiseFunction(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPixel(*mut core::ffi::c_void);
impl vtkPixel {
#[doc(alias = "vtkPixel")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPixel_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPixel_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPixel_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkPixel_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPixel {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPixel {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPixel_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPixel_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPixel_create_drop() {
let obj = vtkPixel::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPixel(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPlane(*mut core::ffi::c_void);
impl vtkPlane {
#[doc(alias = "vtkPlane")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPlane_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPlane_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPlane_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkPlane_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPlane {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPlane {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPlane_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPlane_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPlane_create_drop() {
let obj = vtkPlane::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPlane(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPlaneCollection(*mut core::ffi::c_void);
impl vtkPlaneCollection {
#[doc(alias = "vtkPlaneCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPlaneCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPlaneCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPlaneCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPlaneCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPlaneCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPlaneCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPlaneCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPlaneCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPlaneCollection_create_drop() {
let obj = vtkPlaneCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPlaneCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPlanes(*mut core::ffi::c_void);
impl vtkPlanes {
#[doc(alias = "vtkPlanes")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPlanes_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPlanes_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPlanes_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPlanes_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPlanes {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPlanes {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPlanes_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPlanes_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPlanes_create_drop() {
let obj = vtkPlanes::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPlanes(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPlanesIntersection(*mut core::ffi::c_void);
impl vtkPlanesIntersection {
#[doc(alias = "vtkPlanesIntersection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPlanesIntersection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPlanesIntersection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPlanesIntersection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPlanesIntersection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPlanesIntersection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPlanesIntersection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPlanesIntersection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPlanesIntersection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPlanesIntersection_create_drop() {
let obj = vtkPlanesIntersection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPlanesIntersection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPointData(*mut core::ffi::c_void);
impl vtkPointData {
#[doc(alias = "vtkPointData")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPointData_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPointData_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPointData_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPointData_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPointData {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPointData {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPointData_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPointData_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPointData_create_drop() {
let obj = vtkPointData::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPointData(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPointLocator(*mut core::ffi::c_void);
impl vtkPointLocator {
#[doc(alias = "vtkPointLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPointLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPointLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPointLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPointLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPointLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPointLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPointLocator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPointLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPointLocator_create_drop() {
let obj = vtkPointLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPointLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPointSet(*mut core::ffi::c_void);
impl vtkPointSet {
#[doc(alias = "vtkPointSet")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPointSet_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPointSet_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPointSet_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPointSet_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPointSet {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPointSet {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPointSet_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPointSet_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPointSet_create_drop() {
let obj = vtkPointSet::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPointSet(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPointSetCellIterator(*mut core::ffi::c_void);
impl vtkPointSetCellIterator {
#[doc(alias = "vtkPointSetCellIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPointSetCellIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPointSetCellIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPointSetCellIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPointSetCellIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPointSetCellIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPointSetCellIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPointSetCellIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPointSetCellIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPointSetCellIterator_create_drop() {
let obj = vtkPointSetCellIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPointSetCellIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPointsProjectedHull(*mut core::ffi::c_void);
impl vtkPointsProjectedHull {
#[doc(alias = "vtkPointsProjectedHull")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPointsProjectedHull_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPointsProjectedHull_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPointsProjectedHull_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPointsProjectedHull_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPointsProjectedHull {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPointsProjectedHull {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPointsProjectedHull_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPointsProjectedHull_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPointsProjectedHull_create_drop() {
let obj = vtkPointsProjectedHull::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPointsProjectedHull(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolyData(*mut core::ffi::c_void);
impl vtkPolyData {
#[doc(alias = "vtkPolyData")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolyData_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolyData_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolyData_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolyData_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolyData {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolyData {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolyData_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolyData_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolyData_create_drop() {
let obj = vtkPolyData::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolyData(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolyDataCollection(*mut core::ffi::c_void);
impl vtkPolyDataCollection {
#[doc(alias = "vtkPolyDataCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolyDataCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolyDataCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolyDataCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolyDataCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolyDataCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolyDataCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolyDataCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolyDataCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolyDataCollection_create_drop() {
let obj = vtkPolyDataCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolyDataCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolyLine(*mut core::ffi::c_void);
impl vtkPolyLine {
#[doc(alias = "vtkPolyLine")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolyLine_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolyLine_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolyLine_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolyLine_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolyLine {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolyLine {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolyLine_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolyLine_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolyLine_create_drop() {
let obj = vtkPolyLine::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolyLine(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolyPlane(*mut core::ffi::c_void);
impl vtkPolyPlane {
#[doc(alias = "vtkPolyPlane")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolyPlane_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolyPlane_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolyPlane_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolyPlane_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolyPlane {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolyPlane {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolyPlane_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolyPlane_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolyPlane_create_drop() {
let obj = vtkPolyPlane::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolyPlane(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolyVertex(*mut core::ffi::c_void);
impl vtkPolyVertex {
#[doc(alias = "vtkPolyVertex")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolyVertex_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolyVertex_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolyVertex_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolyVertex_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolyVertex {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolyVertex {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolyVertex_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolyVertex_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolyVertex_create_drop() {
let obj = vtkPolyVertex::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolyVertex(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolygon(*mut core::ffi::c_void);
impl vtkPolygon {
#[doc(alias = "vtkPolygon")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolygon_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolygon_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolygon_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolygon_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolygon {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolygon {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolygon_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolygon_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolygon_create_drop() {
let obj = vtkPolygon::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolygon(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolyhedron(*mut core::ffi::c_void);
impl vtkPolyhedron {
#[doc(alias = "vtkPolyhedron")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolyhedron_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolyhedron_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolyhedron_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolyhedron_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolyhedron {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolyhedron {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolyhedron_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolyhedron_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolyhedron_create_drop() {
let obj = vtkPolyhedron::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolyhedron(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPyramid(*mut core::ffi::c_void);
impl vtkPyramid {
#[doc(alias = "vtkPyramid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPyramid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPyramid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPyramid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPyramid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPyramid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPyramid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPyramid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPyramid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPyramid_create_drop() {
let obj = vtkPyramid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPyramid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuad(*mut core::ffi::c_void);
impl vtkQuad {
#[doc(alias = "vtkQuad")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuad_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuad_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuad_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkQuad_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuad {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuad {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuad_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuad_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuad_create_drop() {
let obj = vtkQuad::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuad(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticEdge(*mut core::ffi::c_void);
impl vtkQuadraticEdge {
#[doc(alias = "vtkQuadraticEdge")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticEdge_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticEdge_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticEdge_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticEdge_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticEdge {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticEdge {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticEdge_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticEdge_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticEdge_create_drop() {
let obj = vtkQuadraticEdge::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticEdge(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticHexahedron(*mut core::ffi::c_void);
impl vtkQuadraticHexahedron {
#[doc(alias = "vtkQuadraticHexahedron")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticHexahedron_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticHexahedron_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticHexahedron_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticHexahedron_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticHexahedron {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticHexahedron {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticHexahedron_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticHexahedron_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticHexahedron_create_drop() {
let obj = vtkQuadraticHexahedron::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticHexahedron(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticLinearQuad(*mut core::ffi::c_void);
impl vtkQuadraticLinearQuad {
#[doc(alias = "vtkQuadraticLinearQuad")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticLinearQuad_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticLinearQuad_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticLinearQuad_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticLinearQuad_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticLinearQuad {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticLinearQuad {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticLinearQuad_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticLinearQuad_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticLinearQuad_create_drop() {
let obj = vtkQuadraticLinearQuad::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticLinearQuad(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticLinearWedge(*mut core::ffi::c_void);
impl vtkQuadraticLinearWedge {
#[doc(alias = "vtkQuadraticLinearWedge")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticLinearWedge_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticLinearWedge_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticLinearWedge_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticLinearWedge_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticLinearWedge {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticLinearWedge {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticLinearWedge_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticLinearWedge_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticLinearWedge_create_drop() {
let obj = vtkQuadraticLinearWedge::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticLinearWedge(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticPolygon(*mut core::ffi::c_void);
impl vtkQuadraticPolygon {
#[doc(alias = "vtkQuadraticPolygon")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticPolygon_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticPolygon_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticPolygon_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticPolygon_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticPolygon {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticPolygon {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticPolygon_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticPolygon_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticPolygon_create_drop() {
let obj = vtkQuadraticPolygon::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticPolygon(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticPyramid(*mut core::ffi::c_void);
impl vtkQuadraticPyramid {
#[doc(alias = "vtkQuadraticPyramid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticPyramid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticPyramid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticPyramid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticPyramid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticPyramid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticPyramid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticPyramid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticPyramid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticPyramid_create_drop() {
let obj = vtkQuadraticPyramid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticPyramid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticQuad(*mut core::ffi::c_void);
impl vtkQuadraticQuad {
#[doc(alias = "vtkQuadraticQuad")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticQuad_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticQuad_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticQuad_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticQuad_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticQuad {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticQuad {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticQuad_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticQuad_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticQuad_create_drop() {
let obj = vtkQuadraticQuad::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticQuad(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticTetra(*mut core::ffi::c_void);
impl vtkQuadraticTetra {
#[doc(alias = "vtkQuadraticTetra")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticTetra_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticTetra_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticTetra_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticTetra_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticTetra {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticTetra {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticTetra_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticTetra_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticTetra_create_drop() {
let obj = vtkQuadraticTetra::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticTetra(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticTriangle(*mut core::ffi::c_void);
impl vtkQuadraticTriangle {
#[doc(alias = "vtkQuadraticTriangle")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticTriangle_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticTriangle_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticTriangle_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticTriangle_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticTriangle {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticTriangle {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticTriangle_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticTriangle_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticTriangle_create_drop() {
let obj = vtkQuadraticTriangle::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticTriangle(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadraticWedge(*mut core::ffi::c_void);
impl vtkQuadraticWedge {
#[doc(alias = "vtkQuadraticWedge")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadraticWedge_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadraticWedge_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadraticWedge_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadraticWedge_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadraticWedge {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadraticWedge {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadraticWedge_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadraticWedge_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadraticWedge_create_drop() {
let obj = vtkQuadraticWedge::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadraticWedge(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadratureSchemeDefinition(*mut core::ffi::c_void);
impl vtkQuadratureSchemeDefinition {
#[doc(alias = "vtkQuadratureSchemeDefinition")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadratureSchemeDefinition_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadratureSchemeDefinition_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadratureSchemeDefinition_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadratureSchemeDefinition_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadratureSchemeDefinition {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadratureSchemeDefinition {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadratureSchemeDefinition_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadratureSchemeDefinition_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadratureSchemeDefinition_create_drop() {
let obj = vtkQuadratureSchemeDefinition::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadratureSchemeDefinition(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuadric(*mut core::ffi::c_void);
impl vtkQuadric {
#[doc(alias = "vtkQuadric")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuadric_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuadric_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuadric_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuadric_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuadric {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuadric {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuadric_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuadric_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuadric_create_drop() {
let obj = vtkQuadric::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuadric(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkRectilinearGrid(*mut core::ffi::c_void);
impl vtkRectilinearGrid {
#[doc(alias = "vtkRectilinearGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkRectilinearGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkRectilinearGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkRectilinearGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkRectilinearGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkRectilinearGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkRectilinearGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkRectilinearGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkRectilinearGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkRectilinearGrid_create_drop() {
let obj = vtkRectilinearGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkRectilinearGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkReebGraph(*mut core::ffi::c_void);
impl vtkReebGraph {
#[doc(alias = "vtkReebGraph")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkReebGraph_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkReebGraph_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkReebGraph_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkReebGraph_get_ptr(self.0) }
}
}
impl std::default::Default for vtkReebGraph {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkReebGraph {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkReebGraph_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkReebGraph_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkReebGraph_create_drop() {
let obj = vtkReebGraph::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkReebGraph(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkReebGraphSimplificationMetric(*mut core::ffi::c_void);
impl vtkReebGraphSimplificationMetric {
#[doc(alias = "vtkReebGraphSimplificationMetric")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkReebGraphSimplificationMetric_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkReebGraphSimplificationMetric_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkReebGraphSimplificationMetric_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkReebGraphSimplificationMetric_get_ptr(self.0) }
}
}
impl std::default::Default for vtkReebGraphSimplificationMetric {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkReebGraphSimplificationMetric {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkReebGraphSimplificationMetric_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkReebGraphSimplificationMetric_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkReebGraphSimplificationMetric_create_drop() {
let obj = vtkReebGraphSimplificationMetric::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkReebGraphSimplificationMetric(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSelection(*mut core::ffi::c_void);
impl vtkSelection {
#[doc(alias = "vtkSelection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSelection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSelection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSelection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSelection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSelection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSelection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSelection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSelection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSelection_create_drop() {
let obj = vtkSelection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSelection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSelectionNode(*mut core::ffi::c_void);
impl vtkSelectionNode {
#[doc(alias = "vtkSelectionNode")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSelectionNode_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSelectionNode_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSelectionNode_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSelectionNode_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSelectionNode {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSelectionNode {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSelectionNode_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSelectionNode_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSelectionNode_create_drop() {
let obj = vtkSelectionNode::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSelectionNode(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSimpleCellTessellator(*mut core::ffi::c_void);
impl vtkSimpleCellTessellator {
#[doc(alias = "vtkSimpleCellTessellator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSimpleCellTessellator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSimpleCellTessellator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSimpleCellTessellator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSimpleCellTessellator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSimpleCellTessellator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSimpleCellTessellator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSimpleCellTessellator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSimpleCellTessellator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSimpleCellTessellator_create_drop() {
let obj = vtkSimpleCellTessellator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSimpleCellTessellator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSmoothErrorMetric(*mut core::ffi::c_void);
impl vtkSmoothErrorMetric {
#[doc(alias = "vtkSmoothErrorMetric")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSmoothErrorMetric_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSmoothErrorMetric_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSmoothErrorMetric_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSmoothErrorMetric_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSmoothErrorMetric {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSmoothErrorMetric {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSmoothErrorMetric_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSmoothErrorMetric_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSmoothErrorMetric_create_drop() {
let obj = vtkSmoothErrorMetric::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSmoothErrorMetric(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSortFieldData(*mut core::ffi::c_void);
impl vtkSortFieldData {
#[doc(alias = "vtkSortFieldData")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSortFieldData_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSortFieldData_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSortFieldData_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSortFieldData_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSortFieldData {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSortFieldData {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSortFieldData_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSortFieldData_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSortFieldData_create_drop() {
let obj = vtkSortFieldData::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSortFieldData(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSphere(*mut core::ffi::c_void);
impl vtkSphere {
#[doc(alias = "vtkSphere")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSphere_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSphere_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSphere_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSphere_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSphere {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSphere {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSphere_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSphere_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSphere_create_drop() {
let obj = vtkSphere::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSphere(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSpheres(*mut core::ffi::c_void);
impl vtkSpheres {
#[doc(alias = "vtkSpheres")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSpheres_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSpheres_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSpheres_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSpheres_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSpheres {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSpheres {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSpheres_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSpheres_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSpheres_create_drop() {
let obj = vtkSpheres::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSpheres(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSphericalPointIterator(*mut core::ffi::c_void);
impl vtkSphericalPointIterator {
#[doc(alias = "vtkSphericalPointIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSphericalPointIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSphericalPointIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSphericalPointIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSphericalPointIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSphericalPointIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSphericalPointIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSphericalPointIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSphericalPointIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSphericalPointIterator_create_drop() {
let obj = vtkSphericalPointIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSphericalPointIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStaticCellLinks(*mut core::ffi::c_void);
impl vtkStaticCellLinks {
#[doc(alias = "vtkStaticCellLinks")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStaticCellLinks_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStaticCellLinks_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStaticCellLinks_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStaticCellLinks_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStaticCellLinks {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStaticCellLinks {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStaticCellLinks_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStaticCellLinks_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStaticCellLinks_create_drop() {
let obj = vtkStaticCellLinks::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStaticCellLinks(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStaticCellLocator(*mut core::ffi::c_void);
impl vtkStaticCellLocator {
#[doc(alias = "vtkStaticCellLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStaticCellLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStaticCellLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStaticCellLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStaticCellLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStaticCellLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStaticCellLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStaticCellLocator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStaticCellLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStaticCellLocator_create_drop() {
let obj = vtkStaticCellLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStaticCellLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStaticPointLocator(*mut core::ffi::c_void);
impl vtkStaticPointLocator {
#[doc(alias = "vtkStaticPointLocator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStaticPointLocator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStaticPointLocator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStaticPointLocator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStaticPointLocator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStaticPointLocator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStaticPointLocator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStaticPointLocator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStaticPointLocator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStaticPointLocator_create_drop() {
let obj = vtkStaticPointLocator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStaticPointLocator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStaticPointLocator2D(*mut core::ffi::c_void);
impl vtkStaticPointLocator2D {
#[doc(alias = "vtkStaticPointLocator2D")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStaticPointLocator2D_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStaticPointLocator2D_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStaticPointLocator2D_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStaticPointLocator2D_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStaticPointLocator2D {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStaticPointLocator2D {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStaticPointLocator2D_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStaticPointLocator2D_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStaticPointLocator2D_create_drop() {
let obj = vtkStaticPointLocator2D::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStaticPointLocator2D(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStructuredCellArray(*mut core::ffi::c_void);
impl vtkStructuredCellArray {
#[doc(alias = "vtkStructuredCellArray")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStructuredCellArray_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStructuredCellArray_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStructuredCellArray_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStructuredCellArray_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStructuredCellArray {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStructuredCellArray {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStructuredCellArray_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStructuredCellArray_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStructuredCellArray_create_drop() {
let obj = vtkStructuredCellArray::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStructuredCellArray(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStructuredExtent(*mut core::ffi::c_void);
impl vtkStructuredExtent {
#[doc(alias = "vtkStructuredExtent")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStructuredExtent_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStructuredExtent_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStructuredExtent_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStructuredExtent_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStructuredExtent {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStructuredExtent {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStructuredExtent_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStructuredExtent_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStructuredExtent_create_drop() {
let obj = vtkStructuredExtent::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStructuredExtent(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStructuredGrid(*mut core::ffi::c_void);
impl vtkStructuredGrid {
#[doc(alias = "vtkStructuredGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStructuredGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStructuredGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStructuredGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStructuredGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStructuredGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStructuredGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStructuredGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStructuredGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStructuredGrid_create_drop() {
let obj = vtkStructuredGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStructuredGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStructuredPoints(*mut core::ffi::c_void);
impl vtkStructuredPoints {
#[doc(alias = "vtkStructuredPoints")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStructuredPoints_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStructuredPoints_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStructuredPoints_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStructuredPoints_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStructuredPoints {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStructuredPoints {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStructuredPoints_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStructuredPoints_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStructuredPoints_create_drop() {
let obj = vtkStructuredPoints::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStructuredPoints(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStructuredPointsCollection(*mut core::ffi::c_void);
impl vtkStructuredPointsCollection {
#[doc(alias = "vtkStructuredPointsCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStructuredPointsCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStructuredPointsCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStructuredPointsCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStructuredPointsCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStructuredPointsCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStructuredPointsCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStructuredPointsCollection_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStructuredPointsCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStructuredPointsCollection_create_drop() {
let obj = vtkStructuredPointsCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStructuredPointsCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSuperquadric(*mut core::ffi::c_void);
impl vtkSuperquadric {
#[doc(alias = "vtkSuperquadric")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSuperquadric_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSuperquadric_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSuperquadric_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSuperquadric_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSuperquadric {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSuperquadric {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSuperquadric_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSuperquadric_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSuperquadric_create_drop() {
let obj = vtkSuperquadric::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSuperquadric(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTable(*mut core::ffi::c_void);
impl vtkTable {
#[doc(alias = "vtkTable")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTable_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTable_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTable_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkTable_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTable {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTable {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTable_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTable_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTable_create_drop() {
let obj = vtkTable::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTable(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTetra(*mut core::ffi::c_void);
impl vtkTetra {
#[doc(alias = "vtkTetra")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTetra_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTetra_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTetra_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkTetra_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTetra {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTetra {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTetra_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTetra_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTetra_create_drop() {
let obj = vtkTetra::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTetra(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTree(*mut core::ffi::c_void);
impl vtkTree {
#[doc(alias = "vtkTree")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTree_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTree_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTree_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkTree_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTree {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTree {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTree_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTree_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTree_create_drop() {
let obj = vtkTree::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTree(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTreeBFSIterator(*mut core::ffi::c_void);
impl vtkTreeBFSIterator {
#[doc(alias = "vtkTreeBFSIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTreeBFSIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTreeBFSIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTreeBFSIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTreeBFSIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTreeBFSIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTreeBFSIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTreeBFSIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTreeBFSIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTreeBFSIterator_create_drop() {
let obj = vtkTreeBFSIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTreeBFSIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTreeDFSIterator(*mut core::ffi::c_void);
impl vtkTreeDFSIterator {
#[doc(alias = "vtkTreeDFSIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTreeDFSIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTreeDFSIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTreeDFSIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTreeDFSIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTreeDFSIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTreeDFSIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTreeDFSIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTreeDFSIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTreeDFSIterator_create_drop() {
let obj = vtkTreeDFSIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTreeDFSIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTriQuadraticHexahedron(*mut core::ffi::c_void);
impl vtkTriQuadraticHexahedron {
#[doc(alias = "vtkTriQuadraticHexahedron")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTriQuadraticHexahedron_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTriQuadraticHexahedron_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTriQuadraticHexahedron_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTriQuadraticHexahedron_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTriQuadraticHexahedron {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTriQuadraticHexahedron {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTriQuadraticHexahedron_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTriQuadraticHexahedron_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTriQuadraticHexahedron_create_drop() {
let obj = vtkTriQuadraticHexahedron::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTriQuadraticHexahedron(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTriQuadraticPyramid(*mut core::ffi::c_void);
impl vtkTriQuadraticPyramid {
#[doc(alias = "vtkTriQuadraticPyramid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTriQuadraticPyramid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTriQuadraticPyramid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTriQuadraticPyramid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTriQuadraticPyramid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTriQuadraticPyramid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTriQuadraticPyramid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTriQuadraticPyramid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTriQuadraticPyramid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTriQuadraticPyramid_create_drop() {
let obj = vtkTriQuadraticPyramid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTriQuadraticPyramid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTriangle(*mut core::ffi::c_void);
impl vtkTriangle {
#[doc(alias = "vtkTriangle")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTriangle_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTriangle_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTriangle_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTriangle_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTriangle {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTriangle {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTriangle_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTriangle_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTriangle_create_drop() {
let obj = vtkTriangle::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTriangle(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTriangleStrip(*mut core::ffi::c_void);
impl vtkTriangleStrip {
#[doc(alias = "vtkTriangleStrip")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTriangleStrip_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTriangleStrip_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTriangleStrip_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTriangleStrip_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTriangleStrip {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTriangleStrip {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTriangleStrip_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTriangleStrip_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTriangleStrip_create_drop() {
let obj = vtkTriangleStrip::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTriangleStrip(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUndirectedGraph(*mut core::ffi::c_void);
impl vtkUndirectedGraph {
#[doc(alias = "vtkUndirectedGraph")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUndirectedGraph_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUndirectedGraph_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUndirectedGraph_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUndirectedGraph_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUndirectedGraph {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUndirectedGraph {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUndirectedGraph_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUndirectedGraph_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUndirectedGraph_create_drop() {
let obj = vtkUndirectedGraph::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUndirectedGraph(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUniformGrid(*mut core::ffi::c_void);
impl vtkUniformGrid {
#[doc(alias = "vtkUniformGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUniformGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUniformGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUniformGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUniformGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUniformGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUniformGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUniformGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUniformGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUniformGrid_create_drop() {
let obj = vtkUniformGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUniformGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUniformGridAMR(*mut core::ffi::c_void);
impl vtkUniformGridAMR {
#[doc(alias = "vtkUniformGridAMR")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUniformGridAMR_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUniformGridAMR_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUniformGridAMR_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUniformGridAMR_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUniformGridAMR {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUniformGridAMR {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUniformGridAMR_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUniformGridAMR_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUniformGridAMR_create_drop() {
let obj = vtkUniformGridAMR::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUniformGridAMR(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUniformGridAMRDataIterator(*mut core::ffi::c_void);
impl vtkUniformGridAMRDataIterator {
#[doc(alias = "vtkUniformGridAMRDataIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUniformGridAMRDataIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUniformGridAMRDataIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUniformGridAMRDataIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUniformGridAMRDataIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUniformGridAMRDataIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUniformGridAMRDataIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUniformGridAMRDataIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUniformGridAMRDataIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUniformGridAMRDataIterator_create_drop() {
let obj = vtkUniformGridAMRDataIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUniformGridAMRDataIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUniformHyperTreeGrid(*mut core::ffi::c_void);
impl vtkUniformHyperTreeGrid {
#[doc(alias = "vtkUniformHyperTreeGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUniformHyperTreeGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUniformHyperTreeGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUniformHyperTreeGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUniformHyperTreeGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUniformHyperTreeGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUniformHyperTreeGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUniformHyperTreeGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUniformHyperTreeGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUniformHyperTreeGrid_create_drop() {
let obj = vtkUniformHyperTreeGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUniformHyperTreeGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnstructuredGrid(*mut core::ffi::c_void);
impl vtkUnstructuredGrid {
#[doc(alias = "vtkUnstructuredGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnstructuredGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnstructuredGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnstructuredGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnstructuredGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnstructuredGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnstructuredGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnstructuredGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUnstructuredGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnstructuredGrid_create_drop() {
let obj = vtkUnstructuredGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnstructuredGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnstructuredGridCellIterator(*mut core::ffi::c_void);
impl vtkUnstructuredGridCellIterator {
#[doc(alias = "vtkUnstructuredGridCellIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnstructuredGridCellIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnstructuredGridCellIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnstructuredGridCellIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnstructuredGridCellIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnstructuredGridCellIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnstructuredGridCellIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnstructuredGridCellIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUnstructuredGridCellIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnstructuredGridCellIterator_create_drop() {
let obj = vtkUnstructuredGridCellIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnstructuredGridCellIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkVertex(*mut core::ffi::c_void);
impl vtkVertex {
#[doc(alias = "vtkVertex")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkVertex_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkVertex_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkVertex_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkVertex_get_ptr(self.0) }
}
}
impl std::default::Default for vtkVertex {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkVertex {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkVertex_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkVertex_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkVertex_create_drop() {
let obj = vtkVertex::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkVertex(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkVertexListIterator(*mut core::ffi::c_void);
impl vtkVertexListIterator {
#[doc(alias = "vtkVertexListIterator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkVertexListIterator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkVertexListIterator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkVertexListIterator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkVertexListIterator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkVertexListIterator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkVertexListIterator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkVertexListIterator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkVertexListIterator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkVertexListIterator_create_drop() {
let obj = vtkVertexListIterator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkVertexListIterator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkVoxel(*mut core::ffi::c_void);
impl vtkVoxel {
#[doc(alias = "vtkVoxel")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkVoxel_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkVoxel_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkVoxel_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkVoxel_get_ptr(self.0) }
}
}
impl std::default::Default for vtkVoxel {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkVoxel {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkVoxel_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkVoxel_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkVoxel_create_drop() {
let obj = vtkVoxel::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkVoxel(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkWedge(*mut core::ffi::c_void);
impl vtkWedge {
#[doc(alias = "vtkWedge")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkWedge_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkWedge_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkWedge_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkWedge_get_ptr(self.0) }
}
}
impl std::default::Default for vtkWedge {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkWedge {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkWedge_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkWedge_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkWedge_create_drop() {
let obj = vtkWedge::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkWedge(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkXMLDataElement(*mut core::ffi::c_void);
impl vtkXMLDataElement {
#[doc(alias = "vtkXMLDataElement")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkXMLDataElement_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkXMLDataElement_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkXMLDataElement_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkXMLDataElement_get_ptr(self.0) }
}
}
impl std::default::Default for vtkXMLDataElement {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkXMLDataElement {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkXMLDataElement_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkXMLDataElement_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkXMLDataElement_create_drop() {
let obj = vtkXMLDataElement::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkXMLDataElement(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}