Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CPPSimpleType Class Reference

#include <cppSimpleType.h>

Inheritance diagram for CPPSimpleType:

CPPType CPPDeclaration List of all members.

Public Types

enum  Type {
  T_bool, T_char, T_int, T_float,
  T_double, T_void, T_unknown
}
enum  Flags {
  F_long = 0x001, F_longlong = 0x002, F_short = 0x004, F_unsigned = 0x008,
  F_signed = 0x010
}

Public Member Functions

 CPPSimpleType (Type type, int flags=0)
virtual bool is_tbd () const
virtual string get_preferred_name () const
virtual void output (ostream &out, int indent_level, CPPScope *scope, bool complete) const
virtual SubType get_subtype () const
virtual CPPSimpleType * as_simple_type ()

Public Attributes

Type _type
int _flags

Protected Member Functions

virtual bool is_equal (const CPPDeclaration *other) const
virtual bool is_less (const CPPDeclaration *other) const

Member Enumeration Documentation

enum CPPSimpleType::Flags
 

Enumeration values:
F_long 
F_longlong 
F_short 
F_unsigned 
F_signed 

Definition at line 42 of file cppSimpleType.h.

enum CPPSimpleType::Type
 

Enumeration values:
T_bool 
T_char 
T_int 
T_float 
T_double 
T_void 
T_unknown 

Definition at line 32 of file cppSimpleType.h.


Constructor & Destructor Documentation

CPPSimpleType::CPPSimpleType Type  type,
int  flags = 0
 

Definition at line 28 of file cppSimpleType.cxx.

References type.


Member Function Documentation

CPPSimpleType * CPPSimpleType::as_simple_type  )  [virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 140 of file cppSimpleType.cxx.

string CPPSimpleType::get_preferred_name  )  const [virtual]
 

Reimplemented from CPPType.

Definition at line 53 of file cppSimpleType.cxx.

References CPPType::get_local_name().

CPPDeclaration::SubType CPPSimpleType::get_subtype  )  const [virtual]
 

Implements CPPDeclaration.

Definition at line 130 of file cppSimpleType.cxx.

References CPPDeclaration::ST_simple.

bool CPPSimpleType::is_equal const CPPDeclaration other  )  const [protected, virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 152 of file cppSimpleType.cxx.

References _flags, _type, assert, and NULL.

bool CPPSimpleType::is_less const CPPDeclaration other  )  const [protected, virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 168 of file cppSimpleType.cxx.

References _flags, _type, assert, and NULL.

bool CPPSimpleType::is_tbd  )  const [virtual]
 

Reimplemented from CPPType.

Definition at line 43 of file cppSimpleType.cxx.

References _type, and T_unknown.

void CPPSimpleType::output ostream out,
int  indent_level,
CPPScope scope,
bool  complete
const [virtual]
 

Implements CPPDeclaration.

Definition at line 64 of file cppSimpleType.cxx.

References _flags, _type, cpp_longlong_keyword, F_long, F_longlong, F_short, F_signed, F_unsigned, T_bool, T_char, T_double, T_float, T_int, T_unknown, and T_void.


Member Data Documentation

int CPPSimpleType::_flags
 

Definition at line 53 of file cppSimpleType.h.

Referenced by InterrogateBuilder::define_atomic_type(), CPPExpression::elevate_type(), TypeManager::is_char(), is_equal(), is_less(), TypeManager::is_void(), and output().

Type CPPSimpleType::_type
 

Definition at line 52 of file cppSimpleType.h.

Referenced by InterrogateBuilder::define_atomic_type(), CPPExpression::elevate_type(), CPPExpression::evaluate(), TypeManager::is_bool(), TypeManager::is_char(), is_equal(), TypeManager::is_float(), TypeManager::is_integer(), is_less(), is_tbd(), TypeManager::is_void(), and output().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:34:52 2003 for DTool by doxygen1.3