te::da::LiteralEnvelope Class Referenceabstract

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

#include <LiteralEnvelope.h>

Inheritance diagram for te::da::LiteralEnvelope:
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...
 
int getSRID () const
 It returns the envelope SRS id. More...
 
te::gm::EnvelopegetValue () const
 It returns the associated envelope value. More...
 
TE_DEFINE_VISITABLE LiteralEnvelope (te::gm::Envelope *e, int srid)
 Constructor. More...
 
 LiteralEnvelope (const te::gm::Envelope &e, int srid)
 Constructor. More...
 
 LiteralEnvelope (const LiteralEnvelope &rhs)
 Copy constructor. More...
 
LiteralEnvelopeoperator= (const LiteralEnvelope &rhs)
 
void setSRID (int srid)
 It sets the envelope SRS id. More...
 
void setValue (te::gm::Envelope *e)
 It sets the envelope value associated to the Literal. More...
 
 ~LiteralEnvelope ()
 Destructor. More...
 

Private Attributes

std::auto_ptr< te::gm::Envelopem_eval
 The envelope value. More...
 
int m_srid
 The envelope SRS ID. More...
 

Detailed Description

A class that models a literal for Envelope values.

See also
Expression
Note
This class doesn't derive from Literal! In future we will do something to adjust this point!

Definition at line 51 of file LiteralEnvelope.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_DEFINE_VISITABLE te::da::LiteralEnvelope::LiteralEnvelope ( te::gm::Envelope e,
int  srid 
)

Constructor.

Parameters
eThe envelope value.
sridThe envelope SRS.
Note
The LiteralEnvelope will take the ownership of the given envelope.
te::da::LiteralEnvelope::LiteralEnvelope ( const te::gm::Envelope e,
int  srid 
)

Constructor.

Parameters
eThe envelope value.
sridThe envelope SRS.
te::da::LiteralEnvelope::LiteralEnvelope ( const LiteralEnvelope rhs)

Copy constructor.

te::da::LiteralEnvelope::~LiteralEnvelope ( )

Destructor.

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.
Expression* te::da::LiteralEnvelope::clone ( ) const
virtual

It creates a new copy of this expression.

Implements te::da::Expression.

int te::da::LiteralEnvelope::getSRID ( ) const
inline

It returns the envelope SRS id.

Returns
The envelope SRS id.

Definition at line 108 of file LiteralEnvelope.h.

te::gm::Envelope* te::da::LiteralEnvelope::getValue ( ) const

It returns the associated envelope value.

Returns
The associated envelope value.
LiteralEnvelope& te::da::LiteralEnvelope::operator= ( const LiteralEnvelope rhs)

Assignment operator.

void te::da::LiteralEnvelope::setSRID ( int  srid)
inline

It sets the envelope SRS id.

Parameters
sridThe envelope SRS id.

Definition at line 115 of file LiteralEnvelope.h.

void te::da::LiteralEnvelope::setValue ( te::gm::Envelope e)

It sets the envelope value associated to the Literal.

Parameters
eThe envelope value.
Note
The LiteralEnvelope will take the ownership of the given envelope.

Member Data Documentation

std::auto_ptr<te::gm::Envelope> te::da::LiteralEnvelope::m_eval
private

The envelope value.

Definition at line 119 of file LiteralEnvelope.h.

int te::da::LiteralEnvelope::m_srid
private

The envelope SRS ID.

Definition at line 120 of file LiteralEnvelope.h.


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