LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/formula/source/core/api - vectortoken.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 22 0.0 %
Date: 2013-07-09 Functions: 0 11 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #include "formula/vectortoken.hxx"
      11             : 
      12             : namespace formula {
      13             : 
      14           0 : SingleVectorRefToken::SingleVectorRefToken( const double* pArray, size_t nLength ) :
      15           0 :     FormulaToken(svSingleVectorRef, ocPush), mpArray(pArray), mnArrayLength(nLength) {}
      16             : 
      17           0 : FormulaToken* SingleVectorRefToken::Clone() const
      18             : {
      19           0 :     return new SingleVectorRefToken(mpArray, mnArrayLength);
      20             : }
      21             : 
      22           0 : const double* SingleVectorRefToken::GetArray() const
      23             : {
      24           0 :     return mpArray;
      25             : }
      26             : 
      27           0 : size_t SingleVectorRefToken::GetArrayLength() const
      28             : {
      29           0 :     return mnArrayLength;
      30             : }
      31             : 
      32           0 : DoubleVectorRefToken::DoubleVectorRefToken(
      33             :     const std::vector<const double*>& rArrays, size_t nArrayLength, size_t nRefRowSize, bool bStartFixed, bool bEndFixed ) :
      34             :     FormulaToken(svDoubleVectorRef, ocPush),
      35           0 :     maArrays(rArrays), mnArrayLength(nArrayLength), mnRefRowSize(nRefRowSize), mbStartFixed(bStartFixed), mbEndFixed(bEndFixed) {}
      36             : 
      37           0 : FormulaToken* DoubleVectorRefToken::Clone() const
      38             : {
      39           0 :     return new DoubleVectorRefToken(maArrays, mnArrayLength, mnRefRowSize, mbStartFixed, mbEndFixed);
      40             : }
      41             : 
      42           0 : const std::vector<const double*>& DoubleVectorRefToken::GetArrays() const
      43             : {
      44           0 :     return maArrays;
      45             : }
      46             : 
      47           0 : size_t DoubleVectorRefToken::GetArrayLength() const
      48             : {
      49           0 :     return mnArrayLength;
      50             : }
      51             : 
      52           0 : size_t DoubleVectorRefToken::GetRefRowSize() const
      53             : {
      54           0 :     return mnRefRowSize;
      55             : }
      56             : 
      57           0 : bool DoubleVectorRefToken::IsStartFixed() const
      58             : {
      59           0 :     return mbStartFixed;
      60             : }
      61             : 
      62           0 : bool DoubleVectorRefToken::IsEndFixed() const
      63             : {
      64           0 :     return mbEndFixed;
      65             : }
      66             : 
      67             : }
      68             : 
      69             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10