Symphony Of Empires
Eng3D::GLSL::Context Class Reference

#include <glsl_trans.hpp>

Public Member Functions

 Context (const std::string &_buffer)
 
 ~Context ()=default
 
std::string get_identifier (std::string::iterator &it)
 
std::string get_literal (std::string::iterator &it)
 
void lexer ()
 
void parser ()
 Parses the current context's tokens and optimizes them. More...
 
std::string to_text ()
 

Public Attributes

std::vector< int > line_numbers
 
std::vector< Eng3D::GLSL::Typetypes
 
std::vector< Eng3D::GLSL::Variablevars
 
std::vector< Eng3D::GLSL::Functionfuncs
 
std::vector< Eng3D::GLSL::Tokentokens
 
std::vector< Eng3D::GLSL::Definedefines
 
std::string buffer
 

Detailed Description

Definition at line 108 of file glsl_trans.hpp.

Constructor & Destructor Documentation

◆ Context()

Eng3D::GLSL::Context::Context ( const std::string &  _buffer)
inline

Definition at line 110 of file glsl_trans.hpp.

◆ ~Context()

Eng3D::GLSL::Context::~Context ( )
default

Member Function Documentation

◆ get_identifier()

std::string Eng3D::GLSL::Context::get_identifier ( std::string::iterator &  it)

Definition at line 31 of file glsl_trans.cpp.

◆ get_literal()

std::string Eng3D::GLSL::Context::get_literal ( std::string::iterator &  it)

Definition at line 42 of file glsl_trans.cpp.

◆ lexer()

void Eng3D::GLSL::Context::lexer ( )

Definition at line 56 of file glsl_trans.cpp.

◆ parser()

void Eng3D::GLSL::Context::parser ( )

Parses the current context's tokens and optimizes them.

Definition at line 204 of file glsl_trans.cpp.

◆ to_text()

std::string Eng3D::GLSL::Context::to_text ( )

Definition at line 297 of file glsl_trans.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ buffer

std::string Eng3D::GLSL::Context::buffer

Definition at line 128 of file glsl_trans.hpp.

◆ defines

std::vector<Eng3D::GLSL::Define> Eng3D::GLSL::Context::defines

Definition at line 127 of file glsl_trans.hpp.

◆ funcs

std::vector<Eng3D::GLSL::Function> Eng3D::GLSL::Context::funcs

Definition at line 125 of file glsl_trans.hpp.

◆ line_numbers

std::vector<int> Eng3D::GLSL::Context::line_numbers

Definition at line 122 of file glsl_trans.hpp.

◆ tokens

std::vector<Eng3D::GLSL::Token> Eng3D::GLSL::Context::tokens

Definition at line 126 of file glsl_trans.hpp.

◆ types

std::vector<Eng3D::GLSL::Type> Eng3D::GLSL::Context::types

Definition at line 123 of file glsl_trans.hpp.

◆ vars

std::vector<Eng3D::GLSL::Variable> Eng3D::GLSL::Context::vars

Definition at line 124 of file glsl_trans.hpp.


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