Class ControllerModelCPtr


  • public class ControllerModelCPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • ControllerModelCPtr

        public ControllerModelCPtr​(long cPtr,
                                   boolean cMemoryOwn)
      • ControllerModelCPtr

        public ControllerModelCPtr()
        Default constructor yielding a NULL-pointer.
      • ControllerModelCPtr

        public ControllerModelCPtr​(ControllerModel ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • getName

        public java.lang.String getName()
        returns the name of this controllermodel
        Returns:
        name of controllermodel
      • getDescription

        public java.lang.String getDescription()
        returns a description of this controllermodel
        Returns:
        reference to this controllermodels description
      • getFrame

        public Frame getFrame()
        The frame to which the controllermodel is attached.

        The frame can be NULL.