Open Search
    TP_PShapePtr Class Reference

    #include <c4d_particles.h>

    Detailed Description

    Wrapper around a TP_PShapeI pointer.

    Public Member Functions

     TP_PShapePtr ()
     
     TP_PShapePtr (const TP_PShapePtr &p)
     
    MAXON_IMPLICIT TP_PShapePtr (TP_PShapeI *p)
     
    Bool operator== (const TP_PShapePtr &p) const
     
    Bool operator!= (const TP_PShapePtr &p) const
     
    const TP_PShapePtroperator= (const TP_PShapePtr &p)
     
    const TP_PShapePtroperator= (TP_PShapeI *p)
     
    Bool IsPopulated () const
     
    TP_PShapeIGet () const
     
     ~TP_PShapePtr ()
     

    Private Attributes

    TP_PShapeIptr
     

    Constructor & Destructor Documentation

    ◆ TP_PShapePtr() [1/3]

    Default constructor.

    ◆ TP_PShapePtr() [2/3]

    TP_PShapePtr ( const TP_PShapePtr p)

    Copy constructor.

    Parameters
    [in]pThe TP_PShapePtr to copy.

    ◆ TP_PShapePtr() [3/3]

    Creates a TP_PShapePtr from a TP_PShapeI pointer.

    Parameters
    [in]pThe TP_PShapeI pointer.

    ◆ ~TP_PShapePtr()

    Destructor.

    Member Function Documentation

    ◆ operator==()

    Bool operator== ( const TP_PShapePtr p) const

    Equality operator.

    Parameters
    [in]pThe TP_PShapePtr to compare with.
    Returns
    true if the internal TP_PShapeI pointers are equal, otherwise false.

    ◆ operator!=()

    Bool operator!= ( const TP_PShapePtr p) const

    Inequality operator.

    Parameters
    [in]pThe TP_PShapePtr to compare with.
    Returns
    true if the internal TP_PShapeI pointers are not equal, otherwise false.

    ◆ operator=() [1/2]

    const TP_PShapePtr& operator= ( const TP_PShapePtr p)

    Assignment operator.

    Parameters
    [in]pThe TP_PShapePtr to assign.
    Returns
    *this.

    ◆ operator=() [2/2]

    const TP_PShapePtr& operator= ( TP_PShapeI p)

    Assignment operator.

    Parameters
    [in]pThe TP_PShapeI to assign to the internal pointer.
    Returns
    *this.

    ◆ IsPopulated()

    Bool IsPopulated ( ) const

    Checks if the internal TP_PShapeI pointer has been set.

    Returns
    true if the internal TP_PShapeI pointer is not nullptr, otherwise false.

    ◆ Get()

    TP_PShapeI* Get ( ) const

    Retrieves the internal TP_PShapeI pointer.

    Returns
    The internal TP_PShapeI pointer.

    Member Data Documentation

    ◆ ptr

    TP_PShapeI* ptr
    private