blob: 34600cee923179702b55f025e8a43970adc2cb70 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_VECTOR_H_
#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_VECTOR_H_
#include "impeller/archivist/archive.h"
namespace impeller {
class ArchiveVector : public Archivable {
public:
static ArchiveDef kArchiveDefinition;
PrimaryKey GetPrimaryKey() const override;
const std::vector<int64_t> GetKeys() const;
bool Write(ArchiveLocation& item) const override;
bool Read(ArchiveLocation& item) override;
private:
std::vector<int64_t> keys_;
friend class ArchiveLocation;
ArchiveVector();
explicit ArchiveVector(std::vector<int64_t> keys);
ArchiveVector(const ArchiveVector&) = delete;
ArchiveVector& operator=(const ArchiveVector&) = delete;
};
} // namespace impeller
#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_VECTOR_H_