Class CXIdxDeclInfo.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<CXIdxDeclInfo>, NativeResource, Pointer
Enclosing class:
CXIdxDeclInfo

public static class CXIdxDeclInfo.Buffer extends StructBuffer<CXIdxDeclInfo, CXIdxDeclInfo.Buffer> implements NativeResource
An array of CXIdxDeclInfo structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CXIdxDeclInfo.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by CXIdxDeclInfo.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • entityInfo

      @NativeType("CXIdxEntityInfo const *") public CXIdxEntityInfo entityInfo()
      Returns:
      a CXIdxEntityInfo view of the struct pointed to by the entityInfo field.
    • cursor

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

      public CXIdxLoc loc()
      Returns:
      a CXIdxLoc view of the loc field.
    • semanticContainer

      @NativeType("CXIdxContainerInfo const *") public CXIdxContainerInfo semanticContainer()
      Returns:
      a CXIdxContainerInfo view of the struct pointed to by the semanticContainer field.
    • lexicalContainer

      @NativeType("CXIdxContainerInfo const *") public CXIdxContainerInfo lexicalContainer()
      Returns:
      a CXIdxContainerInfo view of the struct pointed to by the lexicalContainer field.
    • isRedeclaration

      @NativeType("int") public boolean isRedeclaration()
      Returns:
      the value of the isRedeclaration field.
    • isDefinition

      @NativeType("int") public boolean isDefinition()
      Returns:
      the value of the isDefinition field.
    • isContainer

      @NativeType("int") public boolean isContainer()
      Returns:
      the value of the isContainer field.
    • declAsContainer

      @NativeType("CXIdxContainerInfo const *") public CXIdxContainerInfo declAsContainer()
      Returns:
      a CXIdxContainerInfo view of the struct pointed to by the declAsContainer field.
    • isImplicit

      @NativeType("int") public boolean isImplicit()
      Returns:
      the value of the isImplicit field.
    • attributes

      @NativeType("CXIdxAttrInfo const * const *") public PointerBuffer attributes()
      Returns:
      a PointerBuffer view of the data pointed to by the attributes field.
    • numAttributes

      @NativeType("unsigned") public int numAttributes()
      Returns:
      the value of the numAttributes field.
    • flags

      @NativeType("unsigned") public int flags()
      Returns:
      the value of the flags field.