FastaExplicit.hpp File Reference

delcaration of explicit instantiations of namespace Sequence::Alignment and Sequence::ClustalW for type Sequence::Fasta More...

Go to the source code of this file.


Detailed Description

delcaration of explicit instantiations of namespace Sequence::Alignment and Sequence::ClustalW for type Sequence::Fasta

This file contained explicit instantiations for functions in namespace Sequence::Alignment and for class Sequence::ClustalW. The type of the instantiation is Sequence::Fasta.
Example of how to use this portably:

  //suppose you want to use features from
  //both namespace Sequence::Alignment and
  //use the Sequence::ClustalW template
 
  //check for GNU C++ of at least version 3
  #if defined( __GNUG__ ) && __GNUC__ >= 3
  //take advantage of the explicit instantations
  //at link-time
  #include <Sequence/FastaExplicit.hpp>
  #else
  //need to do implicit instanstiation
  #include <Sequence/Fasta.hpp>
  #include <Sequence/Alignment.hpp>
  #include <Sequence/Clustalw.hpp>
  #endif
Warning:
The instantiations make use of a GNU C++ extension to the rules for explicit instantiation of templates. The declarations in this file are "extern", and their definitions are in FastaExplicit.cc. These declarations may not be portable. In fact, compiling with -ansi and -pendantic will result in a compiler error. To prevent the error:
  #if defined( __GNUG__ ) && __GNUC__ >= 3 && (!__STRICT_ANSI__)
  #include <Sequence/FastaExplicit.hpp>
  #else
  #include <Sequence/Fasta.hpp>
  #include <Sequence/Alignment.hpp>
  #include <Sequence/Clustalw.hpp>
  #endif

Definition in file FastaExplicit.hpp.

Generated on Thu Aug 11 13:22:00 2011 for libsequence by  doxygen 1.6.3