Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

sasa_atom_decorator.h

Go to the documentation of this file.
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) 2004, 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 
00025 #ifndef BTK_SASA_ATOM_DECORATOR_H
00026 #define BTK_SASA_ATOM_DECORATOR_H
00027 
00028 #include "atom.h"
00029 
00030 #include <boost/concept_check.hpp>
00031 
00032 #include <string>
00033 
00034 namespace BTK {
00035 
00039   template <typename AtomBase>
00040   class SasaAtomDecorator : public AtomBase {
00041     BOOST_CLASS_REQUIRE2(AtomBase,Atom,boost,ConvertibleConcept);
00042 
00043     typedef AtomBase base_type;
00044     typedef SasaAtomDecorator<AtomBase> self_type;
00045   public:
00046 
00048     SasaAtomDecorator() : base_type() {}
00049 
00050     SasaAtomDecorator(const base_type& a) : base_type(a) {}
00051 
00052     ~SasaAtomDecorator() {}
00053 
00055     self_type& operator=(const base_type& rhs){
00056       base_type::operator=(rhs);
00057       return *this;
00058     }
00059 
00061     double sasa_radius() const { return ELEMENT::sasa_radius(this->element());}
00062 
00063     double sasa_solvation_parameter() const { return 1.0; }
00064   };
00065 } // namespace BTK
00066 
00067 #endif

Generated on Wed Apr 14 00:43:17 2004 for BTK by doxygen 1.3.6