#[allow(non_camel_case_types)]
pub struct vtkAggregateToPartitionedDataSetCollection(*mut core::ffi::c_void);
impl vtkAggregateToPartitionedDataSetCollection {
#[doc(alias = "vtkAggregateToPartitionedDataSetCollection")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAggregateToPartitionedDataSetCollection_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAggregateToPartitionedDataSetCollection_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAggregateToPartitionedDataSetCollection_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAggregateToPartitionedDataSetCollection_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAggregateToPartitionedDataSetCollection {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAggregateToPartitionedDataSetCollection {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAggregateToPartitionedDataSetCollection_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkAggregateToPartitionedDataSetCollection_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAggregateToPartitionedDataSetCollection_create_drop() {
let obj = vtkAggregateToPartitionedDataSetCollection::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAggregateToPartitionedDataSetCollection(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAlgorithm(*mut core::ffi::c_void);
impl vtkAlgorithm {
#[doc(alias = "vtkAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAlgorithm_create_drop() {
let obj = vtkAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAlgorithmOutput(*mut core::ffi::c_void);
impl vtkAlgorithmOutput {
#[doc(alias = "vtkAlgorithmOutput")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAlgorithmOutput_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAlgorithmOutput_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAlgorithmOutput_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAlgorithmOutput_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAlgorithmOutput {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAlgorithmOutput {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAlgorithmOutput_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAlgorithmOutput_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAlgorithmOutput_create_drop() {
let obj = vtkAlgorithmOutput::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAlgorithmOutput(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkAnnotationLayersAlgorithm(*mut core::ffi::c_void);
impl vtkAnnotationLayersAlgorithm {
#[doc(alias = "vtkAnnotationLayersAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkAnnotationLayersAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkAnnotationLayersAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkAnnotationLayersAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkAnnotationLayersAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkAnnotationLayersAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkAnnotationLayersAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkAnnotationLayersAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkAnnotationLayersAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkAnnotationLayersAlgorithm_create_drop() {
let obj = vtkAnnotationLayersAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkAnnotationLayersAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkArrayDataAlgorithm(*mut core::ffi::c_void);
impl vtkArrayDataAlgorithm {
#[doc(alias = "vtkArrayDataAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkArrayDataAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkArrayDataAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkArrayDataAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkArrayDataAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkArrayDataAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkArrayDataAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkArrayDataAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkArrayDataAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkArrayDataAlgorithm_create_drop() {
let obj = vtkArrayDataAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkArrayDataAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCachedStreamingDemandDrivenPipeline(*mut core::ffi::c_void);
impl vtkCachedStreamingDemandDrivenPipeline {
#[doc(alias = "vtkCachedStreamingDemandDrivenPipeline")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCachedStreamingDemandDrivenPipeline_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCachedStreamingDemandDrivenPipeline_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCachedStreamingDemandDrivenPipeline_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCachedStreamingDemandDrivenPipeline_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCachedStreamingDemandDrivenPipeline {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCachedStreamingDemandDrivenPipeline {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCachedStreamingDemandDrivenPipeline_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkCachedStreamingDemandDrivenPipeline_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCachedStreamingDemandDrivenPipeline_create_drop() {
let obj = vtkCachedStreamingDemandDrivenPipeline::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCachedStreamingDemandDrivenPipeline(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCastToConcrete(*mut core::ffi::c_void);
impl vtkCastToConcrete {
#[doc(alias = "vtkCastToConcrete")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCastToConcrete_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCastToConcrete_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCastToConcrete_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCastToConcrete_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCastToConcrete {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCastToConcrete {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCastToConcrete_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCastToConcrete_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCastToConcrete_create_drop() {
let obj = vtkCastToConcrete::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCastToConcrete(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCellGridAlgorithm(*mut core::ffi::c_void);
impl vtkCellGridAlgorithm {
#[doc(alias = "vtkCellGridAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCellGridAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCellGridAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCellGridAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCellGridAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCellGridAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCellGridAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCellGridAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCellGridAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCellGridAlgorithm_create_drop() {
let obj = vtkCellGridAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCellGridAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeDataPipeline(*mut core::ffi::c_void);
impl vtkCompositeDataPipeline {
#[doc(alias = "vtkCompositeDataPipeline")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeDataPipeline_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeDataPipeline_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeDataPipeline_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeDataPipeline_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeDataPipeline {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeDataPipeline {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeDataPipeline_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeDataPipeline_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeDataPipeline_create_drop() {
let obj = vtkCompositeDataPipeline::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeDataPipeline(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkCompositeDataSetAlgorithm(*mut core::ffi::c_void);
impl vtkCompositeDataSetAlgorithm {
#[doc(alias = "vtkCompositeDataSetAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkCompositeDataSetAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkCompositeDataSetAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkCompositeDataSetAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkCompositeDataSetAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkCompositeDataSetAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkCompositeDataSetAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkCompositeDataSetAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkCompositeDataSetAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkCompositeDataSetAlgorithm_create_drop() {
let obj = vtkCompositeDataSetAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkCompositeDataSetAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataObjectAlgorithm(*mut core::ffi::c_void);
impl vtkDataObjectAlgorithm {
#[doc(alias = "vtkDataObjectAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataObjectAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataObjectAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataObjectAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataObjectAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataObjectAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataObjectAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataObjectAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataObjectAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataObjectAlgorithm_create_drop() {
let obj = vtkDataObjectAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataObjectAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDataSetAlgorithm(*mut core::ffi::c_void);
impl vtkDataSetAlgorithm {
#[doc(alias = "vtkDataSetAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDataSetAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDataSetAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDataSetAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDataSetAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDataSetAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDataSetAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDataSetAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDataSetAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDataSetAlgorithm_create_drop() {
let obj = vtkDataSetAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDataSetAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDemandDrivenPipeline(*mut core::ffi::c_void);
impl vtkDemandDrivenPipeline {
#[doc(alias = "vtkDemandDrivenPipeline")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDemandDrivenPipeline_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDemandDrivenPipeline_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDemandDrivenPipeline_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDemandDrivenPipeline_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDemandDrivenPipeline {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDemandDrivenPipeline {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDemandDrivenPipeline_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDemandDrivenPipeline_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDemandDrivenPipeline_create_drop() {
let obj = vtkDemandDrivenPipeline::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDemandDrivenPipeline(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkDirectedGraphAlgorithm(*mut core::ffi::c_void);
impl vtkDirectedGraphAlgorithm {
#[doc(alias = "vtkDirectedGraphAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkDirectedGraphAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkDirectedGraphAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkDirectedGraphAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkDirectedGraphAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkDirectedGraphAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkDirectedGraphAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkDirectedGraphAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkDirectedGraphAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkDirectedGraphAlgorithm_create_drop() {
let obj = vtkDirectedGraphAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkDirectedGraphAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkEndFor(*mut core::ffi::c_void);
impl vtkEndFor {
#[doc(alias = "vtkEndFor")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkEndFor_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkEndFor_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkEndFor_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkEndFor_get_ptr(self.0) }
}
}
impl std::default::Default for vtkEndFor {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkEndFor {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkEndFor_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkEndFor_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkEndFor_create_drop() {
let obj = vtkEndFor::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkEndFor(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkEnsembleSource(*mut core::ffi::c_void);
impl vtkEnsembleSource {
#[doc(alias = "vtkEnsembleSource")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkEnsembleSource_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkEnsembleSource_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkEnsembleSource_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkEnsembleSource_get_ptr(self.0) }
}
}
impl std::default::Default for vtkEnsembleSource {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkEnsembleSource {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkEnsembleSource_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkEnsembleSource_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkEnsembleSource_create_drop() {
let obj = vtkEnsembleSource::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkEnsembleSource(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkExplicitStructuredGridAlgorithm(*mut core::ffi::c_void);
impl vtkExplicitStructuredGridAlgorithm {
#[doc(alias = "vtkExplicitStructuredGridAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkExplicitStructuredGridAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkExplicitStructuredGridAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkExplicitStructuredGridAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkExplicitStructuredGridAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkExplicitStructuredGridAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkExplicitStructuredGridAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkExplicitStructuredGridAlgorithm_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkExplicitStructuredGridAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkExplicitStructuredGridAlgorithm_create_drop() {
let obj = vtkExplicitStructuredGridAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkExplicitStructuredGridAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkExtentRCBPartitioner(*mut core::ffi::c_void);
impl vtkExtentRCBPartitioner {
#[doc(alias = "vtkExtentRCBPartitioner")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkExtentRCBPartitioner_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkExtentRCBPartitioner_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkExtentRCBPartitioner_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkExtentRCBPartitioner_get_ptr(self.0) }
}
}
impl std::default::Default for vtkExtentRCBPartitioner {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkExtentRCBPartitioner {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkExtentRCBPartitioner_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkExtentRCBPartitioner_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkExtentRCBPartitioner_create_drop() {
let obj = vtkExtentRCBPartitioner::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkExtentRCBPartitioner(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkExtentSplitter(*mut core::ffi::c_void);
impl vtkExtentSplitter {
#[doc(alias = "vtkExtentSplitter")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkExtentSplitter_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkExtentSplitter_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkExtentSplitter_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkExtentSplitter_get_ptr(self.0) }
}
}
impl std::default::Default for vtkExtentSplitter {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkExtentSplitter {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkExtentSplitter_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkExtentSplitter_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkExtentSplitter_create_drop() {
let obj = vtkExtentSplitter::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkExtentSplitter(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkExtentTranslator(*mut core::ffi::c_void);
impl vtkExtentTranslator {
#[doc(alias = "vtkExtentTranslator")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkExtentTranslator_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkExtentTranslator_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkExtentTranslator_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkExtentTranslator_get_ptr(self.0) }
}
}
impl std::default::Default for vtkExtentTranslator {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkExtentTranslator {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkExtentTranslator_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkExtentTranslator_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkExtentTranslator_create_drop() {
let obj = vtkExtentTranslator::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkExtentTranslator(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkForEach(*mut core::ffi::c_void);
impl vtkForEach {
#[doc(alias = "vtkForEach")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkForEach_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkForEach_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkForEach_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkForEach_get_ptr(self.0) }
}
}
impl std::default::Default for vtkForEach {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkForEach {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkForEach_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkForEach_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkForEach_create_drop() {
let obj = vtkForEach::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkForEach(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkGraphAlgorithm(*mut core::ffi::c_void);
impl vtkGraphAlgorithm {
#[doc(alias = "vtkGraphAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkGraphAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkGraphAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkGraphAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkGraphAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkGraphAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkGraphAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkGraphAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkGraphAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkGraphAlgorithm_create_drop() {
let obj = vtkGraphAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkGraphAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkHierarchicalBoxDataSetAlgorithm(*mut core::ffi::c_void);
impl vtkHierarchicalBoxDataSetAlgorithm {
#[doc(alias = "vtkHierarchicalBoxDataSetAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkHierarchicalBoxDataSetAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkHierarchicalBoxDataSetAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkHierarchicalBoxDataSetAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkHierarchicalBoxDataSetAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkHierarchicalBoxDataSetAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkHierarchicalBoxDataSetAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkHierarchicalBoxDataSetAlgorithm_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkHierarchicalBoxDataSetAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkHierarchicalBoxDataSetAlgorithm_create_drop() {
let obj = vtkHierarchicalBoxDataSetAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkHierarchicalBoxDataSetAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImageToStructuredGrid(*mut core::ffi::c_void);
impl vtkImageToStructuredGrid {
#[doc(alias = "vtkImageToStructuredGrid")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImageToStructuredGrid_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImageToStructuredGrid_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImageToStructuredGrid_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImageToStructuredGrid_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImageToStructuredGrid {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImageToStructuredGrid {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImageToStructuredGrid_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImageToStructuredGrid_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImageToStructuredGrid_create_drop() {
let obj = vtkImageToStructuredGrid::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImageToStructuredGrid(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkImageToStructuredPoints(*mut core::ffi::c_void);
impl vtkImageToStructuredPoints {
#[doc(alias = "vtkImageToStructuredPoints")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkImageToStructuredPoints_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkImageToStructuredPoints_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkImageToStructuredPoints_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkImageToStructuredPoints_get_ptr(self.0) }
}
}
impl std::default::Default for vtkImageToStructuredPoints {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkImageToStructuredPoints {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkImageToStructuredPoints_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkImageToStructuredPoints_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkImageToStructuredPoints_create_drop() {
let obj = vtkImageToStructuredPoints::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkImageToStructuredPoints(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMoleculeAlgorithm(*mut core::ffi::c_void);
impl vtkMoleculeAlgorithm {
#[doc(alias = "vtkMoleculeAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMoleculeAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMoleculeAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMoleculeAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMoleculeAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMoleculeAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMoleculeAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMoleculeAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMoleculeAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMoleculeAlgorithm_create_drop() {
let obj = vtkMoleculeAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMoleculeAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMultiBlockDataSetAlgorithm(*mut core::ffi::c_void);
impl vtkMultiBlockDataSetAlgorithm {
#[doc(alias = "vtkMultiBlockDataSetAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMultiBlockDataSetAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMultiBlockDataSetAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMultiBlockDataSetAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMultiBlockDataSetAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMultiBlockDataSetAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMultiBlockDataSetAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMultiBlockDataSetAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMultiBlockDataSetAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMultiBlockDataSetAlgorithm_create_drop() {
let obj = vtkMultiBlockDataSetAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMultiBlockDataSetAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkMultiTimeStepAlgorithm(*mut core::ffi::c_void);
impl vtkMultiTimeStepAlgorithm {
#[doc(alias = "vtkMultiTimeStepAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkMultiTimeStepAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkMultiTimeStepAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkMultiTimeStepAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkMultiTimeStepAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkMultiTimeStepAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkMultiTimeStepAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkMultiTimeStepAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkMultiTimeStepAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkMultiTimeStepAlgorithm_create_drop() {
let obj = vtkMultiTimeStepAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkMultiTimeStepAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkNonOverlappingAMRAlgorithm(*mut core::ffi::c_void);
impl vtkNonOverlappingAMRAlgorithm {
#[doc(alias = "vtkNonOverlappingAMRAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkNonOverlappingAMRAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkNonOverlappingAMRAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkNonOverlappingAMRAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkNonOverlappingAMRAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkNonOverlappingAMRAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkNonOverlappingAMRAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkNonOverlappingAMRAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkNonOverlappingAMRAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkNonOverlappingAMRAlgorithm_create_drop() {
let obj = vtkNonOverlappingAMRAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkNonOverlappingAMRAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkOverlappingAMRAlgorithm(*mut core::ffi::c_void);
impl vtkOverlappingAMRAlgorithm {
#[doc(alias = "vtkOverlappingAMRAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkOverlappingAMRAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkOverlappingAMRAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkOverlappingAMRAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkOverlappingAMRAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkOverlappingAMRAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkOverlappingAMRAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkOverlappingAMRAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkOverlappingAMRAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkOverlappingAMRAlgorithm_create_drop() {
let obj = vtkOverlappingAMRAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkOverlappingAMRAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPassInputTypeAlgorithm(*mut core::ffi::c_void);
impl vtkPassInputTypeAlgorithm {
#[doc(alias = "vtkPassInputTypeAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPassInputTypeAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPassInputTypeAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPassInputTypeAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPassInputTypeAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPassInputTypeAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPassInputTypeAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPassInputTypeAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPassInputTypeAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPassInputTypeAlgorithm_create_drop() {
let obj = vtkPassInputTypeAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPassInputTypeAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPiecewiseFunctionAlgorithm(*mut core::ffi::c_void);
impl vtkPiecewiseFunctionAlgorithm {
#[doc(alias = "vtkPiecewiseFunctionAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPiecewiseFunctionAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPiecewiseFunctionAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPiecewiseFunctionAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPiecewiseFunctionAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPiecewiseFunctionAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPiecewiseFunctionAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPiecewiseFunctionAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPiecewiseFunctionAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPiecewiseFunctionAlgorithm_create_drop() {
let obj = vtkPiecewiseFunctionAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPiecewiseFunctionAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPiecewiseFunctionShiftScale(*mut core::ffi::c_void);
impl vtkPiecewiseFunctionShiftScale {
#[doc(alias = "vtkPiecewiseFunctionShiftScale")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPiecewiseFunctionShiftScale_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPiecewiseFunctionShiftScale_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPiecewiseFunctionShiftScale_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPiecewiseFunctionShiftScale_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPiecewiseFunctionShiftScale {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPiecewiseFunctionShiftScale {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPiecewiseFunctionShiftScale_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPiecewiseFunctionShiftScale_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPiecewiseFunctionShiftScale_create_drop() {
let obj = vtkPiecewiseFunctionShiftScale::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPiecewiseFunctionShiftScale(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPointSetAlgorithm(*mut core::ffi::c_void);
impl vtkPointSetAlgorithm {
#[doc(alias = "vtkPointSetAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPointSetAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPointSetAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPointSetAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPointSetAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPointSetAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPointSetAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPointSetAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPointSetAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPointSetAlgorithm_create_drop() {
let obj = vtkPointSetAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPointSetAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkPolyDataAlgorithm(*mut core::ffi::c_void);
impl vtkPolyDataAlgorithm {
#[doc(alias = "vtkPolyDataAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkPolyDataAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkPolyDataAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkPolyDataAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkPolyDataAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkPolyDataAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkPolyDataAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkPolyDataAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkPolyDataAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkPolyDataAlgorithm_create_drop() {
let obj = vtkPolyDataAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkPolyDataAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkProgressObserver(*mut core::ffi::c_void);
impl vtkProgressObserver {
#[doc(alias = "vtkProgressObserver")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkProgressObserver_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkProgressObserver_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkProgressObserver_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkProgressObserver_get_ptr(self.0) }
}
}
impl std::default::Default for vtkProgressObserver {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkProgressObserver {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkProgressObserver_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkProgressObserver_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkProgressObserver_create_drop() {
let obj = vtkProgressObserver::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkProgressObserver(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkRectilinearGridAlgorithm(*mut core::ffi::c_void);
impl vtkRectilinearGridAlgorithm {
#[doc(alias = "vtkRectilinearGridAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkRectilinearGridAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkRectilinearGridAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkRectilinearGridAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkRectilinearGridAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkRectilinearGridAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkRectilinearGridAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkRectilinearGridAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkRectilinearGridAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkRectilinearGridAlgorithm_create_drop() {
let obj = vtkRectilinearGridAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkRectilinearGridAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSMPProgressObserver(*mut core::ffi::c_void);
impl vtkSMPProgressObserver {
#[doc(alias = "vtkSMPProgressObserver")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSMPProgressObserver_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSMPProgressObserver_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSMPProgressObserver_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSMPProgressObserver_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSMPProgressObserver {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSMPProgressObserver {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSMPProgressObserver_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSMPProgressObserver_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSMPProgressObserver_create_drop() {
let obj = vtkSMPProgressObserver::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSMPProgressObserver(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSelectionAlgorithm(*mut core::ffi::c_void);
impl vtkSelectionAlgorithm {
#[doc(alias = "vtkSelectionAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSelectionAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSelectionAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSelectionAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSelectionAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSelectionAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSelectionAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSelectionAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSelectionAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSelectionAlgorithm_create_drop() {
let obj = vtkSelectionAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSelectionAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSimpleScalarTree(*mut core::ffi::c_void);
impl vtkSimpleScalarTree {
#[doc(alias = "vtkSimpleScalarTree")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSimpleScalarTree_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSimpleScalarTree_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSimpleScalarTree_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSimpleScalarTree_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSimpleScalarTree {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSimpleScalarTree {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSimpleScalarTree_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSimpleScalarTree_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSimpleScalarTree_create_drop() {
let obj = vtkSimpleScalarTree::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSimpleScalarTree(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSpanSpace(*mut core::ffi::c_void);
impl vtkSpanSpace {
#[doc(alias = "vtkSpanSpace")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSpanSpace_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSpanSpace_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSpanSpace_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSpanSpace_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSpanSpace {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSpanSpace {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSpanSpace_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSpanSpace_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSpanSpace_create_drop() {
let obj = vtkSpanSpace::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSpanSpace(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkSphereTree(*mut core::ffi::c_void);
impl vtkSphereTree {
#[doc(alias = "vtkSphereTree")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkSphereTree_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkSphereTree_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkSphereTree_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkSphereTree_get_ptr(self.0) }
}
}
impl std::default::Default for vtkSphereTree {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkSphereTree {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkSphereTree_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkSphereTree_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkSphereTree_create_drop() {
let obj = vtkSphereTree::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkSphereTree(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStreamingDemandDrivenPipeline(*mut core::ffi::c_void);
impl vtkStreamingDemandDrivenPipeline {
#[doc(alias = "vtkStreamingDemandDrivenPipeline")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStreamingDemandDrivenPipeline_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStreamingDemandDrivenPipeline_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStreamingDemandDrivenPipeline_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStreamingDemandDrivenPipeline_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStreamingDemandDrivenPipeline {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStreamingDemandDrivenPipeline {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStreamingDemandDrivenPipeline_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkStreamingDemandDrivenPipeline_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStreamingDemandDrivenPipeline_create_drop() {
let obj = vtkStreamingDemandDrivenPipeline::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStreamingDemandDrivenPipeline(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkStructuredGridAlgorithm(*mut core::ffi::c_void);
impl vtkStructuredGridAlgorithm {
#[doc(alias = "vtkStructuredGridAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkStructuredGridAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkStructuredGridAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkStructuredGridAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkStructuredGridAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkStructuredGridAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkStructuredGridAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkStructuredGridAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkStructuredGridAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkStructuredGridAlgorithm_create_drop() {
let obj = vtkStructuredGridAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkStructuredGridAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTableAlgorithm(*mut core::ffi::c_void);
impl vtkTableAlgorithm {
#[doc(alias = "vtkTableAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTableAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTableAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTableAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTableAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTableAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTableAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTableAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTableAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTableAlgorithm_create_drop() {
let obj = vtkTableAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTableAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkThreadedCompositeDataPipeline(*mut core::ffi::c_void);
impl vtkThreadedCompositeDataPipeline {
#[doc(alias = "vtkThreadedCompositeDataPipeline")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkThreadedCompositeDataPipeline_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkThreadedCompositeDataPipeline_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkThreadedCompositeDataPipeline_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkThreadedCompositeDataPipeline_get_ptr(self.0) }
}
}
impl std::default::Default for vtkThreadedCompositeDataPipeline {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkThreadedCompositeDataPipeline {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkThreadedCompositeDataPipeline_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkThreadedCompositeDataPipeline_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkThreadedCompositeDataPipeline_create_drop() {
let obj = vtkThreadedCompositeDataPipeline::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkThreadedCompositeDataPipeline(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTimeRange(*mut core::ffi::c_void);
impl vtkTimeRange {
#[doc(alias = "vtkTimeRange")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTimeRange_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTimeRange_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTimeRange_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTimeRange_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTimeRange {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTimeRange {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTimeRange_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTimeRange_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTimeRange_create_drop() {
let obj = vtkTimeRange::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTimeRange(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTreeAlgorithm(*mut core::ffi::c_void);
impl vtkTreeAlgorithm {
#[doc(alias = "vtkTreeAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTreeAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTreeAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTreeAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTreeAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTreeAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTreeAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTreeAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTreeAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTreeAlgorithm_create_drop() {
let obj = vtkTreeAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTreeAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTrivialConsumer(*mut core::ffi::c_void);
impl vtkTrivialConsumer {
#[doc(alias = "vtkTrivialConsumer")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTrivialConsumer_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTrivialConsumer_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTrivialConsumer_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTrivialConsumer_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTrivialConsumer {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTrivialConsumer {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTrivialConsumer_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTrivialConsumer_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTrivialConsumer_create_drop() {
let obj = vtkTrivialConsumer::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTrivialConsumer(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkTrivialProducer(*mut core::ffi::c_void);
impl vtkTrivialProducer {
#[doc(alias = "vtkTrivialProducer")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkTrivialProducer_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkTrivialProducer_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkTrivialProducer_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkTrivialProducer_get_ptr(self.0) }
}
}
impl std::default::Default for vtkTrivialProducer {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkTrivialProducer {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkTrivialProducer_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkTrivialProducer_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkTrivialProducer_create_drop() {
let obj = vtkTrivialProducer::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkTrivialProducer(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUndirectedGraphAlgorithm(*mut core::ffi::c_void);
impl vtkUndirectedGraphAlgorithm {
#[doc(alias = "vtkUndirectedGraphAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUndirectedGraphAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUndirectedGraphAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUndirectedGraphAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUndirectedGraphAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUndirectedGraphAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUndirectedGraphAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUndirectedGraphAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUndirectedGraphAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUndirectedGraphAlgorithm_create_drop() {
let obj = vtkUndirectedGraphAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUndirectedGraphAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUniformGridAMRAlgorithm(*mut core::ffi::c_void);
impl vtkUniformGridAMRAlgorithm {
#[doc(alias = "vtkUniformGridAMRAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUniformGridAMRAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUniformGridAMRAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUniformGridAMRAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUniformGridAMRAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUniformGridAMRAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUniformGridAMRAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUniformGridAMRAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUniformGridAMRAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUniformGridAMRAlgorithm_create_drop() {
let obj = vtkUniformGridAMRAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUniformGridAMRAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUniformGridPartitioner(*mut core::ffi::c_void);
impl vtkUniformGridPartitioner {
#[doc(alias = "vtkUniformGridPartitioner")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUniformGridPartitioner_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUniformGridPartitioner_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUniformGridPartitioner_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUniformGridPartitioner_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUniformGridPartitioner {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUniformGridPartitioner {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUniformGridPartitioner_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUniformGridPartitioner_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUniformGridPartitioner_create_drop() {
let obj = vtkUniformGridPartitioner::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUniformGridPartitioner(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnstructuredGridAlgorithm(*mut core::ffi::c_void);
impl vtkUnstructuredGridAlgorithm {
#[doc(alias = "vtkUnstructuredGridAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnstructuredGridAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnstructuredGridAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnstructuredGridAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnstructuredGridAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnstructuredGridAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnstructuredGridAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnstructuredGridAlgorithm_destructor(sself: *mut core::ffi::c_void);
}
unsafe { vtkUnstructuredGridAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnstructuredGridAlgorithm_create_drop() {
let obj = vtkUnstructuredGridAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnstructuredGridAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}
#[allow(non_camel_case_types)]
pub struct vtkUnstructuredGridBaseAlgorithm(*mut core::ffi::c_void);
impl vtkUnstructuredGridBaseAlgorithm {
#[doc(alias = "vtkUnstructuredGridBaseAlgorithm")]
pub fn new() -> Self {
unsafe extern "C" {
fn vtkUnstructuredGridBaseAlgorithm_new() -> *mut core::ffi::c_void;
}
Self(unsafe { &mut *vtkUnstructuredGridBaseAlgorithm_new() })
}
#[cfg(test)]
unsafe fn _get_ptr(&self) -> *mut core::ffi::c_void {
unsafe extern "C" {
fn vtkUnstructuredGridBaseAlgorithm_get_ptr(
sself: *mut core::ffi::c_void,
) -> *mut core::ffi::c_void;
}
unsafe { vtkUnstructuredGridBaseAlgorithm_get_ptr(self.0) }
}
}
impl std::default::Default for vtkUnstructuredGridBaseAlgorithm {
fn default() -> Self {
Self::new()
}
}
impl Drop for vtkUnstructuredGridBaseAlgorithm {
fn drop(&mut self) {
unsafe extern "C" {
fn vtkUnstructuredGridBaseAlgorithm_destructor(
sself: *mut core::ffi::c_void,
);
}
unsafe { vtkUnstructuredGridBaseAlgorithm_destructor(self.0) }
self.0 = core::ptr::null_mut();
}
}
#[test]
fn test_vtkUnstructuredGridBaseAlgorithm_create_drop() {
let obj = vtkUnstructuredGridBaseAlgorithm::new();
let ptr = obj.0;
assert!(!ptr.is_null());
assert!(unsafe { !obj._get_ptr().is_null() });
drop(obj);
let new_obj = vtkUnstructuredGridBaseAlgorithm(ptr);
assert!(unsafe { new_obj._get_ptr().is_null() });
}