VTK  9.3.20240418
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkSmartPointerBase Class Reference

Non-templated superclass for vtkSmartPointer. More...

#include <vtkSmartPointerBase.h>

Inherited by vtkSmartPointer< vtkCellArrayIterator >, vtkSmartPointer< ArrayTypeY >, vtkSmartPointer< vtkOpenXRManagerGraphics >, vtkSmartPointer< vtkFFMPEGVideoSource >, vtkSmartPointer< vtkOpenGLBufferObject >, vtkSmartPointer< vtkStructuredCellArray >, vtkSmartPointer< vtkCharArray >, vtkSmartPointer< vtkCellData >, vtkSmartPointer< vtkPolyDataMapper2D >, vtkSmartPointer< vtkConvexHull2D >, vtkSmartPointer< vtkMatrix4x4 >, vtkSmartPointer< vtkShaderProgram >, vtkSmartPointer< vtkPolyData >, vtkSmartPointer< vtkRenderer >, vtkSmartPointer< vtkPen >, vtkSmartPointer< InternalIterator >, vtkSmartPointer< vtkTemporalPathLineFilterInternals >, vtkSmartPointer< ArrayTypeX >, vtkSmartPointer< vtkEdgeLayout >, vtkSmartPointer< vtkActor2D >, vtkSmartPointer< vtkAbstractCellLocator >, vtkSmartPointer< vtkGraphToPoints >, vtkSmartPointer< vtkPath >, vtkSmartPointer< vtkExtractCellsIdList >, vtkSmartPointer< CollectionType >, vtkSmartPointer< vtkDendrogramItem >, vtkSmartPointer< vtkTreeFieldAggregator >, vtkSmartPointer< vtkPBRLUTTexture >, vtkSmartPointer< vtkImplicitArray< int > >, vtkSmartPointer< vtkPointData >, vtkSmartPointer< vtkTree >, vtkSmartPointer< vtkActor >, vtkSmartPointer< vtkSpline >, vtkSmartPointer< vtkAreaLayout >, vtkSmartPointer< vtkPerturbCoincidentVertices >, vtkSmartPointer< vtkLabelPlacementMapper >, vtkSmartPointer< vtkContextMapper2D >, vtkSmartPointer< vtkTexturedActor2D >, vtkSmartPointer< vtkDataArraySelection >, vtkSmartPointer< vtkTypeInt32Array >, vtkSmartPointer< vtkDoubleArray >, vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeGradientOpacityTable > >, vtkSmartPointer< vtkSliceAndDiceLayoutStrategy >, vtkSmartPointer< vtkGraphToGlyphs >, vtkSmartPointer< vtkAddMembershipArray >, vtkSmartPointer< vtkQImageToImageSource >, vtkSmartPointer< vtkSignedCharArray >, vtkSmartPointer< vtkAxisActor2D >, vtkSmartPointer< vtkLookupTable >, vtkSmartPointer< vtkMergePoints >, vtkSmartPointer< vtkDistanceToCamera >, vtkSmartPointer< vtkGlyphSource2D >, vtkSmartPointer< vtkTransformPolyDataFilter >, vtkSmartPointer< vtkOverlappingAMR >, vtkSmartPointer< vtkUniformGridAMR >, vtkSmartPointer< AMRIndexIterator >, vtkSmartPointer< vtkHardwareSelector >, vtkSmartPointer< vtkProperty >, vtkSmartPointer< vtkPointSet >, vtkSmartPointer< vtkColorSeries >, vtkSmartPointer< AbstractPStreamTracerUtils >, vtkSmartPointer< vtkTextureObject >, vtkSmartPointer< vtkDataObject >, vtkSmartPointer< vtkContext2D >, vtkSmartPointer< vtkIdList >, vtkSmartPointer< vtkCamera >, vtkSmartPointer< vtkTextActor >, vtkSmartPointer< vtkFloatArray >, vtkSmartPointer< vtkMotionFXCFGReader >, vtkSmartPointer< vtkRenderWindow >, vtkSmartPointer< vtkHeatmapItem >, vtkSmartPointer< vtkEdgeCenters >, vtkSmartPointer< vtkPolyData_detail::CellMap >, vtkSmartPointer< vtkProp >, vtkSmartPointer< vtkMathInternal >, vtkSmartPointer< vtkGenericCell >, vtkSmartPointer< vtkIconGlyphFilter >, vtkSmartPointer< vtkTypeInt64Array >, vtkSmartPointer< vtkTransform >, vtkSmartPointer< vtkCallbackCommand >, vtkSmartPointer< vtkIdTypeArray >, vtkSmartPointer< vtkPolyDataMapper >, vtkSmartPointer< vtkVectorText >, vtkSmartPointer< vtkIntArray >, vtkSmartPointer< vtkUniformGrid >, vtkSmartPointer< vtkVolumeTexture >, vtkSmartPointer< vtkSquarifyLayoutStrategy >, vtkSmartPointer< ArrayTypeZ >, vtkSmartPointer< vtkApplyIcons >, vtkSmartPointer< vtkExtractSelectedRows >, vtkSmartPointer< vtkComputeHistogram2DOutliers >, vtkSmartPointer< vtkAbstractPointLocator >, vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor >, vtkSmartPointer< vtkTable >, vtkSmartPointer< vtkSelection >, vtkSmartPointer< vtkTransformCoordinateSystems >, vtkSmartPointer< vtkAbstractTransform >, vtkSmartPointer< vtkPixelBufferObject >, vtkSmartPointer< vtkPolyLine >, vtkSmartPointer< vtkTransform2D >, vtkSmartPointer< vtkContextDevice3D >, vtkSmartPointer< vtkPoints >, vtkSmartPointer< vtkContourValues >, vtkSmartPointer< vtkFastSplatter >, vtkSmartPointer< vtkAbstractArray >, vtkSmartPointer< vtkCellTypes >, vtkSmartPointer< vtkScalarBarWidget >, vtkSmartPointer< vtkHyperTreeGridNonOrientedUnlimitedGeometryCursor >, vtkSmartPointer< vtkDataAssembly >, vtkSmartPointer< vtkGLTFDocumentLoader >, vtkSmartPointer< vtkURILoader >, vtkSmartPointer< vtkAbstractCellLinks >, vtkSmartPointer< vtkPolygon >, vtkSmartPointer< vtkContextScene >, vtkSmartPointer< vtkIncrementalPointLocator >, vtkSmartPointer< vtkImplicitFunction >, vtkSmartPointer< vtkImplicitArray< vtkStructuredCellBackend > >, vtkSmartPointer< vtkBivariateLinearTableThreshold >, vtkSmartPointer< vtkOpenGLVertexBufferObjectGroup >, vtkSmartPointer< vtkTextPropertyCollection >, vtkSmartPointer< vtkPlane >, vtkSmartPointer< vtkAppendPolyData >, vtkSmartPointer< vtkPriorityQueue >, vtkSmartPointer< vtkDataSet >, vtkSmartPointer< vtkFieldData >, vtkSmartPointer< vtkDataArray >, vtkSmartPointer< vtkCoordinate >, vtkSmartPointer< vtkScalarsToColors >, vtkSmartPointer< StorageType >, vtkSmartPointer< vtkTextActor3D >, vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeOpacityTable > >, vtkSmartPointer< vtkWorldPointPicker >, vtkSmartPointer< vtkPartitioningStrategy >, vtkSmartPointer< vtkEdgeTable >, vtkSmartPointer< vtkPlotBar >, vtkSmartPointer< vtkTemporalInterpolatedVelocityField >, vtkSmartPointer< vtkPairwiseExtractHistogram2D >, vtkSmartPointer< vtkLagrangianBasicIntegrationModel >, vtkSmartPointer< vtkPlanes >, vtkSmartPointer< vtkCompositeDataDisplayAttributes >, vtkSmartPointer< vtkAnnotationLink >, vtkSmartPointer< vtkTextProperty >, vtkSmartPointer< vtkImageData >, vtkSmartPointer< vtkMultiProcessController >, vtkSmartPointer< vtkCompositePolyDataMapper >, vtkSmartPointer< vtkPropCollection >, vtkSmartPointer< vtkTexture >, vtkSmartPointer< vtkLineIntegralConvolution2D >, vtkSmartPointer< vtkRemoveHiddenData >, vtkSmartPointer< vtkInteractorObserver >, vtkSmartPointer< vtkAxisActor >, vtkSmartPointer< vtkOpenXRManagerConnection >, vtkSmartPointer< vtkPBRIrradianceTexture >, vtkSmartPointer< vtkOBJPolyDataProcessor >, vtkSmartPointer< vtkWedge >, vtkSmartPointer< vtkQuad >, vtkSmartPointer< vtkAlgorithm >, vtkSmartPointer< vtkAxis >, vtkSmartPointer< vtkTypeUInt8Array >, vtkSmartPointer< vtkUnsignedCharArray >, vtkSmartPointer< vtkTypeUInt32Array >, vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeTransferFunction2D > >, vtkSmartPointer< TemporalFractalOutputUtil >, vtkSmartPointer< vtkTreeLevelsFilter >, vtkSmartPointer< vtkExtractSelectedGraph >, vtkSmartPointer< vtkApplyColors >, vtkSmartPointer< vtkBitArray >, vtkSmartPointer< vtkOutlineSource >, vtkSmartPointer< vtkPBRPrefilterTexture >, vtkSmartPointer< vtkOpenGLFramebufferObject >, vtkSmartPointer< ImplementationType >, vtkSmartPointer< vtkVertexGlyphFilter >, vtkSmartPointer< vtkMultiBlockDataSet >, vtkSmartPointer< vtkPiecewiseFunction >, vtkSmartPointer< vtkCellAttribute >, vtkSmartPointer< vtkCenteredSliderRepresentation >, vtkSmartPointer< vtkPlotHistogram2D >, vtkSmartPointer< vtkBrush >, vtkSmartPointer< vtkStringArray >, vtkSmartPointer< vtkConstrainedSmoothingFilter >, vtkSmartPointer< vtkStaticPointLocator >, vtkSmartPointer< vtkAttributeDataToTableFilter >, vtkSmartPointer< vtkOpenVROverlay >, vtkSmartPointer< vtkOpenGLRenderWindow >, vtkSmartPointer< vtkHexahedron >, vtkSmartPointer< vtkExtractSelection >, vtkSmartPointer< vtkInformation >, vtkSmartPointer< vtkVRModel >, vtkSmartPointer< vtkBoxLayoutStrategy >, vtkSmartPointer< vtkSurfaceLICComposite >, vtkSmartPointer< vtkVertexDegree >, vtkSmartPointer< vtkCollection >, vtkSmartPointer< vtkLine >, vtkSmartPointer< vtkExtractDataArraysOverTime >, vtkSmartPointer< vtkDGCell >, vtkSmartPointer< vtkTooltipItem >, vtkSmartPointer< vtkCellArray >, vtkSmartPointer< vtkAssignCoordinates >, vtkSmartPointer< vtkDataObjectTree >, vtkSmartPointer< vtkGraphLayout >, vtkSmartPointer< vtkPointSetToLabelHierarchy >, vtkSmartPointer< vtkMatrix3x3 >, vtkSmartPointer< vtkInitialValueProblemSolver >, vtkSmartPointer< vtkConvertSelectionDomain >, vtkSmartPointer< vtkMarshalContext >, vtkSmartPointer< vtkChartLegend >, vtkSmartPointer< ArrayType >, vtkSmartPointer< vtkResourceStream >, vtkSmartPointer< vtkGenericOpenGLRenderWindow >, vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeRGBTable > >, vtkSmartPointer< vtkCompositeInterpolatedVelocityField >, vtkSmartPointer< vtkHoverWidget >, vtkSmartPointer< vtkBalloonRepresentation >, vtkSmartPointer< vtkTextMapper >, vtkSmartPointer< vtkMolecule >, vtkSmartPointer< vtkHyperTreeGridLocator >, vtkSmartPointer< vtkSphereSource >, vtkSmartPointer< vtkMapArrayValues >, vtkSmartPointer< vtkGlyph3D >, vtkSmartPointer< vtkGraphToPolyData >, vtkSmartPointer< vtkUnsignedIntArray >, vtkSmartPointer< vtkCompositeDataSet >, and vtkSmartPointer< T >.

