Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r322 - in trunk/Core: . Geometry


Chronological Thread 
  • From: sparker@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r322 - in trunk/Core: . Geometry
  • Date: Sat, 14 May 2005 22:42:41 -0600 (MDT)

Author: sparker
Date: Sat May 14 22:42:40 2005
New Revision: 322

Modified:
   trunk/Core/CMakeLists.txt
   trunk/Core/Geometry/PointVector.cc
Log:
Implement ostream operators on the trunk not on the branch


Modified: trunk/Core/CMakeLists.txt
==============================================================================
--- trunk/Core/CMakeLists.txt   (original)
+++ trunk/Core/CMakeLists.txt   Sat May 14 22:42:40 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: trunk/Core/Geometry/PointVector.cc
==============================================================================
--- trunk/Core/Geometry/PointVector.cc  (original)
+++ trunk/Core/Geometry/PointVector.cc  Sat May 14 22:42:40 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] r322 - in trunk/Core: . Geometry, sparker, 05/14/2005

Archive powered by MHonArc 2.6.16.

Top of page