21 #ifndef OST_DB_LINEAR_INDEXER_HH
22 #define OST_DB_LINEAR_INDEXER_HH
27 #include <boost/shared_ptr.hpp>
32 namespace ost {
namespace db {
39 void Read(std::ifstream& in_stream);
41 void Write(std::ofstream& out_stream)
const;
50 return !(*
this==other);
69 const std::vector<String>& chain_names,
70 const std::vector<uint>& chain_lengths);
83 const String& chain_name)
const;
88 return (assemblies_ == other.assemblies_ &&
89 idx_mapper_ == other.idx_mapper_ &&
90 current_num_residues_ == other.current_num_residues_);
95 return !(*
this == other);
100 std::vector<AssemblyInfo> assemblies_;
101 std::map<String, int> idx_mapper_;
bool operator!=(const LinearIndexer &other) const
void Read(std::ifstream &in_stream)
void Save(const String &filename) const
unsigned __int64 uint64_t
std::vector< String > GetAssemblies() const
void RemoveAssembly(const String &name)
void Write(std::ofstream &out_stream) const
bool operator==(const AssemblyInfo &other) const
bool operator==(const LinearIndexer &other) const
bool operator!=(const AssemblyInfo &other) const
std::vector< uint > chain_lengths
std::pair< uint64_t, uint64_t > GetDataRange(const String &name) const
std::vector< String > GetChainNames(const String &name) const
std::vector< uint > GetChainLengths(const String &name) const
std::vector< String > chain_names
uint64_t GetNumResidues() const
void AddAssembly(const String &name, const std::vector< String > &chain_names, const std::vector< uint > &chain_lengths)
static LinearIndexerPtr Load(const String &filename)
boost::shared_ptr< LinearIndexer > LinearIndexerPtr