Changeset 47:22c6aeb56ce0 in finroc_plugins_data_ports


Ignore:
Timestamp:
24.10.2013 19:03:27 (6 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Children:
48:06bdf7978f38, 50:980555d97ea7
Phase:
public
Message:

Reformatted with astyle 2.03

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • api/tBoundedPort.h

    r46 r47  
    161161   * \return Error message that value is out of bounds 
    162162   */ 
    163   template < bool ENABLE = rrlib::serialization::tIsStringSerializable<T>::value> 
     163  template <bool ENABLE = rrlib::serialization::tIsStringSerializable<T>::value> 
    164164  std::string GenerateErrorMessage(const typename std::enable_if<ENABLE, T>::type& current_value) 
    165165  { 
     
    168168    return sos.ToString(); 
    169169  } 
    170   template < bool ENABLE = rrlib::serialization::tIsStringSerializable<T>::value> 
     170  template <bool ENABLE = rrlib::serialization::tIsStringSerializable<T>::value> 
    171171  std::string GenerateErrorMessage(const typename std::enable_if < !ENABLE, T >::type& current_value) 
    172172  { 
  • tPort.h

    r46 r47  
    214214   * \return Bounds as they are currently set 
    215215   */ 
    216   template < bool AVAILABLE = cBOUNDABLE > 
     216  template <bool AVAILABLE = cBOUNDABLE> 
    217217  inline typename std::enable_if<AVAILABLE, tBounds<T>>::type GetBounds() const 
    218218  { 
     
    267267   * \param new_bounds New Bounds 
    268268   */ 
    269   template < bool AVAILABLE = cBOUNDABLE > 
     269  template <bool AVAILABLE = cBOUNDABLE> 
    270270  inline void SetBounds(const typename std::enable_if<AVAILABLE, tBounds<T>>::type& new_bounds) 
    271271  { 
  • tPortCreationInfo.h

    r46 r47  
    8686   * \return Bounds for port 
    8787   */ 
    88   template < bool AVAILABLE = cBOUNDABLE > 
     88  template <bool AVAILABLE = cBOUNDABLE> 
    8989  typename std::enable_if<AVAILABLE, tBounds<T>>::type GetBounds() const 
    9090  { 
     
    126126 
    127127  /*! Various Set methods for different port properties */ 
    128   template < bool DISABLE = tIsString<T>::value > 
     128  template <bool DISABLE = tIsString<T>::value> 
    129129  void Set(const typename std::enable_if < !DISABLE, T >::type& default_value) 
    130130  { 
     
    132132  } 
    133133 
    134   template < bool AVAILABLE = cBOUNDABLE > 
     134  template <bool AVAILABLE = cBOUNDABLE> 
    135135  void Set(const typename std::enable_if<AVAILABLE, tBounds<T>>::type& bounds) 
    136136  { 
     
    164164private: 
    165165 
    166   template < bool STRING = tIsString<T>::value > 
     166  template <bool STRING = tIsString<T>::value> 
    167167  void SetString(const typename std::enable_if < !STRING, tString >::type& s) 
    168168  { 
     
    170170  } 
    171171 
    172   template < bool STRING = tIsString<T>::value > 
     172  template <bool STRING = tIsString<T>::value> 
    173173  void SetString(const typename std::enable_if<STRING, tString>::type& s) 
    174174  { 
  • test/initial_pushing.cpp

    r46 r47  
    194194int main(int, char**) 
    195195{ 
    196   TestInitialPushing<int>( {{11, 22, 33, 44, 55, 66, 77, 88, 99}}); 
    197   TestInitialPushing<finroc::data_ports::numeric::tNumber>( {{11, 22, 33, 44, 55, 66, 77, 88, 99}}); 
    198   TestInitialPushing<std::string>( {{"11", "22", "33", "44", "55", "66", "77", "88", "99"}}); 
     196  TestInitialPushing<int>({{11, 22, 33, 44, 55, 66, 77, 88, 99}}); 
     197  TestInitialPushing<finroc::data_ports::numeric::tNumber>({{11, 22, 33, 44, 55, 66, 77, 88, 99}}); 
     198  TestInitialPushing<std::string>({{"11", "22", "33", "44", "55", "66", "77", "88", "99"}}); 
    199199  return 0; 
    200200} 
  • type_traits.h

    r46 r47  
    121121struct tHasSmallerThanOperator 
    122122{ 
    123   template < typename U = T > 
     123  template <typename U = T> 
    124124  static int16_t Test(decltype((*(U*)(NULL)) < (*(U*)(NULL)))) 
    125125  { 
Note: See TracChangeset for help on using the changeset viewer.