Collaboration diagram for vtkSmartPointerBase:
[legend]

Classes

class  NoReference
 

Public Member Functions

 vtkSmartPointerBase () noexcept
 Initialize smart pointer to nullptr. More...
 
 vtkSmartPointerBase (vtkObjectBase *r)
 Initialize smart pointer to given object. More...
 
 vtkSmartPointerBase (const vtkSmartPointerBase &r)
 Initialize smart pointer with a new reference to the same object referenced by given smart pointer. More...
 
 vtkSmartPointerBase (vtkSmartPointerBase &&r) noexcept
 Move the pointee from r into this and reset @ r. More...
 
 ~vtkSmartPointerBase ()
 Destroy smart pointer and remove the reference to its object. More...
 
vtkObjectBaseGetPointer () const noexcept
 Get the contained pointer. More...
 
void Report (vtkGarbageCollector *collector, const char *desc)
 Report the reference held by the smart pointer to a collector. More...
 
vtkSmartPointerBaseoperator= (vtkObjectBase *r)
 Assign object to reference. More...
 
vtkSmartPointerBaseoperator= (const vtkSmartPointerBase &r)
 Assign object to reference. More...
 

Protected Member Functions

 vtkSmartPointerBase (vtkObjectBase *r, const NoReference &)
 

Protected Attributes

