NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
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... | |
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.
|
default |
void NES::Compiler::CompilerFlags::addFlag | ( | const std::string & | flag | ) |
Add a new compiler flag to the collection.
flag | the 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().
std::unordered_set< std::string > NES::Compiler::CompilerFlags::getFlags | ( | ) | const |
Get all of the compiler flags.
Referenced by NES::Compiler::CPPCompiler::compile(), and mergeFlags().
void NES::Compiler::CompilerFlags::mergeFlags | ( | const CompilerFlags & | flags | ) |
Merge the compiler flags of another CompilerFlags with the flags of this instance.
flags | the other CompilerFlags instance |
References addFlag(), and getFlags().
Referenced by NES::Compiler::CPPCompiler::compile().