Skip to content
Snippets Groups Projects
  1. Apr 19, 2017
  2. Apr 13, 2017
    • Atkins, Charles Vernon's avatar
      Added a ValueType trait to TypeInfo. · 6b1f95af
      Atkins, Charles Vernon authored
      This will allow for generic template functions that can deal with
      complex types using thier underlying value types.  So rather than have:
      
      template<T> T foo(const T&);
      template<T> T foo(const std::complex<T>&);
      
      to handle the case where an std::complex<float> should use a float
      return value, you can now use a single signature:
      
      template<T> TypeInfo<T>::ValueType foo(const T&);
      6b1f95af
    • Atkins, Charles Vernon's avatar
      Add type traits to map C type info to fixed width types. · 44d00755
      Atkins, Charles Vernon authored
      The type traits will be useful for maping ambiguous C types to fixed
      width integer types used for the actual I/O operations, for instance:
      
        adios::TypeInfo<char>::IOType resolves to int8_t
        adios::TypeInfo<signed char>::IOType resolves to int8_t
        adios::TypeInfo<unsigned signed char>::IOType resolves to uint8_t
        adios::TypeInfo<long int>::IOType resolves to int64_t
        adios::TypeInfo<long long int>::IOType resolves to int64_t
      
      So in this case, even though char and signed char are "the same", they
      are distinctly separate types to the compiler.  Using
      adios::TyperInfo<T>::IOType you can use the same fundamental type for all
      of them.  Similarly for long int and long long int.
      44d00755
    • Atkins, Charles Vernon's avatar
      Place fixed width fundamental types into the adios namespace · 241a668e
      Atkins, Charles Vernon authored
      This allows us to both drop the namespace prefix when using them in
      implementation and guarantee that we don't use versions of the types
      that get re-defined elsewhere.
      
      In order to provide the least ammount of disruption this doesn't include
      any sweeping search and replace changes.  However, it is recommended
      moving forward that these types be used internally when fixed width
      sizes are expected.  This will allow the transition to happen gradually
      through attrition and minimize conflicts.
      241a668e
  3. Apr 05, 2017
  4. Mar 30, 2017
  5. Mar 28, 2017
  6. Mar 24, 2017
Loading