contrib/oxl/osl/osl_vertex.cxx
Go to the documentation of this file.
00001 // This is oxl/osl/osl_vertex.cxx
00002 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00003 #pragma implementation
00004 #endif
00005 //:
00006 // \file
00007 // \author fsm
00008 
00009 #include "osl_vertex.h"
00010 
00011 #include <osl/osl_hacks.h>
00012 
00013 //--------------------------------------------------------------------------------
00014 
00015 osl_vertex::osl_vertex(float x_, float y_, int id_) : x(x_), y(y_) { 
00016   SetId(id_); 
00017 #if ALLOW_CORELEAKS
00018   ref();
00019 #endif
00020 }
00021 
00022 osl_vertex::~osl_vertex() { }
00023 
00024 bool operator==(osl_vertex const &a, osl_vertex const &b) {
00025   return a.x==b.x && a.y==b.y && a.id==b.id;
00026 }
00027 
00028 #include <vcl_list.h>
00029 #include <vcl_vector.h>
00030 OSL_TOPOLOGY_REF_UNREF_INSTANTIATE(vcl_list<osl_vertex*>);
00031 OSL_TOPOLOGY_REF_UNREF_INSTANTIATE(vcl_vector<osl_vertex*>);