A base class for unary functions.
More...
#include <UnaryFunction.h>
A base class for unary functions.
- See also
- Function, UnaryOp
Definition at line 43 of file UnaryFunction.h.
◆ ReturnType
◆ VisitorType
◆ UnaryFunction() [1/3]
Constructor.
- Parameters
-
| name | The function name. |
| arg | The single function argument. |
- Note
- The UnaryFunction will take the ownership of the given argument.
Referenced by te::da::Avg::Avg(), te::da::Avg::Avg(), te::da::Count::Count(), te::da::Count::Count(), te::da::IsNull::IsNull(), te::da::IsNull::IsNull(), te::da::Max::Max(), te::da::Max::Max(), te::da::Min::Min(), te::da::Min::Min(), operator=(), te::da::ST_Boundary::ST_Boundary(), te::da::ST_Boundary::ST_Boundary(), te::da::ST_Collect::ST_Collect(), te::da::ST_Collect::ST_Collect(), te::da::ST_Dump::ST_Dump(), te::da::ST_Dump::ST_Dump(), te::da::ST_DumpRings::ST_DumpRings(), te::da::ST_DumpRings::ST_DumpRings(), te::da::ST_MakePolygon::ST_MakePolygon(), te::da::ST_MakePolygon::ST_MakePolygon(), te::da::ST_NumGeometries::ST_NumGeometries(), te::da::ST_NumGeometries::ST_NumGeometries(), te::da::ST_Union::ST_Union(), te::da::ST_Union::ST_Union(), te::da::StdDev::StdDev(), te::da::StdDev::StdDev(), te::da::Sum::Sum(), te::da::Sum::Sum(), UnaryFunction(), te::da::UnaryOp::UnaryOp(), te::da::UnaryOp::UnaryOp(), te::da::Variance::Variance(), and te::da::Variance::Variance().
◆ UnaryFunction() [2/3]
| te::da::UnaryFunction::UnaryFunction |
( |
const std::string & | name, |
|
|
const Expression & | arg ) |
Constructor.
- Parameters
-
| name | The function name. |
| arg | The single function argument. |
◆ UnaryFunction() [3/3]
| te::da::UnaryFunction::UnaryFunction |
( |
const UnaryFunction & | rhs | ) |
|
◆ ~UnaryFunction()
| virtual te::da::UnaryFunction::~UnaryFunction |
( |
| ) |
|
|
virtual |
◆ accept()
It call the visit method from the guest object.
- Parameters
-
| guest | The guest or visitor. |
- Returns
- Any valid value define by the template type R.
◆ add()
It adds the argument to the function list of arguments.
- Parameters
-
| arg | The argument to be added. |
- Note
- The Function will take the ownership of the given argument.
References te::da::Expression::Expression().
◆ clone()
| Expression * te::da::UnaryFunction::clone |
( |
| ) |
const |
|
virtual |
◆ getArg()
| Expression * te::da::Function::getArg |
( |
std::size_t | i | ) |
const |
|
inherited |
◆ getArgument()
| Expression * te::da::UnaryFunction::getArgument |
( |
| ) |
const |
It returns the function associated argument.
- Returns
- The function associated argument.
◆ getName()
| const std::string & te::da::Function::getName |
( |
| ) |
const |
|
inlineinherited |
It returns the function name.
- Returns
- The function name.
Definition at line 79 of file Function.h.
References m_name.
◆ getNumArgs()
| std::size_t te::da::Function::getNumArgs |
( |
| ) |
const |
|
inherited |
It returns the number of arguments informed to the function.
- Returns
- The number of parameters.
◆ operator=()
◆ operator[]()
| Expression * te::da::Function::operator[] |
( |
std::size_t | i | ) |
const |
|
inherited |
◆ setArgument()
| void te::da::UnaryFunction::setArgument |
( |
Expression * | arg | ) |
|
It sets the function argument.
- Parameters
-
| arg | The single function argument. |
- Note
- The UnaryFunction will take the ownership of the given argument.
◆ m_args
The list of arguments.
Definition at line 118 of file Function.h.
◆ m_name
| std::string te::da::Function::m_name |
|
protectedinherited |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/dataaccess/query/UnaryFunction.h