Class MDefInfluence


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         MDefInfluence mdefinfluence = ...;
         CPointer<Object> p = mdefinfluence.__dna__addressof(MDefInfluence.__DNA__FIELD__vertex);
         CPointer<Integer> p_vertex = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'vertex'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__weight

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

        Pointer Arithmetics

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

         MDefInfluence mdefinfluence = ...;
         CPointer<Object> p = mdefinfluence.__dna__addressof(MDefInfluence.__DNA__FIELD__weight);
         CPointer<Float> p_weight = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'weight'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • MDefInfluence

        public MDefInfluence​(long __address,
                             Block __block,
                             BlockTable __blockTable)
    • Method Detail

      • getVertex

        public int getVertex()
                      throws java.io.IOException
        Get method for struct member 'vertex'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vertex
      • setVertex

        public void setVertex​(int vertex)
                       throws java.io.IOException
        Set method for struct member 'vertex'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vertex
      • getWeight

        public float getWeight()
                        throws java.io.IOException
        Get method for struct member 'weight'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__weight
      • setWeight

        public void setWeight​(float weight)
                       throws java.io.IOException
        Set method for struct member 'weight'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__weight
      • __io__addressof

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