te::da::LiteralGeom Class Referenceabstract

A class that models a literal for Geometry values. More...

#include <LiteralGeom.h>

Inheritance diagram for te::da::LiteralGeom:
te::da::Literal te::da::Expression te::common::BaseVisitable< QueryVisitor >

Public Types

typedef void ReturnType
 
typedef QueryVisitor VisitorType
 

Public Member Functions

virtual ReturnType accept (VisitorType &guest) const =0
 It call the visit method from the guest object. More...
 
Expressionclone () const
 It creates a new copy of this expression. More...
 
te::dt::AbstractDatagetValue () const
 It returns the value associated to the literal. More...
 
TE_DEFINE_VISITABLE LiteralGeom (te::gm::Geometry *g)
 Constructor. More...
 
 LiteralGeom (const te::gm::Geometry &g)
 Constructor. More...
 
 LiteralGeom (const LiteralGeom &rhs)
 Copy constructor. More...
 
LiteralGeomoperator= (const LiteralGeom &rhs)
 
void setValue (te::dt::AbstractData *v)
 It sets the value associated to the literal. More...
 
 ~LiteralGeom ()
 Destructor. More...
 

Protected Attributes

std::unique_ptr< te::dt::AbstractDatam_value
 

Detailed Description

A class that models a literal for Geometry values.

See also
Literal

Definition at line 46 of file LiteralGeom.h.

Member Typedef Documentation

typedef void te::common::BaseVisitable< QueryVisitor , void >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

te::da::LiteralGeom::LiteralGeom ( te::gm::Geometry g)

Constructor.

Parameters
gThe geometry value.
Note
The LiteralGeom will take the ownership of the given geometry.

Definition at line 30 of file LiteralGeom.cpp.

Referenced by clone(), and LiteralGeom().

te::da::LiteralGeom::LiteralGeom ( const te::gm::Geometry g)

Constructor.

Parameters
gThe geometry value.

Definition at line 35 of file LiteralGeom.cpp.

References LiteralGeom(), operator=(), and ~LiteralGeom().

te::da::LiteralGeom::LiteralGeom ( const LiteralGeom rhs)
default

Copy constructor.

te::da::LiteralGeom::~LiteralGeom ( )
default

Destructor.

Referenced by LiteralGeom().

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< QueryVisitor , void >::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.
te::da::Expression * te::da::LiteralGeom::clone ( ) const
virtual

It creates a new copy of this expression.

Reimplemented from te::da::Literal.

Definition at line 49 of file LiteralGeom.cpp.

References LiteralGeom().

te::dt::AbstractData * te::da::Literal::getValue ( ) const
inherited
te::da::LiteralGeom & te::da::LiteralGeom::operator= ( const LiteralGeom rhs)
default

Assignment operator.

Referenced by LiteralGeom().

void te::da::Literal::setValue ( te::dt::AbstractData v)
inherited

It sets the value associated to the literal.

Parameters
vThe value to be assigned to the literal. The literal takes its ownership.

Definition at line 68 of file dataaccess/query/Literal.cpp.

References te::da::Literal::m_value.

Member Data Documentation

std::unique_ptr<te::dt::AbstractData> te::da::Literal::m_value
protectedinherited

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