summaryrefslogtreecommitdiffstats
path: root/sc/inc/cellvalues.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-29 23:35:34 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-30 11:57:00 -0500
commita0bd814fb5c2ed1d8a1583eb59c783290c7c3dc9 (patch)
treede2c5088bfedd77def56342bb8de53053fba9e78 /sc/inc/cellvalues.hxx
parentLibreLogo is not a UNO component (diff)
downloadcore-a0bd814fb5c2ed1d8a1583eb59c783290c7c3dc9.tar.gz
core-a0bd814fb5c2ed1d8a1583eb59c783290c7c3dc9.zip
Speed up filling of random number generation over entire column.
Because nobody wants to wait forever... Change-Id: Ie52bff944893b7e3fe9e7908be19d27c692fc1ea
Diffstat (limited to 'sc/inc/cellvalues.hxx')
-rw-r--r--sc/inc/cellvalues.hxx44
1 files changed, 44 insertions, 0 deletions
diff --git a/sc/inc/cellvalues.hxx b/sc/inc/cellvalues.hxx
new file mode 100644
index 000000000000..8b249b4556b4
--- /dev/null
+++ b/sc/inc/cellvalues.hxx
@@ -0,0 +1,44 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef SC_CELLVALUES_HXX
+#define SC_CELLVALUES_HXX
+
+#include <address.hxx>
+
+class ScColumn;
+
+namespace sc {
+
+struct CellValuesImpl;
+
+class CellValues
+{
+ CellValuesImpl* mpImpl;
+
+ CellValues( const CellValues& ); // disabled
+ CellValues& operator= ( const CellValues& ); // disabled
+
+public:
+ CellValues();
+ ~CellValues();
+
+ void transferFrom( ScColumn& rCol, SCROW nRow, size_t nLen );
+ void copyTo( ScColumn& rCol, SCROW nRow ) const;
+
+ void assign( const std::vector<double>& rVals );
+
+ size_t size() const;
+};
+
+}
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */