Initial commit
This commit is contained in:
commit
4f4397b3e1
48 changed files with 2002 additions and 0 deletions
20
VectorFiller/atlas/collection/VectorFactory.h
Normal file
20
VectorFiller/atlas/collection/VectorFactory.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// -*- mode: c++ -*-
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace atlas::collection {
|
||||
template <typename T>
|
||||
class VectorFactory {
|
||||
public:
|
||||
using base_type = VectorFactory<T>;
|
||||
using value_type = std::vector<T>;
|
||||
using product_type = std::shared_ptr<value_type>;
|
||||
|
||||
virtual ~VectorFactory() = default;
|
||||
|
||||
[[nodiscard]] virtual auto createAndFillVector(size_t const) -> product_type = 0;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue