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.159 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.158 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.157 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.156 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.155 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.154 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.153 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.152 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.151 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.150 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.149 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.148 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.147 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.146 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.145 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.144 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.143 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.142 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.141 tracks/cpp/exercises/nucleotide-count/example.h
trackler-2.2.1.140 tracks/cpp/exercises/nucleotide-count/example.h