~juan457/+junk/zorba

« back to all changes in this revision

Viewing changes to src/store/naive/pul_primitives.h

  • Committer: Markos Zaharioudakis
  • Date: 2012-07-11 15:38:39 UTC
  • mfrom: (10924 zorba)
  • mto: This revision was merged to the branch mainline in revision 10932.
  • Revision ID: markos_za@yahoo.com-20120711153839-0mkh15cg2ubknchd
work in progress

Show diffs side-by-side

added added

removed removed

Lines of Context:
1787
1787
      const QueryLoc* loc,
1788
1788
      store::Item_t& target,
1789
1789
      xs_integer& pos);
 
1790
 
 
1791
  UpdJSONArrayUpdate(
 
1792
      CollectionPul* pul,
 
1793
      const QueryLoc* loc,
 
1794
      store::Item_t& target);
1790
1795
};
1791
1796
 
1792
1797
 
1826
1831
/*******************************************************************************
1827
1832
 
1828
1833
********************************************************************************/
 
1834
class UpdJSONArrayAppend : public UpdJSONArrayUpdate
 
1835
{
 
1836
  friend class PULImpl;
 
1837
  friend class CollectionPul;
 
1838
  friend class PULPrimitiveFactory;
 
1839
 
 
1840
protected:
 
1841
  std::vector<store::Item_t>  theMembers;
 
1842
 
 
1843
  long                        theNumApplied;
 
1844
 
 
1845
protected:
 
1846
  UpdJSONArrayAppend(
 
1847
      CollectionPul* pul,
 
1848
      const QueryLoc* loc,
 
1849
      store::Item_t& target,
 
1850
      std::vector<store::Item_t>& members);
 
1851
 
 
1852
public:
 
1853
  store::UpdateConsts::UpdPrimKind getKind() const
 
1854
  {
 
1855
    return store::UpdateConsts::UP_JSON_ARRAY_APPEND;
 
1856
  }
 
1857
 
 
1858
  void apply();
 
1859
  void undo();
 
1860
};
 
1861
 
 
1862
 
 
1863
/*******************************************************************************
 
1864
 
 
1865
********************************************************************************/
1829
1866
class UpdJSONArrayDelete : public UpdJSONArrayUpdate
1830
1867
{
1831
1868
  friend class PULImpl;