source: to-imperative/trunk/runtime/rf_short_int.hh @ 1106

Last change on this file since 1106 was 1106, checked in by luba, 17 years ago
  • type_short_int is replaced by type_int32, class ShortInt? is renamed to Int32
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 858 bytes
Line 
1// $Source$
2// $Revision: 1106 $
3// $Date: 2003-08-06 13:30:09 +0000 (Wed, 06 Aug 2003) $
4// $Author: luba $
5
6#ifndef __rf_short_int_hh__
7#define __rf_short_int_hh__
8
9#include "rf_types.hh"
10#include "rf_expr.hh"
11#include "rf_term.hh"
12
13namespace rftype
14{
15
16using namespace rfrt;
17
18class Int32 :
19  public Term
20{
21
22  static unsigned compute_max_len () ;
23
24public:
25
26  static const unsigned max_len;
27
28  static Expr create_expr (intptr_t _n) ;
29
30  static Expr create_expr (pxx::WString& _str);
31
32  inline Int32 (intptr_t n) ;
33  inline intptr_t to_int () const ;
34
35  inline size_t get_char_len () const ;
36
37  static void ctor (Int32* _to, Int32 const* _from) ;
38  static int compare (Int32 const* _shint1, Int32 const* _shint2) ;
39  static uint32_t hash (Int32 const* _shint) ;
40  static pxx::WString to_string (Int32 const* _shint) ;
41  static short_type_funcs_t funcs ;
42  static TypeRegister reg ;
43
44};
45
46}
47
48#endif // __rf_short_int_hh__
Note: See TracBrowser for help on using the repository browser.