The type for variable-length multidimensional arrays.  
 More...
#include <Array.h>
The type for variable-length multidimensional arrays. 
- Note
 - This class was not designed to achieve performance, since it maps a vector of positions to one abstract data. This class is only a container to be used by database drivers. If you need a high performance array class with matrix operations, see the Matrix module. To access the data, you must define a vector of positions, where each dimension in the vector corresponds to the respective dimension in the array.
 
- See also
 - ArrayProperty, AbstractData 
 
Definition at line 59 of file Array.h.
 
      
        
          | te::dt::Array::Array  | 
          ( | 
          std::size_t  | 
          d,  | 
        
        
           | 
           | 
          int  | 
          t  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Multi-dimensional array constructor. 
- Parameters
 - 
  
    | d | The number of dimensions of the array.  | 
    | t | The data type.  | 
  
   
 
 
      
        
          | te::dt::Array::Array  | 
          ( | 
          const Array &  | 
          rhs | ) | 
           | 
        
      
 
Copy constructor. 
- Parameters
 - 
  
    | rhs | The right-hand-side instance.  | 
  
   
 
 
      
        
          | te::dt::Array::~Array  | 
          ( | 
           | ) | 
           | 
        
      
 
 
It creates a new clone of the array. 
- Returns
 - A new clone of the array. The caller will take its ownership. 
 
Implements te::dt::AbstractData.
 
 
Returns data from specified position. 
- Parameters
 - 
  
    | i | The position in the array to get data (d1, d2, ... dn). | 
  
   
- Returns
 - The data from specified position. 
 
 
 
      
        
          | std::size_t te::dt::Array::getDimension  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns the numbe of dimensions of the array. 
 
 
      
        
          | std::size_t te::dt::Array::getDimensionSize  | 
          ( | 
          std::size_t  | 
          i | ) | 
           const | 
        
      
 
Gets the number of elements in the i-th dimension. 
- Parameters
 - 
  
  
 
- Returns
 - The number of elements in the i-th dimension. 
 
 
 
      
        
          | int te::dt::Array::getElementsTypeCode  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns the data type of the elements of the array. 
- Note
 - The attribute types are listed in terralib/datatype/DataTypes.h 
 
 
 
  
  
      
        
          | int te::dt::Array::getTypeCode  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
Inserts data into specified position. 
- Parameters
 - 
  
    | data | The data to be inserted.  | 
    | pos | The position in the array to insert data (d1, d2, ... dn).  | 
  
   
 
 
      
        
          | Array& te::dt::Array::operator=  | 
          ( | 
          const Array &  | 
          rhs | ) | 
           | 
        
      
 
Assignment operator. 
- Parameters
 - 
  
    | rhs | The right-hand-side instance. | 
  
   
- Returns
 - A reference to this array. 
 
 
 
Access data in i index. 
- Parameters
 - 
  
    | i | The data index, a vector of std::size_t. | 
  
   
- Warning
 - The caller is reponsible for providing a valid index.
 
- Returns
 - A reference to the i-th data. 
 
 
 
  
  
      
        
          | std::string te::dt::Array::toString  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
A map from positions to data. 
Definition at line 151 of file Array.h.
 
 
  
  
      
        
          | std::size_t te::dt::Array::m_dimension | 
         
       
   | 
  
protected   | 
  
 
The number of dimensions. 
Definition at line 152 of file Array.h.
 
 
  
  
      
        
          | std::vector<std::size_t> te::dt::Array::m_dimensionSizes | 
         
       
   | 
  
protected   | 
  
 
The vector of sizes for the dimensions. 
Definition at line 153 of file Array.h.
 
 
  
  
      
        
          | int te::dt::Array::m_type | 
         
       
   | 
  
protected   | 
  
 
The data type of this array. 
Definition at line 154 of file Array.h.
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/datatype/Array.h