File: data_id.hpp

package info (click to toggle)
aspell 0.60.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,336 kB
  • sloc: cpp: 24,378; sh: 12,340; perl: 1,924; ansic: 1,661; makefile: 852; sed: 16
file content (29 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef ASPELLER_DATA_ID__HPP
#define ASPELLER_DATA_ID__HPP

#include "settings.h"

#include <sys/stat.h>

namespace aspeller {
  
  class Dict::Id {
  public: // but don't use
    const Dict * ptr;
    const char * file_name;
#ifdef USE_FILE_INO
    ino_t           ino;
    dev_t           dev;
#endif
  public:
    Id(Dict * p, const FileName & fn = FileName());
  };

  inline bool Dict::cache_key_eq(const Id & o) 
  {
    return *id_ == o;
  }

}

#endif