DNA-sim

git clone git://git.codymlewis.com/DNA-sim.git
Log | Files | Refs | README | LICENSE

Strand.h (767B)


      1 /**
      2  * Strand.h - DNA_sim
      3  * Author: Cody Lewis
      4  * Date: 2018-07-13
      5  * Description:
      6  *  A class for a strand of DNA (A collection of codons)
      7  */
      8 #ifndef STRAND_h
      9 #define STRAND_h
     10 #include <vector>
     11 #include <iostream>
     12 #include "Codon.h"
     13 namespace DNA_sim {
     14   class Strand {
     15     private:
     16       std::vector<Codon> codons; // The Codon collection
     17     public:
     18       Strand();
     19       Strand(std::string input); // input constructor
     20       ~Strand(); // Destructor
     21 
     22       // Queries
     23       std::string stats() const;
     24       std::string get_strand() const;
     25 
     26       // Mutators
     27       bool set_strand(std::string input);
     28   };
     29   std::istream& operator>>(std::istream& in, Strand& str);
     30   std::ostream& operator<<(std::ostream& out, const Strand& str);
     31 }
     32 #endif /* ifndef STRANG_h */