#[allow(non_camel_case_types)]
pub struct vtkAmoebaMinimizer(*mut core::ffi::c_void);
impl vtkAmoebaMinimizer {
#[doc(alias = "vtkAmoebaMinimizer")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAmoebaMinimizer_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAmoebaMinimizer_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAmoebaMinimizer_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAmoebaMinimizer_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAmoebaMinimizer {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAmoebaMinimizer {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAmoebaMinimizer_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAmoebaMinimizer_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAmoebaMinimizer_create_drop() {
let obj = vtkAmoebaMinimizer::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAmoebaMinimizer(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkFFT(*mut core::ffi::c_void);
impl vtkFFT {
#[doc(alias = "vtkFFT")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkFFT_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkFFT_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkFFT_get_ptr(sself: *mut core::ffi::c_void) -> *mut core::ffi::c_void;
}
unsafe { vtkFFT_get_ptr(self.0) }
}
}
impl std::default::Default for vtkFFT {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkFFT {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkFFT_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkFFT_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkFFT_create_drop() {
let obj = vtkFFT::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkFFT(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMatrix3x3(*mut core::ffi::c_void);
impl vtkMatrix3x3 {
#[doc(alias = "vtkMatrix3x3")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMatrix3x3_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMatrix3x3_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMatrix3x3_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMatrix3x3_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMatrix3x3 {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMatrix3x3 {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMatrix3x3_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMatrix3x3_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMatrix3x3_create_drop() {
let obj = vtkMatrix3x3::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMatrix3x3(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMatrix4x4(*mut core::ffi::c_void);
impl vtkMatrix4x4 {
#[doc(alias = "vtkMatrix4x4")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMatrix4x4_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMatrix4x4_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMatrix4x4_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMatrix4x4_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMatrix4x4 {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMatrix4x4 {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMatrix4x4_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMatrix4x4_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMatrix4x4_create_drop() {
let obj = vtkMatrix4x4::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMatrix4x4(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolynomialSolversUnivariate(*mut core::ffi::c_void);
impl vtkPolynomialSolversUnivariate {
#[doc(alias = "vtkPolynomialSolversUnivariate")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolynomialSolversUnivariate_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolynomialSolversUnivariate_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolynomialSolversUnivariate_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolynomialSolversUnivariate_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolynomialSolversUnivariate {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolynomialSolversUnivariate {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolynomialSolversUnivariate_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolynomialSolversUnivariate_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolynomialSolversUnivariate_create_drop() {
let obj = vtkPolynomialSolversUnivariate::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolynomialSolversUnivariate(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkQuaternionInterpolator(*mut core::ffi::c_void);
impl vtkQuaternionInterpolator {
#[doc(alias = "vtkQuaternionInterpolator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkQuaternionInterpolator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkQuaternionInterpolator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkQuaternionInterpolator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkQuaternionInterpolator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkQuaternionInterpolator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkQuaternionInterpolator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkQuaternionInterpolator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkQuaternionInterpolator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkQuaternionInterpolator_create_drop() {
let obj = vtkQuaternionInterpolator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkQuaternionInterpolator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkRungeKutta2(*mut core::ffi::c_void);
impl vtkRungeKutta2 {
#[doc(alias = "vtkRungeKutta2")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkRungeKutta2_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkRungeKutta2_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkRungeKutta2_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkRungeKutta2_get_ptr(self.0) }
}
}
impl std::default::Default for vtkRungeKutta2 {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkRungeKutta2 {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkRungeKutta2_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkRungeKutta2_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkRungeKutta2_create_drop() {
let obj = vtkRungeKutta2::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkRungeKutta2(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkRungeKutta4(*mut core::ffi::c_void);
impl vtkRungeKutta4 {
#[doc(alias = "vtkRungeKutta4")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkRungeKutta4_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkRungeKutta4_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkRungeKutta4_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkRungeKutta4_get_ptr(self.0) }
}
}
impl std::default::Default for vtkRungeKutta4 {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkRungeKutta4 {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkRungeKutta4_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkRungeKutta4_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkRungeKutta4_create_drop() {
let obj = vtkRungeKutta4::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkRungeKutta4(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkRungeKutta45(*mut core::ffi::c_void);
impl vtkRungeKutta45 {
#[doc(alias = "vtkRungeKutta45")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkRungeKutta45_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkRungeKutta45_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkRungeKutta45_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkRungeKutta45_get_ptr(self.0) }
}
}
impl std::default::Default for vtkRungeKutta45 {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkRungeKutta45 {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkRungeKutta45_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkRungeKutta45_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkRungeKutta45_create_drop() {
let obj = vtkRungeKutta45::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkRungeKutta45(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}