All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::fe::Literal Class Referenceabstract

This class can be used to represent literal values. More...

#include <Literal.h>

Inheritance diagram for te::fe::Literal:
te::fe::Expression te::common::BaseVisitable< Visitor >

Public Types

typedef R ReturnType
 
typedef Visitor VisitorType
 

Public Member Functions

virtual ReturnType accept (VisitorType &guest) const =0
 It call the visit method from the guest object. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 Literal (const std::string &value)
 It initializes a new Literal. More...
 
 ~Literal ()
 Destructor. More...
 
Accessor methods

Methods used to get or set properties.

const std::string & getValue () const
 It returns the literal value. More...
 
void setValue (const std::string &v)
 It sets the literal value. More...
 
Expression Re-implementation

Methods re-implemented from Expression.

Expressionclone () const
 It returns a clone of this object. More...
 

Private Attributes

std::string m_value
 Literal expression. (Mandatory) More...
 

Detailed Description

This class can be used to represent literal values.

A literal value is any part of a statement or expression that is to be used exactly as it is specified, rather than as a variable or other element. The Literal is used to encode literal scalar and geometric values.

See also
Expression, PropertyIsLike

Definition at line 56 of file Literal.h.

Member Typedef Documentation

typedef R te::common::BaseVisitable< Visitor , R >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

te::fe::Literal::Literal ( const std::string &  value)

It initializes a new Literal.

Parameters
valueThe literal value.
te::fe::Literal::~Literal ( )

Destructor.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< Visitor , R >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
Expression* te::fe::Literal::clone ( ) const
virtual

It returns a clone of this object.

Returns
A clone of this object.

Implements te::fe::Expression.

const std::string& te::fe::Literal::getValue ( ) const

It returns the literal value.

Returns
The literal value.
void te::fe::Literal::setValue ( const std::string &  v)

It sets the literal value.

Parameters
vThe literal value.

Member Data Documentation

std::string te::fe::Literal::m_value
private

Literal expression. (Mandatory)

Definition at line 111 of file Literal.h.


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