Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.cpp @ 4566:f52d0bc19e07 db-changes
fix build for msvc2008
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Mar 2021 13:54:02 +0100 |
parents | 3495a3d97ab6 |
children | b812a5f2cef3 |
comparison
equal
deleted
inserted
replaced
4565:3495a3d97ab6 | 4566:f52d0bc19e07 |
---|---|
1678 | 1678 |
1679 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, | 1679 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, |
1680 const Tuple& tuple) = 0; | 1680 const Tuple& tuple) = 0; |
1681 | 1681 |
1682 void Apply(ServerIndex& index, | 1682 void Apply(ServerIndex& index, |
1683 const T1& t1) | 1683 T1 t1) |
1684 { | 1684 { |
1685 const Tuple tuple(t1); | 1685 const Tuple tuple(t1); |
1686 TupleOperationsWrapper<ReadOnlyOperationsT1, Tuple> wrapper(*this, tuple); | 1686 TupleOperationsWrapper<ReadOnlyOperationsT1, Tuple> wrapper(*this, tuple); |
1687 index.Apply(wrapper); | 1687 index.Apply(wrapper); |
1688 } | 1688 } |
1702 | 1702 |
1703 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, | 1703 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, |
1704 const Tuple& tuple) = 0; | 1704 const Tuple& tuple) = 0; |
1705 | 1705 |
1706 void Apply(ServerIndex& index, | 1706 void Apply(ServerIndex& index, |
1707 const T1& t1, | 1707 T1 t1, |
1708 const T2& t2) | 1708 T2 t2) |
1709 { | 1709 { |
1710 const Tuple tuple(t1, t2); | 1710 const Tuple tuple(t1, t2); |
1711 TupleOperationsWrapper<ReadOnlyOperationsT2, Tuple> wrapper(*this, tuple); | 1711 TupleOperationsWrapper<ReadOnlyOperationsT2, Tuple> wrapper(*this, tuple); |
1712 index.Apply(wrapper); | 1712 index.Apply(wrapper); |
1713 } | 1713 } |
1728 | 1728 |
1729 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, | 1729 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, |
1730 const Tuple& tuple) = 0; | 1730 const Tuple& tuple) = 0; |
1731 | 1731 |
1732 void Apply(ServerIndex& index, | 1732 void Apply(ServerIndex& index, |
1733 const T1& t1, | 1733 T1 t1, |
1734 const T2& t2, | 1734 T2 t2, |
1735 const T3& t3) | 1735 T3 t3) |
1736 { | 1736 { |
1737 const Tuple tuple(t1, t2, t3); | 1737 const Tuple tuple(t1, t2, t3); |
1738 TupleOperationsWrapper<ReadOnlyOperationsT3, Tuple> wrapper(*this, tuple); | 1738 TupleOperationsWrapper<ReadOnlyOperationsT3, Tuple> wrapper(*this, tuple); |
1739 index.Apply(wrapper); | 1739 index.Apply(wrapper); |
1740 } | 1740 } |
1756 | 1756 |
1757 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, | 1757 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, |
1758 const Tuple& tuple) = 0; | 1758 const Tuple& tuple) = 0; |
1759 | 1759 |
1760 void Apply(ServerIndex& index, | 1760 void Apply(ServerIndex& index, |
1761 const T1& t1, | 1761 T1 t1, |
1762 const T2& t2, | 1762 T2 t2, |
1763 const T3& t3, | 1763 T3 t3, |
1764 const T4& t4) | 1764 T4 t4) |
1765 { | 1765 { |
1766 const Tuple tuple(t1, t2, t3, t4); | 1766 const Tuple tuple(t1, t2, t3, t4); |
1767 TupleOperationsWrapper<ReadOnlyOperationsT4, Tuple> wrapper(*this, tuple); | 1767 TupleOperationsWrapper<ReadOnlyOperationsT4, Tuple> wrapper(*this, tuple); |
1768 index.Apply(wrapper); | 1768 index.Apply(wrapper); |
1769 } | 1769 } |
1786 | 1786 |
1787 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, | 1787 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, |
1788 const Tuple& tuple) = 0; | 1788 const Tuple& tuple) = 0; |
1789 | 1789 |
1790 void Apply(ServerIndex& index, | 1790 void Apply(ServerIndex& index, |
1791 const T1& t1, | 1791 T1 t1, |
1792 const T2& t2, | 1792 T2 t2, |
1793 const T3& t3, | 1793 T3 t3, |
1794 const T4& t4, | 1794 T4 t4, |
1795 const T5& t5) | 1795 T5 t5) |
1796 { | 1796 { |
1797 const Tuple tuple(t1, t2, t3, t4, t5); | 1797 const Tuple tuple(t1, t2, t3, t4, t5); |
1798 TupleOperationsWrapper<ReadOnlyOperationsT5, Tuple> wrapper(*this, tuple); | 1798 TupleOperationsWrapper<ReadOnlyOperationsT5, Tuple> wrapper(*this, tuple); |
1799 index.Apply(wrapper); | 1799 index.Apply(wrapper); |
1800 } | 1800 } |
1818 | 1818 |
1819 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, | 1819 virtual void ApplyTuple(ServerIndex::ReadOnlyTransaction& transaction, |
1820 const Tuple& tuple) = 0; | 1820 const Tuple& tuple) = 0; |
1821 | 1821 |
1822 void Apply(ServerIndex& index, | 1822 void Apply(ServerIndex& index, |
1823 const T1& t1, | 1823 T1 t1, |
1824 const T2& t2, | 1824 T2 t2, |
1825 const T3& t3, | 1825 T3 t3, |
1826 const T4& t4, | 1826 T4 t4, |
1827 const T5& t5, | 1827 T5 t5, |
1828 const T6& t6) | 1828 T6 t6) |
1829 { | 1829 { |
1830 const Tuple tuple(t1, t2, t3, t4, t5, t6); | 1830 const Tuple tuple(t1, t2, t3, t4, t5, t6); |
1831 TupleOperationsWrapper<ReadOnlyOperationsT6, Tuple> wrapper(*this, tuple); | 1831 TupleOperationsWrapper<ReadOnlyOperationsT6, Tuple> wrapper(*this, tuple); |
1832 index.Apply(wrapper); | 1832 index.Apply(wrapper); |
1833 } | 1833 } |