vtkObjectBaseObject
 

Detailed Description

Non-templated superclass for vtkSmartPointer.

vtkSmartPointerBase holds a pointer to a vtkObjectBase or subclass instance and performs one Register/UnRegister pair. This is useful for storing VTK objects in STL containers. This class is not intended to be used directly. Instead, use the vtkSmartPointer class template to automatically perform proper cast operations.

Definition at line 21 of file vtkSmartPointerBase.h.

Constructor & Destructor Documentation

◆ vtkSmartPointerBase() [1/5]

vtkSmartPointerBase::vtkSmartPointerBase ( )
noexcept

Initialize smart pointer to nullptr.

◆ vtkSmartPointerBase() [2/5]

vtkSmartPointerBase::vtkSmartPointerBase ( vtkObjectBase r)

Initialize smart pointer to given object.

◆ vtkSmartPointerBase() [3/5]

vtkSmartPointerBase::vtkSmartPointerBase ( const vtkSmartPointerBase r)

Initialize smart pointer with a new reference to the same object referenced by given smart pointer.

◆ vtkSmartPointerBase() [4/5]

vtkSmartPointerBase::vtkSmartPointerBase ( vtkSmartPointerBase &&  r)
inlinenoexcept

Move the pointee from r into this and reset @ r.

Definition at line 43 of file vtkSmartPointerBase.h.

