The definition of a function that can be used in a query object.  
 More...
#include <FunctionDefn.h>
The definition of a function that can be used in a query object. 
All functions must have a name in lower case letters.
- See also
 - FunctionCatalog, FunctionCatalogManager, FunctionParameter 
 
Definition at line 56 of file FunctionDefn.h.
 
      
        
          | te::da::FunctionDefn::FunctionDefn  | 
          ( | 
          const std::string &  | 
          name,  | 
        
        
           | 
           | 
          int  | 
          retValType = te::dt::VOID_TYPE,  | 
        
        
           | 
           | 
          bool  | 
          isAggregate = false,  | 
        
        
           | 
           | 
          std::string *  | 
          description = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | name | The function name.  | 
    | retValType | The return value type (void by default).  | 
    | isAggregate | Tells if function is an aggregate function (false by default).  | 
    | description | A brief description about the function (NULL by default). The FunctionDefn will take the ownership of the given description.  | 
  
   
 
 
      
        
          | te::da::FunctionDefn::~FunctionDefn  | 
          ( | 
           | ) | 
           | 
        
      
 
 
It adds the parameter to the function list of parameters. 
- Parameters
 - 
  
    | p | The parameter to be added. | 
  
   
- Note
 - The FunctionDefn will take the ownership of the given parameter. 
 
Definition at line 159 of file FunctionDefn.h.
 
 
  
  
      
        
          | std::string* te::da::FunctionDefn::getDescription  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
It returns a brief description about the function. 
- Returns
 - A brief description about the function or NULL if none is provide. 
 
Definition at line 125 of file FunctionDefn.h.
 
 
  
  
      
        
          | const std::string& te::da::FunctionDefn::getName  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
It returns the function name. 
- Returns
 - The function name. 
 
Definition at line 81 of file FunctionDefn.h.
 
 
  
  
      
        
          | std::size_t te::da::FunctionDefn::getNumParams  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
It returns the number of parameters for the function. 
- Returns
 - The number of parameters. 
 
Definition at line 139 of file FunctionDefn.h.
 
 
  
  
      
        
          | int te::da::FunctionDefn::getRetValType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
It returns the data type of the return value. 
- Returns
 - The data type of the return value. 
 
Definition at line 97 of file FunctionDefn.h.
 
 
  
  
      
        
          | bool te::da::FunctionDefn::isAggregate  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
It returns true if it is an aggregate function, otherwise, returns false. 
- Returns
 - True if it is an aggregate function, otherwise, returns false. 
 
Definition at line 111 of file FunctionDefn.h.
 
 
It returns the i-th function parameter. 
- Parameters
 - 
  
  
 
- Returns
 - The i-th function parameter.
 
- Note
 - It will not check the index range. 
 
Definition at line 150 of file FunctionDefn.h.
 
 
      
        
          | void te::da::FunctionDefn::setDescription  | 
          ( | 
          std::string *  | 
          description | ) | 
           | 
        
      
 
It sets a brief description about the function. 
- Parameters
 - 
  
    | description | A brief description about the function. The FunctionDefn will take the ownership of the given description.  | 
  
   
 
 
  
  
      
        
          | void te::da::FunctionDefn::SetIsAggregate  | 
          ( | 
          bool  | 
          a | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
It tells if the function is an aggregate function or not. 
- Parameters
 - 
  
    | a | If true the function is an aggeragte function otherwise it is not.  | 
  
   
Definition at line 118 of file FunctionDefn.h.
 
 
  
  
      
        
          | void te::da::FunctionDefn::setName  | 
          ( | 
          const std::string &  | 
          name | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
It sets the function name;. 
- Parameters
 - 
  
  
 
- Note
 - If the function belongs to a FunctionCatalog, don't call this method! 
 
Definition at line 90 of file FunctionDefn.h.
 
 
  
  
      
        
          | void te::da::FunctionDefn::setRetValType  | 
          ( | 
          int  | 
          r | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
It sets the data type of the return value. 
- Parameters
 - 
  
    | r | The data type of the return value.  | 
  
   
Definition at line 104 of file FunctionDefn.h.
 
 
  
  
      
        
          | std::string* te::da::FunctionDefn::m_description | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | bool te::da::FunctionDefn::m_isAggregate | 
         
       
   | 
  
protected   | 
  
 
A flag that defines if the function is an aggregate one. 
Definition at line 166 of file FunctionDefn.h.
 
 
  
  
      
        
          | std::string te::da::FunctionDefn::m_name | 
         
       
   | 
  
protected   | 
  
 
The function name. It may be an operator symbol or just a regular name like st_intersects. 
Definition at line 163 of file FunctionDefn.h.
 
 
  
  
      
        
          | int te::da::FunctionDefn::m_retValType | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/dataaccess/query/FunctionDefn.h