WordFreq
Public Member Functions | Public Attributes | List of all members
ParserCollection Struct Reference

Common data structures needed to support cross file frequency analysis. More...

#include <parser.h>

Collaboration diagram for ParserCollection:
Collaboration graph

Public Member Functions

void exportGlobal (std::ostream &out=std::cout)
 A function that exports the combined frequency map. More...
 

Public Attributes

std::map< std::string, size_t > globalFreqencyMap
 
std::vector< Parserparsers
 

Detailed Description

Common data structures needed to support cross file frequency analysis.

Note: No effort was taken to make globalFreqencyMap thread safe. Parsers are intended to run sequentially.

Member Function Documentation

◆ exportGlobal()

void ParserCollection::exportGlobal ( std::ostream &  out = std::cout)

A function that exports the combined frequency map.

Parameters
[in]outThe out stream we want to export the global frequency map. This parameter allows one to use a file stream instead of the default iostream.

Member Data Documentation

◆ globalFreqencyMap

std::map<std::string, size_t> ParserCollection::globalFreqencyMap

◆ parsers

std::vector<Parser> ParserCollection::parsers

The documentation for this struct was generated from the following files: