VTK
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< T >, vtkSmartPointer< AbstractPStreamTracerUtils >, vtkSmartPointer< AMRIndexIterator >, vtkSmartPointer< ArrayType >, vtkSmartPointer< CollectionType >, vtkSmartPointer< ImplementationType >, vtkSmartPointer< InternalIterator >, vtkSmartPointer< QVTKInteractor >, vtkSmartPointer< StorageType >, vtkSmartPointer< TemporalFractalOutputUtil >, vtkSmartPointer< vtkAbstractArray >, vtkSmartPointer< vtkAbstractCellLinks >, vtkSmartPointer< vtkAbstractCellLocator >, vtkSmartPointer< vtkActor >, vtkSmartPointer< vtkActor2D >, vtkSmartPointer< vtkAddMembershipArray >, vtkSmartPointer< vtkAnnotationLink >, vtkSmartPointer< vtkAppendPolyData >, vtkSmartPointer< vtkApplyColors >, vtkSmartPointer< vtkApplyIcons >, vtkSmartPointer< vtkAreaLayout >, vtkSmartPointer< vtkAssignCoordinates >, vtkSmartPointer< vtkAxis >, vtkSmartPointer< vtkAxisActor2D >, vtkSmartPointer< vtkBalloonRepresentation >, vtkSmartPointer< vtkBitArray >, vtkSmartPointer< vtkBivariateLinearTableThreshold >, vtkSmartPointer< vtkBoxLayoutStrategy >, vtkSmartPointer< vtkBrush >, vtkSmartPointer< vtkCachingInterpolatedVelocityField >, vtkSmartPointer< vtkCallbackCommand >, vtkSmartPointer< vtkCellArray >, vtkSmartPointer< vtkCellArrayIterator >, vtkSmartPointer< vtkCellData >, vtkSmartPointer< vtkCellLinks >, vtkSmartPointer< vtkCellTypes >, vtkSmartPointer< vtkCenteredSliderRepresentation >, vtkSmartPointer< vtkCharArray >, vtkSmartPointer< vtkChartLegend >, vtkSmartPointer< vtkCollection >, vtkSmartPointer< vtkColorSeries >, vtkSmartPointer< vtkCompositeDataDisplayAttributes >, vtkSmartPointer< vtkCompositeDataSet >, vtkSmartPointer< vtkCompositePolyDataMapper2 >, vtkSmartPointer< vtkComputeHistogram2DOutliers >, vtkSmartPointer< vtkContext2D >, vtkSmartPointer< vtkContextDevice3D >, vtkSmartPointer< vtkContextMapper2D >, vtkSmartPointer< vtkContextScene >, vtkSmartPointer< vtkConvertSelectionDomain >, vtkSmartPointer< vtkConvexHull2D >, vtkSmartPointer< vtkCoordinate >, vtkSmartPointer< vtkDataArray >, vtkSmartPointer< vtkDataArraySelection >, vtkSmartPointer< vtkDataObject >, vtkSmartPointer< vtkDataObjectToTable >, vtkSmartPointer< vtkDataObjectTree >, vtkSmartPointer< vtkDataSet >, vtkSmartPointer< vtkDendrogramItem >, vtkSmartPointer< vtkDistanceToCamera >, vtkSmartPointer< vtkDoubleArray >, vtkSmartPointer< vtkEdgeCenters >, vtkSmartPointer< vtkEdgeLayout >, vtkSmartPointer< vtkEmptyCell >, vtkSmartPointer< vtkEventQtSlotConnect >, vtkSmartPointer< vtkExtractDataArraysOverTime >, vtkSmartPointer< vtkExtractSelectedGraph >, vtkSmartPointer< vtkExtractSelectedRows >, vtkSmartPointer< vtkExtractSelection >, vtkSmartPointer< vtkFastSplatter >, vtkSmartPointer< vtkFloatArray >, vtkSmartPointer< vtkGenericCell >, vtkSmartPointer< vtkGenericOpenGLRenderWindow >, vtkSmartPointer< vtkGLTFDocumentLoader >, vtkSmartPointer< vtkGlyph3D >, vtkSmartPointer< vtkGlyphSource2D >, vtkSmartPointer< vtkGraphLayout >, vtkSmartPointer< vtkGraphToGlyphs >, vtkSmartPointer< vtkGraphToPoints >, vtkSmartPointer< vtkGraphToPolyData >, vtkSmartPointer< vtkHardwareSelector >, vtkSmartPointer< vtkHeatmapItem >, vtkSmartPointer< vtkHexahedron >, vtkSmartPointer< vtkHoverWidget >, vtkSmartPointer< vtkHyperTreeGridNonOrientedGeometryCursor >, vtkSmartPointer< vtkIconGlyphFilter >, vtkSmartPointer< vtkIdTypeArray >, vtkSmartPointer< vtkImageData >, vtkSmartPointer< vtkImplicitFunction >, vtkSmartPointer< vtkInformation >, vtkSmartPointer< vtkIntArray >, vtkSmartPointer< vtkLabelPlacementMapper >, vtkSmartPointer< vtkLine >, vtkSmartPointer< vtkLineIntegralConvolution2D >, vtkSmartPointer< vtkLookupTable >, vtkSmartPointer< vtkMapArrayValues >, vtkSmartPointer< vtkMathInternal >, vtkSmartPointer< vtkMatrix3x3 >, vtkSmartPointer< vtkMatrix4x4 >, vtkSmartPointer< vtkMergePoints >, vtkSmartPointer< vtkMotionFXCFGReader >, vtkSmartPointer< vtkMultiBlockDataSet >, vtkSmartPointer< vtkMultiProcessController >, vtkSmartPointer< vtkOBJPolyDataProcessor >, vtkSmartPointer< vtkOpenGLFramebufferObject >, vtkSmartPointer< vtkOpenGLRenderWindow >, vtkSmartPointer< vtkOpenGLShaderProperty >, vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeGradientOpacityTable > >, vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeOpacityTable > >, vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeRGBTable > >, vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeTransferFunction2D > >, vtkSmartPointer< vtkOutlineSource >, vtkSmartPointer< vtkOverlappingAMR >, vtkSmartPointer< vtkPairwiseExtractHistogram2D >, vtkSmartPointer< vtkPath >, vtkSmartPointer< vtkPen >, vtkSmartPointer< vtkPerturbCoincidentVertices >, vtkSmartPointer< vtkPiecewiseFunction >, vtkSmartPointer< vtkPixelBufferObject >, vtkSmartPointer< vtkPlane >, vtkSmartPointer< vtkPlanes >, vtkSmartPointer< vtkPlotHistogram2D >, vtkSmartPointer< vtkPointData >, vtkSmartPointer< vtkPoints >, vtkSmartPointer< vtkPointSet >, vtkSmartPointer< vtkPointSetToLabelHierarchy >, vtkSmartPointer< vtkPolyData >, vtkSmartPointer< vtkPolyData_detail::CellMap >, vtkSmartPointer< vtkPolyDataMapper >, vtkSmartPointer< vtkPolyDataMapper2D >, vtkSmartPointer< vtkPolygon >, vtkSmartPointer< vtkPolyLine >, vtkSmartPointer< vtkPolyVertex >, vtkSmartPointer< vtkPriorityQueue >, vtkSmartPointer< vtkQImageToImageSource >, vtkSmartPointer< vtkQuad >, vtkSmartPointer< vtkRemoveHiddenData >, vtkSmartPointer< vtkRenderer >, vtkSmartPointer< vtkRenderWindow >, vtkSmartPointer< vtkScalarBarWidget >, vtkSmartPointer< vtkScalarsToColors >, vtkSmartPointer< vtkSelection >, vtkSmartPointer< vtkSliceAndDiceLayoutStrategy >, vtkSmartPointer< vtkSphereSource >, vtkSmartPointer< vtkSpline >, vtkSmartPointer< vtkSquarifyLayoutStrategy >, vtkSmartPointer< vtkStringArray >, vtkSmartPointer< vtkSurfaceLICComposite >, vtkSmartPointer< vtkTable >, vtkSmartPointer< vtkTemporalInterpolatedVelocityField >, vtkSmartPointer< vtkTemporalPathLineFilterInternals >, vtkSmartPointer< vtkTextMapper >, vtkSmartPointer< vtkTextProperty >, vtkSmartPointer< vtkTextPropertyCollection >, vtkSmartPointer< vtkTexture >, vtkSmartPointer< vtkTexturedActor2D >, vtkSmartPointer< vtkTextureObject >, vtkSmartPointer< vtkTooltipItem >, vtkSmartPointer< vtkTransform >, vtkSmartPointer< vtkTransform2D >, vtkSmartPointer< vtkTransformCoordinateSystems >, vtkSmartPointer< vtkTransformPolyDataFilter >, vtkSmartPointer< vtkTree >, vtkSmartPointer< vtkTreeFieldAggregator >, vtkSmartPointer< vtkTreeLevelsFilter >, vtkSmartPointer< vtkTriangle >, vtkSmartPointer< vtkTriangleStrip >, vtkSmartPointer< vtkUniformGrid >, vtkSmartPointer< vtkUniformGridAMR >, vtkSmartPointer< vtkUnsignedCharArray >, vtkSmartPointer< vtkUnsignedIntArray >, vtkSmartPointer< vtkVertex >, vtkSmartPointer< vtkVertexDegree >, vtkSmartPointer< vtkVertexGlyphFilter >, vtkSmartPointer< vtkVolumeTexture >, vtkSmartPointer< vtkWedge >, and vtkSmartPointer< vtkWorldPointPicker >.

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...
 
vtkSmartPointerBaseoperator= (vtkObjectBase *r)
 Assign object to reference. More...
 
vtkSmartPointerBaseoperator= (const vtkSmartPointerBase &r)
 
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...
 

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 32 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 54 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)

◆ GetPointer()

vtkObjectBase* vtkSmartPointerBase::GetPointer ( ) const
inlinenoexcept

Get the contained pointer.

Definition at line 73 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 95 of file vtkSmartPointerBase.h.


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