00001 // -*- mode: c++; -*- 00002 // 00003 //The Biomolecule Toolkit (BTK) is a C++ library for use in the 00004 //modeling, analysis, and design of biological macromolecules. 00005 //Copyright (C) 2003, Christopher Saunders (ctsa@users.sourceforge.net) 00006 // 00007 //This program is free software; you can redistribute it and/or modify 00008 //it under the terms of the GNU Lesser General Public License as published 00009 //by the Free Software Foundation; either version 2.1 of the License, or (at 00010 //your option) any later version. 00011 // 00012 //This program is distributed in the hope that it will be useful, but 00013 //WITHOUT ANY WARRANTY; without even the implied warranty of 00014 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 //Lesser General Public License for more details. 00016 // 00017 //You should have received a copy of the GNU Lesser General Public License 00018 //along with this program; if not, write to the Free Software Foundation, 00019 //Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 00027 #ifndef BTK_CHARMM_ATOM_DECORATOR_H 00028 #define BTK_CHARMM_ATOM_DECORATOR_H 00029 00030 #include "atom.h" 00031 #include "atom_types.h" 00032 00033 #include <boost/concept_check.hpp> 00034 00035 #include <string> 00036 00037 namespace BTK { 00038 00039 template <class AtomBase> 00040 class CHARMMAtomDecorator : public AtomBase { 00041 BOOST_CLASS_REQUIRE2(AtomBase,Atom,boost,ConvertibleConcept); 00042 00043 typedef AtomBase base_type; 00044 typedef CHARMMAtomDecorator<AtomBase> self_type; 00045 public: 00047 CHARMMAtomDecorator() 00048 : base_type() { 00049 _index = CHARMM::btk_atom_index_to_charmm_index(group_index(),atom_index()); 00050 } 00051 00052 private: 00053 CHARMM::index_t _index; 00054 double _charge; // this can't be looked up from the _index alone! 00055 }; 00056 00057 } // namespace BTK 00058 00059 #endif
1.3.6