cfront::TargetInfo Class Reference

#include <TargetInfo.hpp>


Public Types

enum  Type {
  POINTER, BOOL, CHAR, SHORT,
  INT, LONG, LLONG, FLOAT,
  DOUBLE, LDOUBLE, ENUM, VECTOR,
  LASTTYPE
}

Public Member Functions

 TargetInfo ()
size_t getSize (Type t) const
size_t getBitSize (Type t) const
size_t getAlign (Type t) const
void setSize (Type t, size_t s)
void setAlign (Type t, size_t align)

Private Attributes

size_t sizes_ [LASTTYPE]
size_t aligns_ [LASTTYPE]


Detailed Description

This class represents the compilation target information.

Definition at line 42 of file TargetInfo.hpp.


Member Enumeration Documentation

C Types used for TargetInfo.

Enumerator:
POINTER 
BOOL 
CHAR 
SHORT 
INT 
LONG 
LLONG 
FLOAT 
DOUBLE 
LDOUBLE 
ENUM 
VECTOR 
LASTTYPE 

Definition at line 48 of file TargetInfo.hpp.


Constructor & Destructor Documentation

cfront::TargetInfo::TargetInfo (  )  [inline]

Definition at line 64 of file TargetInfo.hpp.


Member Function Documentation

size_t cfront::TargetInfo::getSize ( Type  t  )  const [inline]

size_t cfront::TargetInfo::getBitSize ( Type  t  )  const [inline]

Return the type size in bits.

Definition at line 79 of file TargetInfo.hpp.

References sizes_.

size_t cfront::TargetInfo::getAlign ( Type  t  )  const [inline]

void cfront::TargetInfo::setSize ( Type  t,
size_t  s 
) [inline]

Set the size of the type in bytes.

Definition at line 96 of file TargetInfo.hpp.

References sizes_.

Referenced by makeDefaultTargetInfo(), and makeTargetInfo().

void cfront::TargetInfo::setAlign ( Type  t,
size_t  align 
) [inline]

Set the alignment of the type.

Definition at line 104 of file TargetInfo.hpp.

References aligns_.

Referenced by makeDefaultTargetInfo(), and makeTargetInfo().


Field Documentation

size_t cfront::TargetInfo::sizes_[LASTTYPE] [private]

Definition at line 111 of file TargetInfo.hpp.

Referenced by getBitSize(), getSize(), and setSize().

size_t cfront::TargetInfo::aligns_[LASTTYPE] [private]

Definition at line 113 of file TargetInfo.hpp.

Referenced by getAlign(), and setAlign().


The documentation for this class was generated from the following file:

Generated on Tue Mar 31 20:19:53 2009 for ctrump by  doxygen 1.5.6