00001 // -*- mode: c++; indent-tabs-mode: nil; tab-width:2 -*- 00002 // typedefs for Uli Germann's stuff 00003 #ifndef __ug_typedefs_h 00004 #define __ug_typedefs_h 00005 #include <boost/dynamic_bitset.hpp> 00006 #include <boost/shared_ptr.hpp> 00007 #include <boost/scoped_ptr.hpp> 00008 #include <vector> 00009 #include <stdint.h> 00010 #include "tpt_typedefs.h" 00011 namespace sapt 00012 { 00013 typedef boost::dynamic_bitset<uint64_t> bitvector; 00014 00015 typedef std::vector<std::vector<float> > flt_2d_table; 00016 typedef std::vector<flt_2d_table> flt_3d_table; 00017 typedef std::vector<flt_3d_table> flt_4d_table; 00018 00019 typedef std::vector<std::vector<ushort> > ushort_2d_table; 00020 typedef std::vector<ushort_2d_table> ushort_3d_table; 00021 typedef std::vector<ushort_3d_table> ushort_4d_table; 00022 00023 typedef std::vector<std::vector<short> > short_2d_table; 00024 typedef std::vector<short_2d_table> short_3d_table; 00025 typedef std::vector<short_3d_table> short_4d_table; 00026 00027 typedef std::vector<std::vector<int> > int_2d_table; 00028 typedef std::vector<int_2d_table> int_3d_table; 00029 typedef std::vector<int_3d_table> int_4d_table; 00030 00031 typedef tpt::id_type id_type; 00032 typedef tpt::uchar uchar; 00033 typedef tpt::filepos_type filepos_type; 00034 } 00035 00036 #ifndef SPTR 00037 #define SPTR boost::shared_ptr 00038 #endif 00039 #define boost_iptr boost::intrusive_ptr 00040 #define scoptr boost::scoped_ptr 00041 #define rcast reinterpret_cast 00042 #endif