A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::Hash::Example::DictFiles Class Reference

Source word list files. More...

+ Collaboration diagram for ns3::Hash::Example::DictFiles:

Public Member Functions

bool Add (const std::string file)
 CommandLine callback function to add a file argument to the list. More...
 
void ReadInto (Dictionary &dict)
 Add phrases from the files into the dict. More...
 

Private Attributes

std::vector< std::string > m_files
 List of word files to use. More...
 

Detailed Description

Source word list files.

Definition at line 373 of file hash-example.cc.

Member Function Documentation

bool ns3::Hash::Example::DictFiles::Add ( const std::string  file)
inline

CommandLine callback function to add a file argument to the list.

Parameters
[in]filethe word file to add
Returns
true if the file is new to the list

Definition at line 384 of file hash-example.cc.

References m_files.

Referenced by main(), and ReadInto().

+ Here is the caller graph for this function:

void ns3::Hash::Example::DictFiles::ReadInto ( Dictionary dict)
inline

Add phrases from the files into the dict.

Parameters
[in,out]dictthe Dictionary to add words to

Definition at line 399 of file hash-example.cc.

References ns3::Hash::Example::Dictionary::Add(), Add(), and m_files.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<std::string> ns3::Hash::Example::DictFiles::m_files
private

List of word files to use.

Definition at line 444 of file hash-example.cc.

Referenced by Add(), and ReadInto().


The documentation for this class was generated from the following file: