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.
Constructor. 
- Parameters
- 
  
    | name | The function name. |  | arg | The single function argument. |  
 
- Note
- The UnaryFunction will take the ownership of the given argument. 
 
 
      
        
          | te::da::UnaryFunction::UnaryFunction | ( | const std::string & | name, | 
        
          |  |  | const Expression & | arg | 
        
          |  | ) |  |  | 
      
 
Constructor. 
- Parameters
- 
  
    | name | The function name. |  | arg | The single function argument. |  
 
 
 
      
        
          | te::da::UnaryFunction::UnaryFunction | ( | const UnaryFunction & | rhs | ) |  | 
      
 
 
  
  | 
        
          | virtual te::da::UnaryFunction::~UnaryFunction | ( |  | ) |  |  | virtual | 
 
 
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. 
 
 
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. 
 
 
  
  | 
        
          | Expression* te::da::UnaryFunction::clone | ( |  | ) | const |  | virtual | 
 
 
  
  | 
        
          | Expression* te::da::Function::getArg | ( | std::size_t | i | ) | const |  | inherited | 
 
It returns the i-th function argument. 
- Parameters
- 
  
  
- Returns
- The it-th function argument. 
 
 
      
        
          | Expression* te::da::UnaryFunction::getArgument | ( |  | ) | const | 
      
 
It returns the function associated argument. 
- Returns
- The function associated argument. 
 
 
  
  | 
        
          | 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.
 
 
  
  | 
        
          | std::size_t te::da::Function::getNumArgs | ( |  | ) | const |  | inherited | 
 
It returns the number of arguments informed to the function. 
- Returns
- The number of parameters. 
 
 
  
  | 
        
          | Expression* te::da::Function::operator[] | ( | std::size_t | i | ) | const |  | inherited | 
 
It returns the i-th function argument. 
- Parameters
- 
  
  
- Returns
- The it-th function argument. 
 
 
      
        
          | 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. 
 
 
The list of arguments. 
Definition at line 118 of file Function.h.
 
 
  
  | 
        
          | std::string te::da::Function::m_name |  | protectedinherited | 
 
The function name. May be an operator symbol or just a regular name like ST_Intersects. 
Definition at line 117 of file Function.h.
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/dataaccess/query/UnaryFunction.h