Changeset 43:0b04f7b6406e in rrlib_util


Ignore:
Timestamp:
22.01.2012 16:08:16 (8 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Children:
44:b8711bbdd13e, 46:693922a1844d
Phase:
public
Message:

Reformatted with astyle 2.02.1

Files:
16 edited

Legend:

Unmodified
Added
Removed
  • fstream/fileno.hpp

    r34 r43  
    187187        return *(FILE **)((char *)ptr_M_file + sizeof(std::__basic_file_base<charT>)); 
    188188#  else 
    189   // __basic_file<charT> is base class, but with vptr. 
    190   return *(FILE **)((char *)ptr_M_file + sizeof(void*)); 
     189        // __basic_file<charT> is base class, but with vptr. 
     190        return *(FILE **)((char *)ptr_M_file + sizeof(void*)); 
    191191#  endif 
    192192      } 
  • patterns/command/tFirstParameterBinder.h

    r34 r43  
    7777 
    7878  tFirstParameterBinder(const tFunctor<TReturn, TFirstParameter, TParameterRest...> &functor, TFirstParameter bound_parameter) 
    79       : functor(functor), 
     79    : functor(functor), 
    8080      bound_parameter(bound_parameter) 
    8181  {} 
  • patterns/command/tFunctor.h

    r34 r43  
    8080 
    8181  tFunctor(const tFunctor &other) 
    82       : handler(other.handler) 
     82    : handler(other.handler) 
    8383  {} 
    8484 
    8585  explicit tFunctor(std::shared_ptr<tFunctorHandlerBase<TReturn, TParameters...>> handler) 
    86       : handler(handler) 
     86    : handler(handler) 
    8787  {} 
    8888 
    8989  template <typename TFunctor> 
    9090  tFunctor(const TFunctor &functor) 
    91       : handler(new tFunctorHandler<TFunctor, TReturn, TParameters...>(functor)) 
     91    : handler(new tFunctorHandler<TFunctor, TReturn, TParameters...>(functor)) 
    9292  {} 
    9393 
    9494  template <typename TObject, typename TFunction> 
    9595  tFunctor(TObject &object, const TFunction &function) 
    96       : handler(new tMemberFunctionHandler<TObject, TFunction, TReturn, TParameters...>(object, function)) 
     96    : handler(new tMemberFunctionHandler<TObject, TFunction, TReturn, TParameters...>(object, function)) 
    9797  {} 
    9898 
  • patterns/command/tFunctorChainer.h

    r34 r43  
    7777 
    7878  tFunctorChainer(const TFirstFunctor &first_functor, const TSecondFunctor &second_functor) 
    79       : first_functor(first_functor), 
     79    : first_functor(first_functor), 
    8080      second_functor(second_functor) 
    8181  {} 
  • patterns/command/tFunctorHandler.h

    r34 r43  
    7777 
    7878  tFunctorHandler(const TFunctor &functor) 
    79       : functor(functor) 
     79    : functor(functor) 
    8080  {} 
    8181 
  • patterns/command/tMemberFunctionHandler.h

    r34 r43  
    7777 
    7878  tMemberFunctionHandler(TObject &object, const TFunction &function) 
    79       : object(object), 
     79    : object(object), 
    8080      function(function) 
    8181  {} 
  • patterns/factory/tCloneFactory.h

    r34 r43  
    7272template < 
    7373typename TAbstractProduct, 
    74 typename TProductCreator = tFunctor<TAbstractProduct *, const TAbstractProduct &>, 
    75 template <typename TAbstractProduct, typename TIdentifier> class TUnknownKeyPolicy = factory::ThrowException 
    76 > 
     74         typename TProductCreator = tFunctor<TAbstractProduct *, const TAbstractProduct &>, 
     75         template <typename TAbstractProduct, typename TIdentifier> class TUnknownKeyPolicy = factory::ThrowException 
     76         > 
    7777class tCloneFactory 
    7878{ 
  • patterns/factory/tFactory.h

    r34 r43  
    7171template < 
    7272typename TAbstractProduct, 
    73 typename TIdentifier, 
    74 typename TProductCreator = tFunctor<TAbstractProduct *>, 
    75 template <typename TAbstractProduct, typename TIdentifier> class TUnknownKeyPolicy = factory::ThrowException 
    76 > 
     73         typename TIdentifier, 
     74         typename TProductCreator = tFunctor<TAbstractProduct *>, 
     75         template <typename TAbstractProduct, typename TIdentifier> class TUnknownKeyPolicy = factory::ThrowException 
     76         > 
    7777class tFactory 
    7878{ 
  • patterns/singleton/tSingletonHolder.h

    r39 r43  
    7171template < 
    7272typename T, 
    73 template <typename> class TLifetimePolicy = singleton::DefaultLifetime, 
    74 template <typename> class TCreationPolicy = singleton::CreateUsingNew 
    75 > 
     73         template <typename> class TLifetimePolicy = singleton::DefaultLifetime, 
     74         template <typename> class TCreationPolicy = singleton::CreateUsingNew 
     75         > 
    7676class tSingletonHolder : public boost::noncopyable 
    7777{ 
  • sFileIOUtils.cpp

    r41 r43  
    536536  } 
    537537  rsync_command << ":" 
    538   << source_directory 
    539   << source_file_name 
    540   << " " 
    541   << target_directory; 
     538                << source_directory 
     539                << source_file_name 
     540                << " " 
     541                << target_directory; 
    542542 
    543543  RRLIB_LOG_PRINTF(logging::eLL_USER, "sFileIOUtils::RSyncFile() >>> executing <%s> ...\n", rsync_command.str().c_str()); 
     
    572572  } 
    573573  rsync_command << ":" 
    574   << source_directory 
    575   << " " 
    576   << target_directory; 
     574                << source_directory 
     575                << " " 
     576                << target_directory; 
    577577 
    578578  RRLIB_LOG_PRINTF(logging::eLL_USER, "sFileIOUtils::RSyncFiles() >>> executing <%s> ...\n", rsync_command.str().c_str()); 
  • sStringUtils.h

    r34 r43  
    6161  std::string& str; 
    6262 
    63   imanip(std::istream& (*ff)(std::istream&, std::string&), std::string& sstr) : f(ff), str(sstr) 
     63  imanip(std::istream & (*ff)(std::istream&, std::string&), std::string& sstr) : f(ff), str(sstr) 
    6464  {} 
    6565} 
  • tDoubleDispatcher.h

    r34 r43  
    7171template < 
    7272typename TExecutor, 
    73 typename TLeftBase, 
    74 typename TLeftTypes, 
    75 bool Tsymmetric = true, 
    76 typename TRightBase = TLeftBase, 
    77 typename TRightTypes = TLeftTypes, 
    78 typename TReturn = void 
    79 > 
     73         typename TLeftBase, 
     74         typename TLeftTypes, 
     75         bool Tsymmetric = true, 
     76         typename TRightBase = TLeftBase, 
     77         typename TRightTypes = TLeftTypes, 
     78         typename TReturn = void 
     79         > 
    8080class tDoubleDispatcher 
    8181{ 
  • tFPSComputer.cpp

    r41 r43  
    4343 
    4444tFPSComputer::tFPSComputer(long long int check_interval_ms, float old_value_weight): 
    45     current_fps_check(tTime::Now()), 
    46     last_fps_check(current_fps_check), 
    47     time_diff_check(current_fps_check), 
    48     last_frame_counter(0.), 
    49     frame_counter(0.), 
    50     fps(0.), 
    51     old_value_weight(old_value_weight), 
    52     check_interval_ms(check_interval_ms) 
     45  current_fps_check(tTime::Now()), 
     46  last_fps_check(current_fps_check), 
     47  time_diff_check(current_fps_check), 
     48  last_frame_counter(0.), 
     49  frame_counter(0.), 
     50  fps(0.), 
     51  old_value_weight(old_value_weight), 
     52  check_interval_ms(check_interval_ms) 
    5353{ } 
    5454 
    5555tFPSComputer::tFPSComputer(const tTime &current_time, long long int check_interval_ms, float old_value_weight): 
    56     current_fps_check(current_time), 
    57     last_fps_check(current_time), 
    58     time_diff_check(current_time), 
    59     last_frame_counter(0.), 
    60     frame_counter(0.), 
    61     fps(0.), 
    62     old_value_weight(old_value_weight), 
    63     check_interval_ms(check_interval_ms) 
     56  current_fps_check(current_time), 
     57  last_fps_check(current_time), 
     58  time_diff_check(current_time), 
     59  last_frame_counter(0.), 
     60  frame_counter(0.), 
     61  fps(0.), 
     62  old_value_weight(old_value_weight), 
     63  check_interval_ms(check_interval_ms) 
    6464{ } 
    6565 
  • tTime.h

    r34 r43  
    9999# else 
    100100 
    101     return tTime(0, clock()*(1000000 / CLOCKS_PER_SEC)); 
     101    return tTime(0, clock() * (1000000 / CLOCKS_PER_SEC)); 
    102102# endif 
    103103 
     
    119119  static inline tTime FutureMSec(long msec) 
    120120  { 
    121     tTime ntime(0, msec*1000); 
     121    tTime ntime(0, msec * 1000); 
    122122    //FromMSec(msec); 
    123123    ntime += tTime::Now(); 
     
    191191  inline long long ToNSec()const 
    192192  { 
    193     return ((long long)tv_usec + (long long)tv_sec*1000000)*1000; 
     193    return ((long long)tv_usec + (long long)tv_sec * 1000000) * 1000; 
    194194  } 
    195195 
     
    197197  inline long long ToUSec()const 
    198198  { 
    199     return (long long)tv_usec + (long long)tv_sec*1000000; 
     199    return (long long)tv_usec + (long long)tv_sec * 1000000; 
    200200  } 
    201201 
     
    203203  inline long long ToMSec()const 
    204204  { 
    205     return (long long)tv_usec / 1000 + (long long)tv_sec*1000; 
     205    return (long long)tv_usec / 1000 + (long long)tv_sec * 1000; 
    206206  } 
    207207 
     
    364364  operator timespec() 
    365365  { 
    366     timespec t = {tv_sec, 1000*tv_usec}; 
     366    timespec t = {tv_sec, 1000 * tv_usec}; 
    367367    return t; 
    368368  } 
  • tTypeList.h

    r34 r43  
    162162template <typename THead> 
    163163struct tTypeList<THead> : public tTypeListBase<THead, type_list::tEmptyList> 
    164   {}; 
     164{}; 
    165165 
    166166template <typename THead, typename ... TTail> 
    167167struct tTypeList<THead, TTail...> : public tTypeListBase<THead, tTypeList<TTail...>> 
    168   {}; 
     168{}; 
    169169 
    170170template <typename THead, typename ... TTail> 
    171171struct tTypeList<THead, tTypeList<TTail...>> : public tTypeListBase<THead, tTypeList<TTail...>> 
    172   {}; 
     172{}; 
    173173 
    174174//---------------------------------------------------------------------- 
  • test/test_final_class_pattern.cpp

    r34 r43  
    8181 
    8282class FinalFromA : public A, RRLIB_FINAL_CLASS 
    83   {}; 
     83{}; 
    8484 
    8585class FinalFromB : public B, RRLIB_FINAL_CLASS 
    86   {}; 
     86{}; 
    8787 
    8888struct Final : RRLIB_FINAL_CLASS 
     
    9696#ifdef TRY_ILLEGAL 
    9797class IllegalFromFinalFromA : public FinalFromA 
    98   {}; 
     98{}; 
    9999 
    100100class IllegalFromFinalFromB : public FinalFromB 
    101   {}; 
     101{}; 
    102102 
    103103class IllegalFromFinal : public Final 
    104   {}; 
     104{}; 
    105105#endif 
    106106 
Note: See TracChangeset for help on using the changeset viewer.