VapourSynth-llvmexpr
Loading...
Searching...
No Matches
infix2postfix::preprocessor::MacroTable Class Reference

Public Member Functions

void define (Macro macro)
void undef (const std::string &name)
const Macrofind (const std::string &name) const
bool contains (const std::string &name) const
auto begin () const
auto end () const

Detailed Description

Definition at line 497 of file Preprocessor.cpp.

Member Function Documentation

◆ begin()

auto infix2postfix::preprocessor::MacroTable::begin ( ) const
inlinenodiscard

Definition at line 512 of file Preprocessor.cpp.

512{ return macros.begin(); }

◆ contains()

bool infix2postfix::preprocessor::MacroTable::contains ( const std::string & name) const
inlinenodiscard

Definition at line 508 of file Preprocessor.cpp.

508 {
509 return macros.contains(name);
510 }

◆ define()

void infix2postfix::preprocessor::MacroTable::define ( Macro macro)
inline

Definition at line 499 of file Preprocessor.cpp.

499{ macros[macro.name] = std::move(macro); }

References infix2postfix::preprocessor::Macro::name.

◆ end()

auto infix2postfix::preprocessor::MacroTable::end ( ) const
inlinenodiscard

Definition at line 513 of file Preprocessor.cpp.

513{ return macros.end(); }

◆ find()

const Macro * infix2postfix::preprocessor::MacroTable::find ( const std::string & name) const
inlinenodiscard

Definition at line 503 of file Preprocessor.cpp.

503 {
504 auto it = macros.find(name);
505 return it != macros.end() ? &it->second : nullptr;
506 }

◆ undef()

void infix2postfix::preprocessor::MacroTable::undef ( const std::string & name)
inline

Definition at line 501 of file Preprocessor.cpp.

501{ macros.erase(name); }

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