31#include <sptk5/DataSource.h> 
   32#include <sptk5/Exception.h> 
   33#include <sptk5/FieldList.h> 
   34#include <sptk5/sptk.h> 
   70        : m_list(std::move(other.m_list))
 
   71        , m_current(std::move(other.m_current))
 
   89        std::scoped_lock lock(m_mutex, other.m_mutex);
 
   90        m_list = std::move(other.m_list);
 
   91        m_current = std::move(other.m_current);
 
  106        std::lock_guard lock(m_mutex);
 
  190        std::scoped_lock lock(m_mutex);
 
  191        return m_current == m_list.end();
 
  196    std::list<FieldList>& rows()
 
  198        std::scoped_lock lock(m_mutex);
 
  202    const std::list<FieldList>& rows()
 const 
  204        std::scoped_lock lock(m_mutex);
 
  216    mutable std::mutex m_mutex;
 
  217    std::list<FieldList> m_list;              
 
  218    std::list<FieldList>::iterator m_current; 
 
Definition: DataSource.h:49
 
Definition: FieldList.h:50
 
Base (memory) datasource.
Definition: MemoryDS.h:52
 
MemoryDS & operator=(const MemoryDS &other)=delete
 
Field & operator[](const String &fieldName) override
 
MemoryDS(MemoryDS &&other) noexcept
Definition: MemoryDS.h:69
 
size_t fieldCount() const override
 
virtual FieldList & current()
Definition: MemoryDS.h:104
 
bool writeField(const char *fieldName, const Variant &fieldValue) override
 
MemoryDS & operator=(MemoryDS &&other) noexcept
Definition: MemoryDS.h:87
 
void push_back(FieldList &&fieldList)
 
bool find(const String &fieldName, const Variant &position) override
 
Field & operator[](size_t fieldIndex) override
 
bool eof() const override
Definition: MemoryDS.h:188
 
MemoryDS(const MemoryDS &other)=delete
 
bool readField(const char *fieldName, Variant &fieldValue) override
 
size_t recordCount() const override
 
Definition: Variant.h:372