CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ShaderCompiler::SourceArea Class Reference

#include <CeresEngine/Material/ShaderCompiler/AST/SourceArea.hpp>

Public Member Functions

 SourceArea ()=default
 
 SourceArea (const SourceArea &)=default
 
SourceAreaoperator= (const SourceArea &)=default
 
 SourceArea (const SourcePosition &pos, UInt32 length, UInt32 offset=0)
 
bool isValid () const
 
void update (const SourceArea &area)
 
void update (const String &lengthFromIdent)
 
void update (const Token &token)
 
void update (const AST &ast)
 
void offset (UInt32 offset)
 
void offset (const SourcePosition &pos)
 
UInt32 getOffset () const
 
const SourcePositiongetPosition () const
 
UInt32 getLength () const
 

Static Public Attributes

static const SourceArea ignore
 

Private Attributes

SourcePosition mPos
 
UInt32 mLength = 0
 
UInt32 mOffset = 0
 

Constructor & Destructor Documentation

◆ SourceArea() [1/3]

CeresEngine::ShaderCompiler::SourceArea::SourceArea ( )
default

◆ SourceArea() [2/3]

CeresEngine::ShaderCompiler::SourceArea::SourceArea ( const SourceArea )
default

◆ SourceArea() [3/3]

CeresEngine::ShaderCompiler::SourceArea::SourceArea ( const SourcePosition pos,
UInt32  length,
UInt32  offset = 0 
)

Member Function Documentation

◆ getLength()

UInt32 CeresEngine::ShaderCompiler::SourceArea::getLength ( ) const
inline

◆ getOffset()

UInt32 CeresEngine::ShaderCompiler::SourceArea::getOffset ( ) const

◆ getPosition()

const SourcePosition & CeresEngine::ShaderCompiler::SourceArea::getPosition ( ) const
inline

◆ isValid()

bool CeresEngine::ShaderCompiler::SourceArea::isValid ( ) const

◆ offset() [1/2]

void CeresEngine::ShaderCompiler::SourceArea::offset ( const SourcePosition pos)

◆ offset() [2/2]

void CeresEngine::ShaderCompiler::SourceArea::offset ( UInt32  offset)

◆ operator=()

SourceArea & CeresEngine::ShaderCompiler::SourceArea::operator= ( const SourceArea )
default

◆ update() [1/4]

void CeresEngine::ShaderCompiler::SourceArea::update ( const AST ast)

◆ update() [2/4]

void CeresEngine::ShaderCompiler::SourceArea::update ( const SourceArea area)

◆ update() [3/4]

void CeresEngine::ShaderCompiler::SourceArea::update ( const String lengthFromIdent)

◆ update() [4/4]

void CeresEngine::ShaderCompiler::SourceArea::update ( const Token token)

Member Data Documentation

◆ ignore

const SourceArea CeresEngine::ShaderCompiler::SourceArea::ignore
static

◆ mLength

UInt32 CeresEngine::ShaderCompiler::SourceArea::mLength = 0
private

◆ mOffset

UInt32 CeresEngine::ShaderCompiler::SourceArea::mOffset = 0
private

◆ mPos

SourcePosition CeresEngine::ShaderCompiler::SourceArea::mPos
private

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