NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::Compiler::SourceCode Class Reference

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 LanguagegetLanguage () const
 Returns the language of this source code. More...
 
const std::string & getCode () const
 Returns the code. More...
 

Detailed Description

Represents a source code artifact. Usually generated by a code generator.

Constructor & Destructor Documentation

◆ SourceCode()

NES::Compiler::SourceCode::SourceCode ( Language  language,
std::string  code 
)

Constructor to create a new source code artifact.

Parameters
languagethe language of this source code artifact.
codethe code

References NES_ASSERT.

Member Function Documentation

◆ getCode()

const std::string & NES::Compiler::SourceCode::getCode ( ) const

Returns the code.

Returns
std::string

Referenced by std::hash< const NES::Compiler::SourceCode >::operator()().

Here is the caller graph for this function:

◆ getLanguage()

const Language & NES::Compiler::SourceCode::getLanguage ( ) const

Returns the language of this source code.

Returns
Language

Referenced by std::hash< const NES::Compiler::SourceCode >::operator()().

Here is the caller graph for this function:

◆ operator!=()

bool NES::Compiler::SourceCode::operator!= ( const SourceCode rhs) const

Overload =! operator

Parameters
rhs
Returns

◆ operator==()

bool NES::Compiler::SourceCode::operator== ( const SourceCode rhs) const

Overload == operator

Parameters
rhs
Returns

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