added collection, collection proxy and collection resolver implementations
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#ifndef MATADOR_COLLECTION_RESOLVER_HPP
|
||||
#define MATADOR_COLLECTION_RESOLVER_HPP
|
||||
|
||||
#include "matador/object/abstract_type_resolver.hpp"
|
||||
#include "matador/object/object_ptr.hpp"
|
||||
|
||||
#include <typeindex>
|
||||
#include <vector>
|
||||
|
||||
namespace matador::object {
|
||||
template<typename Type>
|
||||
class collection_resolver : public abstract_type_resolver {
|
||||
public:
|
||||
collection_resolver() : abstract_type_resolver(typeid(std::vector<object_ptr<Type>>)) {}
|
||||
|
||||
virtual std::vector<object_ptr<Type>> resolve(const utils::identifier& id) = 0;
|
||||
};
|
||||
}
|
||||
#endif //MATADOR_COLLECTION_RESOLVER_HPP
|
||||
Reference in New Issue
Block a user