Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages
basic_type Class Reference#include <basic_type.h>
List of all members.
Constructor & Destructor Documentation
basic_type::basic_type |
( |
|
) |
[inline] |
|
basic_type::basic_type |
( |
unsigned int |
sign, |
|
|
unsigned int |
length, |
|
|
unsigned int |
base_type, |
|
|
unsigned int |
parse_only = 0 |
|
) |
[inline] |
|
Member Function Documentation
int basic_type::alignment |
( |
|
) |
|
|
|
Definition at line 282 of file basic_type.cc.
References base_type(), CHAR, CHAR_ALIGN, DOUBLE_ALIGN, FLOAT, FLOAT_ALIGN, INT, INT_ALIGN, length(), LONG, LONG_ALIGN, LONGDOUBLE_ALIGN, LONGLONG, SHORT, SHORT_ALIGN, CBZ::SyntaxError(), and VOID. |
string basic_type::base_name |
( |
|
) |
const |
|
void basic_type::base_type |
( |
unsigned int |
bt |
) |
[inline, private] |
|
unsigned int basic_type::base_type |
( |
|
) |
const [inline, private] |
|
void basic_type::finish |
( |
|
) |
|
|
bool basic_type::is_arithmetic |
( |
|
) |
const [inline] |
|
bool basic_type::is_char |
( |
|
) |
const [inline] |
|
bool basic_type::is_ellipsis |
( |
|
) |
const [inline] |
|
bool basic_type::is_float |
( |
|
) |
const [inline] |
|
bool basic_type::is_int |
( |
|
) |
const [inline] |
|
bool basic_type::is_integer |
( |
|
) |
const [inline] |
|
bool basic_type::is_long |
( |
|
) |
const [inline] |
|
bool basic_type::is_longlong |
( |
|
) |
const [inline] |
|
bool basic_type::is_no_length |
( |
|
) |
const [inline] |
|
bool basic_type::is_no_sign |
( |
|
) |
const [inline] |
|
bool basic_type::is_no_type |
( |
|
) |
const [inline] |
|
bool basic_type::is_scalar |
( |
|
) |
const [inline] |
|
bool basic_type::is_short |
( |
|
) |
const [inline] |
|
bool basic_type::is_signed |
( |
|
) |
const [inline] |
|
bool basic_type::is_unsigned |
( |
|
) |
const [inline] |
|
bool basic_type::is_void |
( |
|
) |
const [inline] |
|
void basic_type::length |
( |
unsigned int |
l |
) |
[inline, private] |
|
unsigned int basic_type::length |
( |
|
) |
const [inline, private] |
|
string basic_type::length_name |
( |
|
) |
const |
|
|
Definition at line 158 of file basic_type.cc.
References _base_type, _length, _sign, CBZ::ANSIOnly, base_name(), is_char(), is_float(), is_int(), is_long(), is_longlong(), is_no_length(), is_no_sign(), is_no_type(), length_name(), set_longlong(), set_no_length(), set_no_sign(), sign(), sign_name(), CBZ::SyntaxError(), and CBZ::Warning().
Referenced by primNode::merge_in(). |
bool basic_type::operator!= |
( |
const basic_type & |
bt2 |
) |
const [inline] |
|
bool basic_type::operator< |
( |
const basic_type & |
bt2 |
) |
const [inline] |
|
bool basic_type::operator== |
( |
const basic_type & |
bt2 |
) |
const [inline] |
|
void basic_type::parse_only |
( |
bool |
po |
) |
[inline] |
|
bool basic_type::parse_only |
( |
|
) |
const [inline] |
|
void basic_type::set_char |
( |
|
) |
[inline] |
|
void basic_type::set_ellipsis |
( |
|
) |
[inline] |
|
void basic_type::set_float |
( |
|
) |
[inline] |
|
void basic_type::set_int |
( |
|
) |
[inline] |
|
void basic_type::set_long |
( |
|
) |
[inline] |
|
void basic_type::set_longlong |
( |
|
) |
[inline] |
|
void basic_type::set_no_length |
( |
|
) |
[inline] |
|
void basic_type::set_no_sign |
( |
|
) |
[inline] |
|
void basic_type::set_no_type |
( |
|
) |
[inline] |
|
void basic_type::set_short |
( |
|
) |
[inline] |
|
void basic_type::set_signed |
( |
|
) |
[inline] |
|
void basic_type::set_unsigned |
( |
|
) |
[inline] |
|
void basic_type::set_void |
( |
|
) |
[inline] |
|
void basic_type::sign |
( |
unsigned int |
s |
) |
[inline, private] |
|
unsigned int basic_type::sign |
( |
|
) |
const [inline, private] |
|
string basic_type::sign_name |
( |
|
) |
const |
|
int basic_type::to_num |
( |
|
) |
const |
|
string basic_type::to_string |
( |
|
) |
const |
|
|
Definition at line 364 of file basic_type.cc.
References base_name(), base_type(), CHAR, ELLIPSIS, FLOAT, INT, is_unsigned(), length(), length_name(), parse_only(), sign_name(), and VOID.
Referenced by print_walker::at_prim(), print_tree_visitor::at_prim(), primNode::output_type(), P::type_name(), and NodeInfo::type_name(). |
Member Data Documentation
unsigned int basic_type::_base_type [private]
|
|
|
Definition at line 93 of file basic_type.h.
Referenced by base_type(), basic_type(), is_arithmetic(), is_char(), is_ellipsis(), is_float(), is_int(), is_integer(), is_no_type(), is_scalar(), is_void(), merge_in(), set_char(), set_ellipsis(), set_float(), set_int(), set_no_type(), set_void(), and to_num(). |
unsigned int basic_type::_length [private]
|
|
|
Definition at line 94 of file basic_type.h.
Referenced by basic_type(), is_long(), is_longlong(), is_no_length(), is_short(), length(), merge_in(), set_long(), set_longlong(), set_no_length(), set_short(), and to_num(). |
unsigned int basic_type::_parse_only [private]
|
|
unsigned int basic_type::_sign [private]
|
|
const unsigned int basic_type::BYTE_LENGTH = CHAR_BIT [static]
|
|
const basic_type basic_type::Char [static]
|
|
const unsigned int basic_type::CHAR = 0x2 [static, private]
|
|
const unsigned int basic_type::CHAR_ALIGN = CHAR_SIZE [static]
|
|
const unsigned int basic_type::CHAR_SIZE = sizeof(char) [static]
|
|
const basic_type basic_type::Double [static]
|
|
const unsigned int basic_type::DOUBLE_ALIGN = DOUBLE_SIZE [static]
|
|
const unsigned int basic_type::DOUBLE_SIZE = sizeof(double) [static]
|
|
const basic_type basic_type::Ellipsis [static]
|
|
const unsigned int basic_type::ELLIPSIS = 0x5 [static, private]
|
|
const basic_type basic_type::Float [static]
|
|
const unsigned int basic_type::FLOAT = 0x3 [static, private]
|
|
const unsigned int basic_type::FLOAT_ALIGN = FLOAT_SIZE [static]
|
|
const unsigned int basic_type::FLOAT_SIZE = sizeof(float) [static]
|
|
const basic_type basic_type::Int [static]
|
|
const unsigned int basic_type::INT = 0x1 [static, private]
|
|
const unsigned int basic_type::INT_ALIGN = INT_SIZE [static]
|
|
const unsigned int basic_type::INT_SIZE = sizeof(int) [static]
|
|
const basic_type basic_type::IntParseOnly [static]
|
|
const basic_type basic_type::Long [static]
|
|
const unsigned int basic_type::LONG = 0x2 [static, private]
|
|
const unsigned int basic_type::LONG_ALIGN = LONG_SIZE [static]
|
|
const unsigned int basic_type::LONG_SIZE = sizeof(long) [static]
|
|
const basic_type basic_type::LongDouble [static]
|
|
const unsigned int basic_type::LONGDOUBLE_SIZE = sizeof(long double) [static]
|
|
const basic_type basic_type::LongLong [static]
|
|
const unsigned int basic_type::LONGLONG = 0x3 [static, private]
|
|
const unsigned int basic_type::NO_LENGTH = 0x0 [static, private]
|
|
const unsigned int basic_type::NO_SIGN = 0x0 [static, private]
|
|
const unsigned int basic_type::NO_TYPE = 0x0 [static, private]
|
|
const unsigned int basic_type::PARSE_ONLY = 0x1 [static, private]
|
|
const unsigned int basic_type::POINTER_ALIGN = POINTER_SIZE [static]
|
|
const unsigned int basic_type::POINTER_SIZE = sizeof(void *) [static]
|
|
const basic_type basic_type::SChar [static]
|
|
const basic_type basic_type::Short [static]
|
|
const unsigned int basic_type::SHORT = 0x1 [static, private]
|
|
const unsigned int basic_type::SHORT_ALIGN = SHORT_SIZE [static]
|
|
const unsigned int basic_type::SHORT_SIZE = sizeof(short) [static]
|
|
const basic_type basic_type::Signed [static]
|
|
const unsigned int basic_type::SIGNED = 0x1 [static, private]
|
|
const basic_type basic_type::SInt [static]
|
|
const basic_type basic_type::SLong [static]
|
|
const basic_type basic_type::SLongLong [static]
|
|
const basic_type basic_type::SShort [static]
|
|
const unsigned int basic_type::TARGET_MAX_INT = INT_MAX [static]
|
|
const unsigned int basic_type::TARGET_MAX_LONG = LONG_MAX [static]
|
|
const unsigned int basic_type::TARGET_MAX_UCHAR = 256 [static]
|
|
const unsigned int basic_type::TARGET_MAX_UINT = UINT_MAX [static]
|
|
const unsigned int basic_type::TARGET_MAX_ULONG = ULONG_MAX [static]
|
|
const basic_type basic_type::UChar [static]
|
|
const basic_type basic_type::UInt [static]
|
|
const basic_type basic_type::ULong [static]
|
|
const basic_type basic_type::ULongLong [static]
|
|
const basic_type basic_type::Unsigned [static]
|
|
const unsigned int basic_type::UNSIGNED = 0x2 [static, private]
|
|
const basic_type basic_type::UShort [static]
|
|
const basic_type basic_type::Void [static]
|
|
const unsigned int basic_type::VOID = 0x4 [static, private]
|
|
The documentation for this class was generated from the following files:
|