Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r320 - in branches/newPointVector/Core: . Geometry


Chronological Thread 
  • From: sparker@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r320 - in branches/newPointVector/Core: . Geometry
  • Date: Sat, 14 May 2005 20:19:21 -0600 (MDT)

Author: sparker
Date: Sat May 14 20:19:19 2005
New Revision: 320

Modified:
   branches/newPointVector/Core/CMakeLists.txt
   branches/newPointVector/Core/Geometry/PointVector.cc
Log:
Added instantiations of ostream operators


Modified: branches/newPointVector/Core/CMakeLists.txt
==============================================================================
--- branches/newPointVector/Core/CMakeLists.txt (original)
+++ branches/newPointVector/Core/CMakeLists.txt Sat May 14 20:19:19 2005
@@ -3,6 +3,9 @@
 SET (CORE_SOURCES ${CORE_SOURCES}
      Color/ColorDB.cc)
 SET (CORE_SOURCES ${CORE_SOURCES}
+     Geometry/PointVector.cc
+     )
+SET (CORE_SOURCES ${CORE_SOURCES}
      Exceptions/BadPrimitive.cc
      Exceptions/IllegalArgument.cc
      Exceptions/UnknownColor.cc

Modified: branches/newPointVector/Core/Geometry/PointVector.cc
==============================================================================
--- branches/newPointVector/Core/Geometry/PointVector.cc        (original)
+++ branches/newPointVector/Core/Geometry/PointVector.cc        Sat May 14 
20:19:19 2005
@@ -1,5 +1,6 @@
 
 #include <Core/Geometry/PointVector.h>
+#include <iostream>
 
 using namespace Manta;
 
@@ -16,3 +17,12 @@
     os << v[i] << " ";
   return os;
 }
+
+// Explicit instantiations for ostream operators
+template std::ostream& operator<<(std::ostream& os, const VectorT<double, 
3>&);
+template std::ostream& operator<<(std::ostream& os, const VectorT<float, 
3>&);
+template std::ostream& operator<<(std::ostream& os, const VectorT<int, 3>&);
+
+template std::ostream& operator<<(std::ostream& os, const PointT<double, 
3>&);
+template std::ostream& operator<<(std::ostream& os, const PointT<float, 3>&);
+template std::ostream& operator<<(std::ostream& os, const PointT<int, 3>&);




  • [MANTA] r320 - in branches/newPointVector/Core: . Geometry, sparker, 05/14/2005

Archive powered by MHonArc 2.6.16.

Top of page