comma::ArrayType Class Reference
#include <Type.h>
List of all members.
Detailed Description
Definition at line 1022 of file Type.h.
Member Typedef Documentation
Member Function Documentation
      
        
          | iterator comma::ArrayType::begin | ( |  | ) |  [inline] | 
      
 
 
      
        
          | static bool comma::ArrayType::classof | ( | const Ast * | node | ) |  [inline, static] | 
      
 
 
      
        
          | static bool comma::ArrayType::classof | ( | const ArrayType * | node | ) |  [inline, static] | 
      
 
 
      
        
          | iterator comma::ArrayType::end | ( |  | ) |  [inline] | 
      
 
 
      
        
          | Type* comma::ArrayType::getComponentType | ( |  | ) | const  [inline] | 
      
 
Returns the component type of this array. 
Definition at line 1061 of file Type.h.
 
 
      
        
          | ArrayDecl* comma::ArrayType::getDefiningDecl | ( |  | ) |  [inline] | 
      
 
Returns the i'th index type of this array. 
Definition at line 1084 of file Type.h.
 
 
      
        
          | const ArrayDecl* comma::ArrayType::getDefiningDecl | ( |  | ) | const  [inline] | 
      
 
Returns the declaration defining this array type. 
Definition at line 1081 of file Type.h.
 
 
Returns the identifier associated with this array type. 
Definition at line 1121 of file Type.cpp.
 
 
      
        
          | DiscreteType* comma::ArrayType::getIndexType | ( | unsigned | i | ) |  [inline] | 
      
 
Returns the i'th index type of this array. 
Definition at line 1044 of file Type.h.
 
 
      
        
          | const DiscreteType* comma::ArrayType::getIndexType | ( | unsigned | i | ) | const  [inline] | 
      
 
Returns the i'th index type of this array. 
Definition at line 1043 of file Type.h.
 
 
      
        
          | unsigned comma::ArrayType::getRank | ( |  | ) | const  [inline] | 
      
 
Returns the rank (dimensionality) of this array type. 
Definition at line 1032 of file Type.h.
 
 
      
        
          | const ArrayType* comma::ArrayType::getRootType | ( |  | ) | const  [inline] | 
      
 
 
      
        
          | ArrayType* comma::ArrayType::getRootType | ( |  | ) |  [inline] | 
      
 
 
      
        
          | bool comma::ArrayType::isConstrained | ( |  | ) | const  [inline, virtual] | 
      
 
 
      
        
          | bool ArrayType::isStaticallyConstrained | ( |  | ) | const | 
      
 
Returns true if this array type is statically constrained. 
Definition at line 1153 of file Type.cpp.
 
 
      
        
          | bool comma::ArrayType::isVector | ( |  | ) | const  [inline] | 
      
 
Returns true if this is a vector type (an array of rank 1). 
Definition at line 1035 of file Type.h.
 
 
      
        
          | uint64_t ArrayType::length | ( |  | ) | const | 
      
 
Return the length of the first dimension. This operation is valid only if this is a statically constrained array type. 
FIXME: There is an problem with overflow here when the bounds are at the limit for a signed 64 bit integer. One solution is to have this method return an APInt. Another is to make the length undefined for arrays with a null index and return a "zero based" result. 
Definition at line 1129 of file Type.cpp.
 
 
Friends And Related Function Documentation
The documentation for this class was generated from the following files: