Block-Structured AMR Software Framework
amrex::Parser Class Reference

#include <AMReX_Parser.H>

Classes

struct  Data
 

Public Member Functions

 Parser (std::string const &func_body)
 
 Parser ()=default
 
void define (std::string const &func_body)
 
 operator bool () const
 
void setConstant (std::string const &name, double c)
 
void registerVariables (Vector< std::string > const &vars)
 
void print () const
 
void printExe () const
 
int depth () const
 
int maxStackSize () const
 
std::string expr () const
 
std::set< std::string > symbols () const
 
template<int N>
ParserExecutor< N > compile () const
 This compiles for both GPU and CPU. More...
 
template<int N>
ParserExecutor< N > compileHost () const
 This compiles for CPU only. More...
 

Private Attributes

std::shared_ptr< Datam_data
 
Vector< std::string > m_vars
 

Constructor & Destructor Documentation

◆ Parser() [1/2]

amrex::Parser::Parser ( std::string const &  func_body)

◆ Parser() [2/2]

amrex::Parser::Parser ( )
default

Member Function Documentation

◆ compile()

template<int N>
ParserExecutor< N > amrex::Parser::compile

This compiles for both GPU and CPU.

◆ compileHost()

template<int N>
ParserExecutor< N > amrex::Parser::compileHost

This compiles for CPU only.

◆ define()

void amrex::Parser::define ( std::string const &  func_body)

◆ depth()

int amrex::Parser::depth ( ) const

◆ expr()

std::string amrex::Parser::expr ( ) const

◆ maxStackSize()

int amrex::Parser::maxStackSize ( ) const

◆ operator bool()

amrex::Parser::operator bool ( ) const
explicit

◆ print()

void amrex::Parser::print ( ) const

◆ printExe()

void amrex::Parser::printExe ( ) const

◆ registerVariables()

void amrex::Parser::registerVariables ( Vector< std::string > const &  vars)

◆ setConstant()

void amrex::Parser::setConstant ( std::string const &  name,
double  c 
)

◆ symbols()

std::set< std::string > amrex::Parser::symbols ( ) const

Member Data Documentation

◆ m_data

std::shared_ptr<Data> amrex::Parser::m_data
private

◆ m_vars

Vector<std::string> amrex::Parser::m_vars
private

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