Return RowExpr from List::get()
This commit is contained in:
parent
8e58fc693c
commit
4c5389dbac
|
@ -39,7 +39,7 @@ size_t List::size() const
|
||||||
return m_link_view->size();
|
return m_link_view->size();
|
||||||
}
|
}
|
||||||
|
|
||||||
Row List::get(size_t row_ndx) const
|
RowExpr List::get(size_t row_ndx) const
|
||||||
{
|
{
|
||||||
verify_attached();
|
verify_attached();
|
||||||
verify_valid_row(row_ndx);
|
verify_valid_row(row_ndx);
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace realm {
|
namespace realm {
|
||||||
|
template<typename T> class BasicRowExpr;
|
||||||
|
using RowExpr = BasicRowExpr<Table>;
|
||||||
|
|
||||||
class ObjectSchema;
|
class ObjectSchema;
|
||||||
class Realm;
|
class Realm;
|
||||||
|
|
||||||
|
@ -37,7 +40,7 @@ public:
|
||||||
Query get_query() const;
|
Query get_query() const;
|
||||||
|
|
||||||
size_t size() const;
|
size_t size() const;
|
||||||
Row get(size_t row_ndx) const;
|
RowExpr get(size_t row_ndx) const;
|
||||||
void set(size_t row_ndx, size_t target_row_ndx);
|
void set(size_t row_ndx, size_t target_row_ndx);
|
||||||
|
|
||||||
void add(size_t target_row_ndx);
|
void add(size_t target_row_ndx);
|
||||||
|
|
Loading…
Reference in New Issue