clang  6.0.0svn
Public Member Functions | Friends | List of all members
clang::edit::FileOffset Class Reference

#include "clang/Edit/FileOffset.h"

Public Member Functions

 FileOffset ()
 
 FileOffset (FileID fid, unsigned offs)
 
bool isInvalid () const
 
FileID getFID () const
 
unsigned getOffset () const
 
FileOffset getWithOffset (unsigned offset) const
 

Friends

bool operator== (FileOffset LHS, FileOffset RHS)
 
bool operator!= (FileOffset LHS, FileOffset RHS)
 
bool operator< (FileOffset LHS, FileOffset RHS)
 
bool operator> (FileOffset LHS, FileOffset RHS)
 
bool operator>= (FileOffset LHS, FileOffset RHS)
 
bool operator<= (FileOffset LHS, FileOffset RHS)
 

Detailed Description

Definition at line 19 of file FileOffset.h.

Constructor & Destructor Documentation

◆ FileOffset() [1/2]

clang::edit::FileOffset::FileOffset ( )
inline

Definition at line 23 of file FileOffset.h.

◆ FileOffset() [2/2]

clang::edit::FileOffset::FileOffset ( FileID  fid,
unsigned  offs 
)
inline

Definition at line 24 of file FileOffset.h.

Member Function Documentation

◆ getFID()

FileID clang::edit::FileOffset::getFID ( ) const
inline

◆ getOffset()

unsigned clang::edit::FileOffset::getOffset ( ) const
inline

◆ getWithOffset()

FileOffset clang::edit::FileOffset::getWithOffset ( unsigned  offset) const
inline

◆ isInvalid()

bool clang::edit::FileOffset::isInvalid ( ) const
inline

Definition at line 26 of file FileOffset.h.

References clang::FileID::isInvalid().

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( FileOffset  LHS,
FileOffset  RHS 
)
friend

Definition at line 40 of file FileOffset.h.

◆ operator<

bool operator< ( FileOffset  LHS,
FileOffset  RHS 
)
friend

Definition at line 43 of file FileOffset.h.

◆ operator<=

bool operator<= ( FileOffset  LHS,
FileOffset  RHS 
)
friend

Definition at line 52 of file FileOffset.h.

◆ operator==

bool operator== ( FileOffset  LHS,
FileOffset  RHS 
)
friend

Definition at line 37 of file FileOffset.h.

◆ operator>

bool operator> ( FileOffset  LHS,
FileOffset  RHS 
)
friend

Definition at line 46 of file FileOffset.h.

◆ operator>=

bool operator>= ( FileOffset  LHS,
FileOffset  RHS 
)
friend

Definition at line 49 of file FileOffset.h.


The documentation for this class was generated from the following file: