SourceLocation Class Reference 系统

#include <memoryallocationbase.h>

Public Types

using  SourceLocationMarker = Int

公共成员函数

  SourceLocation ()=default
constexpr  SourceLocation (const Char *f, Int l, const Char *objectName=nullptr)
const Char GetFile () const
Int   GetLine () const
Bool   HasFrameInfo () const
Bool   operator== (const SourceLocation &b) const
Bool   operator< (const SourceLocation &b) const
  MAXON_OPERATOR_COMPARISON ( SourceLocation )
HashInt   GetHashCode () const

静态公共成员函数

static const SourceLocation NullValue ()

Public Attributes

const Char file
Int   lineAndFlags
const Char name

静态公共属性

static const Int   FRAME_INFO_FLAG
static const Int   LINE_NUMBER_MASK

Member Typedef Documentation

◆  SourceLocationMarker

using SourceLocationMarker = Int

构造函数 & 析构函数文档编制

◆  SourceLocation() [1/2]

SourceLocation ( )
default

◆  SourceLocation() [2/2]

constexpr SourceLocation ( const Char f ,
Int   l ,
const Char objectName = nullptr  
)
constexpr

成员函数文档编制

◆  GetFile()

const Char * GetFile ( ) const

Returns the source file as C string (or a nullptr).

◆  GetLine()

Int GetLine ( ) const

Returns the source file line number (or 0).

◆  HasFrameInfo()

Bool HasFrameInfo ( ) const

◆  NullValue()

static const SourceLocation & NullValue ( )
static

◆  operator==()

Bool operator== ( const SourceLocation b ) const

◆  operator<()

Bool operator< ( const SourceLocation b ) const

◆  MAXON_OPERATOR_COMPARISON()

MAXON_OPERATOR_COMPARISON ( SourceLocation   )

◆  GetHashCode()

HashInt GetHashCode ( ) const

Member Data Documentation

◆  file

const Char * file

◆  lineAndFlags

Int lineAndFlags

◆  name

const Char * name

◆  FRAME_INFO_FLAG

const Int FRAME_INFO_FLAG static

◆  LINE_NUMBER_MASK

const Int LINE_NUMBER_MASK static