source: branches/alilink/PRIMER_DESIGN/PRD_Pair.hxx

Last change on this file was 7623, checked in by westram, 13 years ago
  • merge from dev [7450] [7452] [7456] [7457] [7458] [7459] [7460] [7461] [7464] [7465] [7466] [7467] [7468] [7469] [7482]
    • tweaked compiler options
      • activated -Weffc++
        • postfilter warnings where Scott Meyers' advices are too general.
          • base classes should not always have virtual destructors, since that renders tiny classes useless and
          • members should not always be initialized via initialization list, since that often violates the DRY principle
        • fix gcc's inability to detect that Noncopyable implements a private copy-ctor and op=
        • this slows down complete ARB recompilation by ~5%
    • added -Wold-style-cast (inactive)
    • removed -Wno-non-template-friend added in [7447]
  • postcompile.pl
    • added option —original to show unmodified compiler output
  • declared op= for classes which had a copy-ctor
  • moved op= macros to arbtools.h
  • derived classes containing pointers from Noncopyable (use Noncopyable virtually) or
  • made them copyable if needed (awt_mask_item, KnownDB, Code, AWT_registered_itemtype, GEN_gene, PosGene, PartialSequence, PlugIn, Range, Convaln_exception)
  • other related changes
    • user mask destruction working now
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1// =============================================================== //
2//                                                                 //
3//   File      : PRD_Pair.hxx                                      //
4//   Purpose   :                                                   //
5//                                                                 //
6//   Coded by Wolfram Foerster in February 2001                    //
7//   Institute of Microbiology (Technical University Munich)       //
8//   http://www.arb-home.de/                                       //
9//                                                                 //
10// =============================================================== //
11
12#ifndef PRD_PAIR_HXX
13#define PRD_PAIR_HXX
14
15#ifndef PRD_ITEM_HXX
16#include "PRD_Item.hxx"
17#endif
18
19struct Pair : virtual Noncopyable {
20  Item   *one;
21  Item   *two;
22  double  rating;
23
24  Pair (Item *one_, Item *two_, double rating_);
25  Pair ();
26  ~Pair () {};
27
28  void        print        (const char *prefix, const char *suffix, const char *sequence_);   // print pair with the values of the items
29  const char *get_result   (const char *sequence_,   int max_primer_length, int max_position_length, int max_length_length);
30  const char * get_primers (const char *sequence_);
31};
32
33#else
34#error PRD_Pair.hxx included twice
35#endif // PRD_PAIR_HXX
Note: See TracBrowser for help on using the repository browser.