pygccxml.parser.declarations_cache.cache_base_t

Package pygccxml :: Package parser :: Module declarations_cache :: Class cache_base_t |

# type cache_base_t

source code

    object --+
             |
            cache_base_t

Known Subclasses:
  - dummy_cache_t
  - , file_cache_t
  - , directory_cache.directory_cache_t

Instance Methods
__init__(self) | source code
flush(self) Flush (write out) the cache to disk if needed. | source code
update(self, source_file, configuration, declarations, included_files) Update cache entry. | source code
cached_value(self, source_file, configuration) Return declarations we have cached for the source_file and configuration given. | source code

Class Variables
| logger = `utils.loggers.declarations_cache`

Method Details

### __init__(self) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)

### update(self, source_file, configuration, declarations, included_files) | source code
Update cache entry. Parameters: `source_file` - path to the C++ source file being parsed `configuration` - configuration used in parsing (config_t) `declarations` - declaration tree found when parsing `included_files` - files included by parsing.

### cached_value(self, source_file, configuration) | source code
    Return declarations we have cached for the source_file and configuration
        given.
    @param source_file: path to the C++ source file being parsed.
    @param configuration: configuration to use for parsing (config_t)