te::da::PropertyName Class Referenceabstract

A class that models the name of any property of an object. More...

#include <PropertyName.h>

Inheritance diagram for te::da::PropertyName:
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...
 
const std::string & getName () const
 It returns the property name. More...
 
PropertyNameoperator= (const PropertyName &rhs)
 
TE_DEFINE_VISITABLE PropertyName (const std::string &name)
 Constructor. More...
 
 PropertyName (const PropertyName &rhs)
 Copy constructor. More...
 
void setName (const std::string &name)
 It sets the property name. More...
 
 ~PropertyName ()
 Destructor. More...
 

Private Attributes

std::string m_name
 The property name. More...
 

Detailed Description

A class that models the name of any property of an object.

The property name can be used in scalar or spatial expressions to represent the value of that property for a particualr instance of an object.

See also
Expression

Definition at line 50 of file PropertyName.h.

Member Typedef Documentation

◆ ReturnType

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

Definition at line 58 of file BaseVisitable.h.

◆ VisitorType

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

◆ PropertyName() [1/2]

TE_DEFINE_VISITABLE te::da::PropertyName::PropertyName ( const std::string &  name)
inline

Constructor.

Parameters
nameThe property name.

Definition at line 61 of file PropertyName.h.

◆ PropertyName() [2/2]

te::da::PropertyName::PropertyName ( const PropertyName rhs)

Copy constructor.

◆ ~PropertyName()

te::da::PropertyName::~PropertyName ( )
inline

Destructor.

Definition at line 67 of file PropertyName.h.

Member Function Documentation

◆ accept()

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.

◆ clone()

Expression* te::da::PropertyName::clone ( ) const
virtual

It creates a new copy of this expression.

Implements te::da::Expression.

◆ getName()

const std::string& te::da::PropertyName::getName ( ) const
inline

It returns the property name.

Returns
The property name.

Definition at line 80 of file PropertyName.h.

◆ operator=()

PropertyName& te::da::PropertyName::operator= ( const PropertyName rhs)

Assignment operator.

◆ setName()

void te::da::PropertyName::setName ( const std::string &  name)
inline

It sets the property name.

Parameters
nameThe property name.

Definition at line 87 of file PropertyName.h.

Member Data Documentation

◆ m_name

std::string te::da::PropertyName::m_name
private

The property name.

Definition at line 91 of file PropertyName.h.


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