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

#include <AMReX_IParser.H>

Classes

struct  Data
 

Public Member Functions

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

Private Attributes

std::shared_ptr< Datam_data
 

Constructor & Destructor Documentation

◆ IParser() [1/2]

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

◆ IParser() [2/2]

amrex::IParser::IParser ( )
default

Member Function Documentation

◆ compile()

template<int N>
IParserExecutor< N > amrex::IParser::compile

This compiles for both GPU and CPU.

◆ compileHost()

template<int N>
IParserExecutor< N > amrex::IParser::compileHost

This compiles for CPU only.

◆ define()

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

◆ depth()

int amrex::IParser::depth ( ) const

◆ expr()

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

◆ maxStackSize()

int amrex::IParser::maxStackSize ( ) const

◆ operator bool()

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

◆ print()

void amrex::IParser::print ( ) const

◆ registerVariables()

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

◆ setConstant()

void amrex::IParser::setConstant ( std::string const &  name,
long long  c 
)

◆ symbols()

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

Member Data Documentation

◆ m_data

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

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