Class CXIdxIncludedFileInfo

  • All Implemented Interfaces:

    public class CXIdxIncludedFileInfo
    extends Struct
    Data for ppIncludedFile callback.

    Member documentation

    • hashLoc – location of '\#' in the #include/#import directive
    • filename – filename as written in the #include/#import directive
    • file – the actual file that the #include/#import directive resolved to
    • isModuleImport – non-zero if the directive was automatically turned into a module import


     struct CXIdxIncludedFileInfo {
         CXIdxLoc hashLoc;
         char const * filename;
         CXFile file;
         int isImport;
         int isAngled;
         int isModuleImport;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • CXIdxIncludedFileInfo

        public CXIdxIncludedFileInfo​(java.nio.ByteBuffer container)
        Creates a CXIdxIncludedFileInfo 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
      • hashLoc

        public CXIdxLoc hashLoc()
        Returns a CXIdxLoc view of the hashLoc field.
      • filename

        public java.nio.ByteBuffer filename()
        Returns a ByteBuffer view of the null-terminated string pointed to by the filename field.
      • filenameString

        public java.lang.String filenameString()
        Decodes the null-terminated string pointed to by the filename field.
      • file

        public long file()
        Returns the value of the file field.
      • isImport

        public boolean isImport()
        Returns the value of the isImport field.
      • isAngled

        public boolean isAngled()
        Returns the value of the isAngled field.
      • isModuleImport

        public boolean isModuleImport()
        Returns the value of the isModuleImport field.
      • create

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

        public static CXIdxIncludedFileInfo createSafe​(long address)
        Like create, but returns null if address is NULL.
      • nhashLoc

        public static CXIdxLoc nhashLoc​(long struct)
        Unsafe version of hashLoc().
      • nfilename

        public static java.nio.ByteBuffer nfilename​(long struct)
        Unsafe version of filename().
      • nfilenameString

        public static java.lang.String nfilenameString​(long struct)
        Unsafe version of filenameString().
      • nfile

        public static long nfile​(long struct)
        Unsafe version of file().
      • nisImport

        public static int nisImport​(long struct)
        Unsafe version of isImport().
      • nisAngled

        public static int nisAngled​(long struct)
        Unsafe version of isAngled().
      • nisModuleImport

        public static int nisModuleImport​(long struct)
        Unsafe version of isModuleImport().