TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
ParserView Class Reference

#include <ParserView.h>

Inheritance diagram for ParserView:
[legend]
Collaboration diagram for ParserView:
[legend]

Public Member Functions

 ParserView ()
 ParserView (Parser_U &p)
 ParserView (std::string &expr, int nvar)
void set (Parser_U &p)
void parseString () override
KOKKOS_INLINE_FUNCTION void setVar (int i, double val, int threadId) const
KOKKOS_INLINE_FUNCTION double eval (int threadId) const
KOKKOS_INLINE_FUNCTION int acquire () const
KOKKOS_INLINE_FUNCTION void release (int threadId) const
Public Member Functions inherited from Parser
 Parser ()
 Parser (const Parser &)
virtual ~Parser ()
void set (const Parser &)
 Parser (std::string &, int n=1)
void init_parser ()
double eval ()
void setVar (const char *sv, double val)
void setVar (const std::string &v, double val)
void setVar (int i, double val)
virtual void setNbVar (int nvar)
void addVar (const char *)
int getmaxVar ()
int getNbVar ()
std::string & getString ()
void setString (const std::string &s)
void addCst (const Constante &cst)
void setImpulsion (double tinit, double periode)

Additional Inherited Members

Protected Member Functions inherited from Parser
int test_op_binaire (int type)
double eval (const PNodePod &node)
KOKKOS_INLINE_FUNCTION double evalOp (const PNodePod &node, double x, double y)
KOKKOS_INLINE_FUNCTION double evalFunc (const PNodePod &node, double x)
void parserState0 (StringTokenizer *, PSTACK(PNode) *, STACK(int) *)
void parserState1 (StringTokenizer *, PSTACK(PNode) *, STACK(int) *)
void parserState2 (StringTokenizer *, PSTACK(PNode) *, STACK(int) *)
int searchVar (const std::string &s)
int searchVar (const char *)
int searchCst (const std::string &v)
int searchFunc (const std::string &v)
 LIST (Constante) les_cst
Static Protected Member Functions inherited from Parser
static int precedence (int)
Protected Attributes inherited from Parser
int state
Constante c_pi
double impuls_T
double impuls_t0
double impuls_tn
double impuls_tempo
PNoderoot
std::vector< PNodePodPNodes
std::string str
ArrOfDouble les_var
Noms les_var_names
std::map< std::string, int > map_function_
int maxvar
int ivar

Detailed Description

Definition at line 38 of file ParserView.h.

Constructor & Destructor Documentation

◆ ParserView() [1/3]

ParserView::ParserView ( )
inline

Constructors (generally by copy of a ParserU) See an example here: Champ_Generique_Transformation::get_champ()

Definition at line 45 of file ParserView.h.

◆ ParserView() [2/3]

ParserView::ParserView ( Parser_U & p)
inline

Definition at line 46 of file ParserView.h.

◆ ParserView() [3/3]

ParserView::ParserView ( std::string & expr,
int nvar )
inline

Definition at line 47 of file ParserView.h.

Member Function Documentation

◆ acquire()

KOKKOS_INLINE_FUNCTION int ParserView::acquire ( ) const
inline

Token: get a unic threadId to fill safely les_var_view

Definition at line 77 of file ParserView.h.

◆ eval()

KOKKOS_INLINE_FUNCTION double ParserView::eval ( int threadId) const
inline

Definition at line 69 of file ParserView.h.

◆ parseString()

void ParserView::parseString ( )
inlineoverridevirtual

Parse string

Reimplemented from Parser.

Definition at line 52 of file ParserView.h.

◆ release()

KOKKOS_INLINE_FUNCTION void ParserView::release ( int threadId) const
inline

Definition at line 79 of file ParserView.h.

◆ set()

void ParserView::set ( Parser_U & p)
inline

Definition at line 48 of file ParserView.h.

◆ setVar()

KOKKOS_INLINE_FUNCTION void ParserView::setVar ( int i,
double val,
int threadId ) const
inline

Definition at line 64 of file ParserView.h.


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