Sha256: 49587477ef7d26933c7f67f8844964d292b8111c0e9efc2a0f298a49d7556475

Contents?: true

Size: 368 Bytes

Versions: 396

Compression:

Stored size: 368 Bytes

Contents

#if !defined(NUCLEOTIDE_COUNT_H)
#define NUCLEOTIDE_COUNT_H

#include <map>
#include <string>

namespace dna
{

class counter
{
public:
    counter(std::string const& sequence);

    std::map<char, int> const& nucleotide_counts() const
    {
        return counts_;
    }

    int count(char nucleotide) const;

private:
    std::map<char, int> counts_;
};

}

#endif

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.118 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.117 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.116 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.115 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.114 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.113 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.111 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.110 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.109 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.108 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.107 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.106 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.105 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.104 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.103 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.102 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.101 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.100 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.99 tracks/cpp/exercises/nucleotide-count/example.h