Class CXIdxDeclInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class CXIdxDeclInfo
    extends Struct
    implements NativeResource

    Member documentation

    • lexicalContainer – generally same as semanticContainer but can be different in cases like out-of-line C++ member functions
    • isImplicit – whether the declaration exists in code or was created implicitly by the compiler, e.g. implicit Objective-C methods for properties

    Layout

    
     struct CXIdxDeclInfo {
         CXIdxEntityInfo const * entityInfo;
         CXCursor cursor;
         CXIdxLoc loc;
         CXIdxContainerInfo const * semanticContainer;
         CXIdxContainerInfo const * lexicalContainer;
         int isRedeclaration;
         int isDefinition;
         int isContainer;
         CXIdxContainerInfo const * declAsContainer;
         int isImplicit;
         CXIdxAttrInfo const * const * attributes;
         unsigned numAttributes;
         unsigned flags;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ENTITYINFO, CURSOR, LOC, SEMANTICCONTAINER, LEXICALCONTAINER, ISREDECLARATION, ISDEFINITION, ISCONTAINER, DECLASCONTAINER, ISIMPLICIT, ATTRIBUTES, NUMATTRIBUTES, FLAGS

        The struct member offsets.
    • Constructor Detail

      • CXIdxDeclInfo

        public CXIdxDeclInfo​(java.nio.ByteBuffer container)
        Creates a CXIdxDeclInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • cursor

        public CXCursor cursor()
        Returns a CXCursor view of the cursor field.
      • isRedeclaration

        public boolean isRedeclaration()
        Returns the value of the isRedeclaration field.
      • isDefinition

        public boolean isDefinition()
        Returns the value of the isDefinition field.
      • isContainer

        public boolean isContainer()
        Returns the value of the isContainer field.
      • isImplicit

        public boolean isImplicit()
        Returns the value of the isImplicit field.
      • numAttributes

        public int numAttributes()
        Returns the value of the numAttributes field.
      • flags

        public int flags()
        Returns the value of the flags field.
      • malloc

        public static CXIdxDeclInfo malloc()
        Returns a new CXIdxDeclInfo instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static CXIdxDeclInfo calloc()
        Returns a new CXIdxDeclInfo instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static CXIdxDeclInfo create​(long address)
        Returns a new CXIdxDeclInfo instance for the specified memory address.
      • createSafe

        @Nullable
        public static CXIdxDeclInfo createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

        public static CXIdxDeclInfo.Buffer create​(long address,
                                                  int capacity)
        Create a CXIdxDeclInfo.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static CXIdxDeclInfo.Buffer createSafe​(long address,
                                                      int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        public static CXIdxDeclInfo mallocStack()
        Returns a new CXIdxDeclInfo instance allocated on the thread-local MemoryStack.
      • callocStack

        public static CXIdxDeclInfo callocStack()
        Returns a new CXIdxDeclInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static CXIdxDeclInfo mallocStack​(MemoryStack stack)
        Returns a new CXIdxDeclInfo instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CXIdxDeclInfo callocStack​(MemoryStack stack)
        Returns a new CXIdxDeclInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • ncursor

        public static CXCursor ncursor​(long struct)
        Unsafe version of cursor().
      • nloc

        public static CXIdxLoc nloc​(long struct)
        Unsafe version of loc().
      • nisRedeclaration

        public static int nisRedeclaration​(long struct)
        Unsafe version of isRedeclaration().
      • nisDefinition

        public static int nisDefinition​(long struct)
        Unsafe version of isDefinition().
      • nisContainer

        public static int nisContainer​(long struct)
        Unsafe version of isContainer().
      • nisImplicit

        public static int nisImplicit​(long struct)
        Unsafe version of isImplicit().
      • nnumAttributes

        public static int nnumAttributes​(long struct)
        Unsafe version of numAttributes().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().