BondProps.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (C) 2001-2006 Greg Landrum and Rational Discovery LLC
00003 //
00004 //   @@ All Rights Reserved  @@
00005 //
00006 /*! \file BondProps.h
00007 
00008   \brief No user-serviceable parts inside.
00009 
00010   Contains internals for using Bonds with the BGL
00011 
00012 */  
00013 #ifndef _RD_BOND_PROPS_H
00014 #define _RD_BOND_PROPS_H
00015 
00016 // boost stuff
00017 #include <boost/property_map.hpp>
00018 #include <boost/smart_ptr.hpp>
00019 
00020 #include "Bond.h"
00021 
00022 namespace RDKit {
00023   typedef boost::shared_ptr<Bond>  BOND_SPTR;
00024   struct edge_bond_t {
00025     enum { num = 1002 };
00026     typedef boost::edge_property_tag kind;
00027   };
00028   struct edge_wght_t {
00029     enum { num = 1003 };
00030     typedef boost::edge_property_tag kind;
00031   };
00032 
00033   typedef boost::property<edge_wght_t,double> BondWeight;
00034   typedef boost::property<edge_bond_t,Bond *,BondWeight> BondProperty;
00035 }
00036 
00037 #endif

Generated on Tue Oct 7 06:10:10 2008 for RDCode by  doxygen 1.5.5