Class Link


  • public class Link
    extends CFacade
    Generated facet for DNA struct type 'Link'.

    Class Documentation

    Java .Blend

    generic - all structs which are put into linked lists begin with this.

    Blender Source Code

    Generic - all structs which are put into linked lists begin with this.

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct Link.

        It is required when allocating a new block to store data for Link.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__next

        public static final long[] __DNA__FIELD__next
        Field descriptor (offset) for struct member 'next'.

        Field Documentation

        Java .Blend

        reference on the next element in linked list

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Link link = ...;
         CPointer<Object> p = link.__dna__addressof(Link.__DNA__FIELD__next);
         CPointer<CPointer<Link>> p_next = p.cast(new Class[]{CPointer.class, Link.class});
         

        Metadata

        • Field: 'next'
        • Signature: 'Link*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__prev

        public static final long[] __DNA__FIELD__prev
        Field descriptor (offset) for struct member 'prev'.

        Field Documentation

        Java .Blend

        reference on previous element in linked list

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Link link = ...;
         CPointer<Object> p = link.__dna__addressof(Link.__DNA__FIELD__prev);
         CPointer<CPointer<Link>> p_prev = p.cast(new Class[]{CPointer.class, Link.class});
         

        Metadata

        • Field: 'prev'
        • Signature: 'Link*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • Link

        public Link​(long __address,
                    Block __block,
                    BlockTable __blockTable)
      • Link

        protected Link​(Link that)
    • Method Detail

      • getNext

        public CPointer<Link> getNext()
                               throws java.io.IOException
        Get method for struct member 'next'.

        Field Documentation

        Java .Blend

        reference on the next element in linked list
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • setNext

        public void setNext​(CPointer<Link> next)
                     throws java.io.IOException
        Set method for struct member 'next'.

        Field Documentation

        Java .Blend

        reference on the next element in linked list
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • getPrev

        public CPointer<Link> getPrev()
                               throws java.io.IOException
        Get method for struct member 'prev'.

        Field Documentation

        Java .Blend

        reference on previous element in linked list
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • setPrev

        public void setPrev​(CPointer<Link> prev)
                     throws java.io.IOException
        Set method for struct member 'prev'.

        Field Documentation

        Java .Blend

        reference on previous element in linked list
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • __io__addressof

        public CPointer<Link> __io__addressof()
        Instantiates a pointer on this instance.