/* * NICE-Core - efficient algebra and computer vision methods * - libfbasics - library of some basic tools * See file License for license information. */ #ifndef _VECTORIO_H_ #define _VECTORIO_H_ #include #include namespace NICE { /** * Output function. */ template std::ostream& operator << ( std::ostream& output, const std::vector& v ); /** * Output function. */ template void writeVectorHumanReadable ( std::ostream& output, const std::vector& v ); /** * Output function. */ template void writeVectorOfPointers ( std::ostream& output, const std::vector& v ); /** * Output function. */ template void writeVectorOfPointersHumanReadable ( std::ostream& output, const std::vector& v ); /** * Input function. * Format has to be as produced by * \c operator << (std::ostream& output, const std::vector& v), * \c writeVectorHumanReadable(), \c writeVectorOfPointers() * or \c writeVectorOfPointersHumanReadable(). * Note that no data element must begin with '>'. */ template std::istream& operator >> ( std::istream& input, std::vector& v ); /** * Input function. A new heap object will be created for each vector element * (Ownership given away.) * Format has to be as produced by * \c operator << (std::ostream& output, const std::vector& v), * \c writeVectorHumanReadable(), \c writeVectorOfPointers() * or \c writeVectorOfPointersHumanReadable(). */ template void readVectorOfPointers ( std::istream& input, std::vector& v ); } // namespace //#ifdef __GNUC__ #include "core/basics/vectorio.tcc" //#endif #endif //_VECTORIO_H_