◆ ~vtkSmartPointerBase()

vtkSmartPointerBase::~vtkSmartPointerBase ( )

Destroy smart pointer and remove the reference to its object.

◆ vtkSmartPointerBase() [5/5]

vtkSmartPointerBase::vtkSmartPointerBase ( vtkObjectBase r,
const NoReference  
)
protected

Member Function Documentation

◆ operator=() [1/2]

vtkSmartPointerBase& vtkSmartPointerBase::operator= ( vtkObjectBase r)

Assign object to reference.

This removes any reference to an old object.

◆ operator=() [2/2]

vtkSmartPointerBase& vtkSmartPointerBase::operator= ( const vtkSmartPointerBase r)

Assign object to reference.

This removes any reference to an old object.

◆ GetPointer()

vtkObjectBase* vtkSmartPointerBase::GetPointer ( ) const
inlinenoexcept

Get the contained pointer.

Definition at line 66 of file vtkSmartPointerBase.h.

◆ Report()

void vtkSmartPointerBase::Report ( vtkGarbageCollector collector,
const char *  desc 
)

Report the reference held by the smart pointer to a collector.

Member Data Documentation

◆ Object

vtkObjectBase* vtkSmartPointerBase::Object
protected

Definition at line 88 of file vtkSmartPointerBase.h.


The documentation for this class was generated from the following file: