A Discrete-Event Network Simulator
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 456 of file hash-example.cc.

Member Function Documentation

◆ Add()

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

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

[in]fileThe word file to add.
true Tf the file is new to the list.

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

References anonymous_namespace{print-introspected-doxygen.cc}::file, and m_files.

Referenced by ReadInto().

+ Here is the caller graph for this function:

◆ ReadInto()

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

Add phrases from the files into the dict.

[in,out]dictThe Dictionary to add words to.

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

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

+ Here is the call graph for this function:

Member Data Documentation

◆ m_files

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

List of word files to use.

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

Referenced by Add(), and ReadInto().

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