added date_type_t, time_type_t and timestamp, ensure allocated postgres resources are released, split repository into basic_repository and repository.
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
#ifndef SCHEMA_NODE_ITERATOR_HPP
|
||||
#define SCHEMA_NODE_ITERATOR_HPP
|
||||
|
||||
#include "matador/object/repository_node.hpp"
|
||||
#ifndef REPOSITORY_NODE_ITERATOR_HPP
|
||||
#define REPOSITORY_NODE_ITERATOR_HPP
|
||||
|
||||
#include <iterator>
|
||||
|
||||
namespace matador::object {
|
||||
|
||||
class repository_node;
|
||||
|
||||
class const_repository_node_iterator {
|
||||
public:
|
||||
using iterator_category = std::bidirectional_iterator_tag;
|
||||
using difference_type = std::ptrdiff_t;
|
||||
using value_type = std::shared_ptr<repository_node>;
|
||||
using value_type = repository_node;
|
||||
using pointer = repository_node*;
|
||||
using reference = value_type;
|
||||
using reference = value_type&;
|
||||
|
||||
/**
|
||||
* Creates an empty iterator
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
*
|
||||
* @param node The schema node of the object
|
||||
*/
|
||||
explicit const_repository_node_iterator(const value_type& node);
|
||||
explicit const_repository_node_iterator(value_type* node);
|
||||
|
||||
/**
|
||||
* Copy from a given const_object_view_iterator.
|
||||
@@ -123,8 +123,8 @@ private:
|
||||
void decrement();
|
||||
|
||||
private:
|
||||
value_type node_{};
|
||||
pointer node_{nullptr};
|
||||
};
|
||||
|
||||
}
|
||||
#endif //SCHEMA_NODE_ITERATOR_HPP
|
||||
#endif //REPOSITORY_NODE_ITERATOR_HPP
|
||||
|
||||
Reference in New Issue
Block a user