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

This class abstracts the collection of compiler flags. Each collected flag is unique. Flags can be added, retrieved and two sets of CompilerFlags can also be merged. More...

#include <CompilerFlags.hpp>

Public Member Functions

 CompilerFlags ()=default
 
std::unordered_set< std::string > getFlags () const
 Get all of the compiler flags. More...
 
void addFlag (const std::string &flag)
 Add a new compiler flag to the collection. More...
 
void mergeFlags (const CompilerFlags &flags)
 Merge the compiler flags of another CompilerFlags with the flags of this instance. More...
 

Detailed Description

This class abstracts the collection of compiler flags. Each collected flag is unique. Flags can be added, retrieved and two sets of CompilerFlags can also be merged.

Constructor & Destructor Documentation

◆ CompilerFlags()

NES::Compiler::CompilerFlags::CompilerFlags ( )
default

Member Function Documentation

◆ addFlag()

void NES::Compiler::CompilerFlags::addFlag ( const std::string &  flag)

Add a new compiler flag to the collection.

Parameters
flagthe new compiler flag.

Referenced by NES::Compiler::CPPCompilerFlags::addDefaultCompilerFlags(), NES::Compiler::CPPCompilerFlags::addSharedLibraryFlag(), NES::Compiler::CPPCompiler::compile(), NES::Compiler::CPPCompilerFlags::enableDebugFlags(), NES::Compiler::CPPCompilerFlags::enableOptimizationFlags(), NES::Compiler::CPPCompilerFlags::enableProfilingFlags(), NES::Compiler::CUDAPlatform::getCompilerFlags(), and mergeFlags().

Here is the caller graph for this function:

◆ getFlags()

std::unordered_set< std::string > NES::Compiler::CompilerFlags::getFlags ( ) const

Get all of the compiler flags.

Returns
A std::unordered_set<std::string> of all the compiler flags.

Referenced by NES::Compiler::CPPCompiler::compile(), and mergeFlags().

Here is the caller graph for this function:

◆ mergeFlags()

void NES::Compiler::CompilerFlags::mergeFlags ( const CompilerFlags flags)

Merge the compiler flags of another CompilerFlags with the flags of this instance.

Parameters
flagsthe other CompilerFlags instance

References addFlag(), and getFlags().

Referenced by NES::Compiler::CPPCompiler::compile().

Here is the call graph for this function:
Here is the caller graph for this function:

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