// -*- C++ -*- // // ====================================================================== // // Brad T. Aagaard // U.S. Geological Survey // // {LicenseText} // // ====================================================================== // /** * @file pylith/utils/arrayfwd.hh * * @brief Forward declarations for PyLith array objects. * * These are generally just forward declarations for C++ STL objects. * * For simple types (i.e., int and double) std::valarray provides some * features that std::vector does not have, such as operating on the * whole array at once. */ #if !defined(pylith_utils_arrayfwd_hh) #define pylith_utils_arrayfwd_hh #include // USES std::string /// Forward declaration of STL vector namespace std { // std::vector template class allocator; template class vector; // std::valarray template class valarray; } // std /// Aliases namespace pylith { /// Alias for std::vector typedef std::vector > int_vector; /// Alias for std::vector typedef std::vector > double_vector; /// Alias for std::vector typedef std::vector > string_vector; /// Alias for std::valarray typedef std::valarray int_array; /// Alias for std::valarray typedef std::valarray float_array; /// Alias for std::valarray typedef std::valarray double_array; } // pylith #endif // pylith_utils_arrayfwd_hh // End of file