LCOV - code coverage report
Current view: directory - gfx/graphite2/src/inc - CmapCache.h (source / functions) Found Hit Coverage
Test: app.info Lines: 8 0 0.0 %
Date: 2012-06-02 Functions: 12 0 0.0 %

       1                 : /*  GRAPHITE2 LICENSING
       2                 : 
       3                 :     Copyright 2010, SIL International
       4                 :     All rights reserved.
       5                 : 
       6                 :     This library is free software; you can redistribute it and/or modify
       7                 :     it under the terms of the GNU Lesser General Public License as published
       8                 :     by the Free Software Foundation; either version 2.1 of License, or
       9                 :     (at your option) any later version.
      10                 : 
      11                 :     This program is distributed in the hope that it will be useful,
      12                 :     but WITHOUT ANY WARRANTY; without even the implied warranty of
      13                 :     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      14                 :     Lesser General Public License for more details.
      15                 : 
      16                 :     You should also have received a copy of the GNU Lesser General Public
      17                 :     License along with this library in the file named "LICENSE".
      18                 :     If not, write to the Free Software Foundation, 51 Franklin Street,
      19                 :     Suite 500, Boston, MA 02110-1335, USA or visit their web page on the
      20                 :     internet at http://www.fsf.org/licenses/lgpl.html.
      21                 : 
      22                 : Alternatively, the contents of this file may be used under the terms of the
      23                 : Mozilla Public License (http://mozilla.org/MPL) or the GNU General Public
      24                 : License, as published by the Free Software Foundation, either version 2
      25                 : of the License or (at your option) any later version.
      26                 : */
      27                 : #pragma once
      28                 : 
      29                 : #include "inc/Main.h"
      30                 : 
      31                 : namespace graphite2 {
      32                 : 
      33                 : class Face;
      34                 : 
      35                 : class Cmap
      36               0 : {
      37                 : public:
      38               0 :         virtual ~Cmap() throw() {}
      39                 : 
      40               0 :         virtual uint16 operator [] (const uint32) const throw() { return 0; }
      41                 : 
      42               0 :         virtual operator bool () const throw() { return false; }
      43                 : 
      44               0 :         CLASS_NEW_DELETE;
      45                 : };
      46                 : 
      47                 : class DirectCmap : public Cmap
      48               0 : {
      49                 : public:
      50                 :         DirectCmap(const void* cmap, size_t length);
      51                 :         virtual uint16 operator [] (const uint32 usv) const throw();
      52                 :         virtual operator bool () const throw();
      53                 : 
      54               0 :     CLASS_NEW_DELETE;
      55                 : private:
      56                 :     const void *_stable,
      57                 :                    *_ctable;
      58                 : };
      59                 : 
      60                 : class CmapCache : public Cmap
      61                 : {
      62                 : public:
      63                 :         CmapCache(const void * cmapTable, size_t length);
      64                 :         virtual ~CmapCache() throw();
      65                 :         virtual uint16 operator [] (const uint32 usv) const throw();
      66                 :         virtual operator bool () const throw();
      67               0 :     CLASS_NEW_DELETE;
      68                 : private:
      69                 :     bool m_isBmpOnly;
      70                 :     uint16 ** m_blocks;
      71                 : };
      72                 : 
      73                 : } // namespace graphite2

Generated by: LCOV version 1.7