Return RowExpr from List::get()

This commit is contained in:
Thomas Goyne 2016-02-03 17:57:29 -08:00
parent 8e58fc693c
commit 4c5389dbac
2 changed files with 5 additions and 2 deletions

View File

@ -39,7 +39,7 @@ size_t List::size() const
return m_link_view->size();
}
Row List::get(size_t row_ndx) const
RowExpr List::get(size_t row_ndx) const
{
verify_attached();
verify_valid_row(row_ndx);

View File

@ -24,6 +24,9 @@
#include <memory>
namespace realm {
template<typename T> class BasicRowExpr;
using RowExpr = BasicRowExpr<Table>;
class ObjectSchema;
class Realm;
@ -37,7 +40,7 @@ public:
Query get_query() 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 add(size_t target_row_ndx);