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

deffloat.h

Go to the documentation of this file.
00001 
00002 //
00003 //  Borland C++ 5.5, GNU C++ 3.0
00004 //  Compiler Backend Library
00005 //  $Id: deffloat_8h-source.html,v 1.1 2002/07/18 14:58:45 cparpart Exp $
00006 //
00007 //  Copyright (c) 2000-2002 SurakWare Corp.
00008 //
00010 #ifndef sw_cbl_codetree_deffloat_h
00011 #define sw_cbl_codetree_deffloat_h
00012 
00013 #include 
00014 
00015 namespace cbl {
00016 namespace codetree {
00017 namespace def {
00018 
00019 // TFloatDef
00020 class TFloatDef : public TDef {
00021 public:
00022     enum TFloatType {
00023         ft32Bit = sizeof(float),
00024         ft64Bit = sizeof(double),
00025         ft80Bit = sizeof(long double)
00026     };
00027 
00028 private:
00029     TFloatType FFloatType;
00030 
00031 protected:
00032     TFloatDef(symbols::TModuleSym *AOwner, TFloatType AFloatType);
00033     
00034     friend class symbols::TModuleSym;
00035 
00036 public:
00037     // size
00038     virtual unsigned size() const;
00039 
00040     // access to FFloatType
00041     void floatType(TFloatType);
00042     TFloatType floatType() const;
00043 
00044     // visitor pattern
00045     virtual void accept(TDefVisitor&);
00046 
00047     // object cloning
00048     virtual TFloatDef *clone() const;
00049 };
00050 
00051 } // namespace def
00052 } // namespace codetree
00053 } // namespace cbl
00054 
00055 #endif

Generated on Sat Apr 6 19:07:25 2002 for Compiler Backend Library by doxygen1.2.14 written by , © 1997-2002