NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
Represents a source code artifact. Usually generated by a code generator. More...
#include <SourceCode.hpp>
Public Member Functions | |
bool | operator== (const SourceCode &rhs) const |
bool | operator!= (const SourceCode &rhs) const |
SourceCode (Language language, std::string code) | |
Constructor to create a new source code artifact. More... | |
const Language & | getLanguage () const |
Returns the language of this source code. More... | |
const std::string & | getCode () const |
Returns the code. More... | |
Represents a source code artifact. Usually generated by a code generator.
NES::Compiler::SourceCode::SourceCode | ( | Language | language, |
std::string | code | ||
) |
Constructor to create a new source code artifact.
language | the language of this source code artifact. |
code | the code |
References NES_ASSERT.
const std::string & NES::Compiler::SourceCode::getCode | ( | ) | const |
Returns the code.
Referenced by std::hash< const NES::Compiler::SourceCode >::operator()().
const Language & NES::Compiler::SourceCode::getLanguage | ( | ) | const |
Returns the language of this source code.
Referenced by std::hash< const NES::Compiler::SourceCode >::operator()().
bool NES::Compiler::SourceCode::operator!= | ( | const SourceCode & | rhs | ) | const |
Overload =! operator
rhs |
bool NES::Compiler::SourceCode::operator== | ( | const SourceCode & | rhs | ) | const |
Overload == operator
rhs |