Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::LitteralExpressionImpl Class Reference

Implementation of a literal expression containing a scalar. More...

#include <arcane/core/expr/LitteralExpressionImpl.h>

Inheritance diagram for Arcane::LitteralExpressionImpl:
Collaboration diagram for Arcane::LitteralExpressionImpl:

Public Member Functions

 LitteralExpressionImpl (const ScalarVariant &value)
virtual void assign (IExpressionImpl *)
virtual void assign (IExpressionImpl *, IntegerConstArrayView)
virtual void apply (ExpressionResult *result)
virtual Integer vectorSize () const
 Number of elements in the vector.
Public Member Functions inherited from Arcane::ExpressionImpl
virtual void addRef ()
virtual void removeRef ()
virtual void setTrace (bool v)
virtual void dumpIf (IExpressionImpl *test_expr, Array< Expression > &exprs)

Private Attributes

ScalarVariant m_value

Additional Inherited Members

Protected Member Functions inherited from Arcane::ExpressionImpl
bool isTraceMode () const
Protected Member Functions inherited from Arcane::IExpressionImpl
virtual ~IExpressionImpl ()
 Releases resources. Only called by a removeRef().
Protected Attributes inherited from Arcane::ExpressionImpl
OperatorMngm_op_mng

Detailed Description

Implementation of a literal expression containing a scalar.

Definition at line 40 of file LitteralExpressionImpl.h.

Constructor & Destructor Documentation

◆ LitteralExpressionImpl()

Arcane::LitteralExpressionImpl::LitteralExpressionImpl ( const ScalarVariant & value)
explicit

Definition at line 29 of file LitteralExpressionImpl.cc.

Member Function Documentation

◆ apply()

void Arcane::LitteralExpressionImpl::apply ( ExpressionResult * result)
virtual

Implements Arcane::IExpressionImpl.

Definition at line 39 of file LitteralExpressionImpl.cc.

◆ assign() [1/2]

virtual void Arcane::LitteralExpressionImpl::assign ( IExpressionImpl * )
inlinevirtual

Implements Arcane::IExpressionImpl.

Definition at line 49 of file LitteralExpressionImpl.h.

◆ assign() [2/2]

virtual void Arcane::LitteralExpressionImpl::assign ( IExpressionImpl * ,
IntegerConstArrayView  )
inlinevirtual

Implements Arcane::IExpressionImpl.

Definition at line 50 of file LitteralExpressionImpl.h.

◆ vectorSize()

virtual Integer Arcane::LitteralExpressionImpl::vectorSize ( ) const
inlinevirtual

Number of elements in the vector.

If the expression is a vector and a terminal symbol (a leaf), it returns its number of elements. Otherwise, it returns 0.

Implements Arcane::IExpressionImpl.

Definition at line 52 of file LitteralExpressionImpl.h.

Member Data Documentation

◆ m_value

ScalarVariant Arcane::LitteralExpressionImpl::m_value
private

Definition at line 56 of file LitteralExpressionImpl.h.


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