print_vector.h 929 B

123456789101112131415161718192021222324252627282930
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2013 Alec Jacobson <[email protected]>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_PRINT_VECTOR_H
  9. #define IGL_PRINT_VECTOR_H
  10. #include "igl_inline.h"
  11. #include <vector>
  12. namespace igl
  13. {
  14. /// @private
  15. // Not clear what these are supposed to be doing. Currently they print
  16. // vectors to standard error...
  17. template <typename T>
  18. IGL_INLINE void print_vector( std::vector<T>& v);
  19. template <typename T>
  20. IGL_INLINE void print_vector( std::vector< std::vector<T> >& v);
  21. template <typename T>
  22. IGL_INLINE void print_vector(std::vector< std::vector< std::vector<T> > >& v);
  23. }
  24. #ifndef IGL_STATIC_LIBRARY
  25. # include "print_vector.cpp"
  26. #endif
  27. #endif