Namespaces | Functions
changeDictionary.C File Reference
Include dependency graph for changeDictionary.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Functions

 defineTemplateTypeNameAndDebug (IOPtrList< entry >, 0)
 
HashTable< wordList, wordextractPatchGroups (const dictionary &boundaryDict)
 
bool merge (dictionary &, const dictionary &, const bool, const HashTable< wordList, word > &)
 
bool addEntry (dictionary &thisDict, entry &thisEntry, const entry &mergeEntry, const bool literalRE, const HashTable< wordList, word > &shortcuts)
 
labelList findMatches (const HashTable< wordList, word > &shortcuts, const wordList &shortcutNames, const wordList &thisKeys, const keyType &key)
 
std::string trim (std::string s)
 
std::vector< std::string > splitstring (std::string SourceString, std::string strSplit=" ", int nSkip=0)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ extractPatchGroups()

HashTable<wordList, word> extractPatchGroups ( const dictionary boundaryDict)

Definition at line 93 of file changeDictionary.C.

References HashTable::find(), forAll, forAllConstIter(), HashTable::insert(), and dictionary::readIfPresent().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ merge()

bool merge ( dictionary thisDict,
const dictionary mergeDict,
const bool  literalRE,
const HashTable< wordList, word > &  shortcuts 
)

◆ addEntry()

bool addEntry ( dictionary thisDict,
entry thisEntry,
const entry mergeEntry,
const bool  literalRE,
const HashTable< wordList, word > &  shortcuts 
)

Definition at line 137 of file changeDictionary.C.

References dictionary::add(), entry::clone(), entry::dict(), entry::isDict(), and merge().

Referenced by merge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findMatches()

labelList findMatches ( const HashTable< wordList, word > &  shortcuts,
const wordList shortcutNames,
const wordList thisKeys,
const keyType key 
)

Definition at line 179 of file changeDictionary.C.

References List::append(), Foam::findIndex(), Foam::findStrings(), forAll, keyType::isPattern(), Foam::name(), and HashTable::size().

Referenced by merge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trim()

std::string trim ( std::string  s)

Definition at line 384 of file changeDictionary.C.

References s().

Referenced by splitstring().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ splitstring()

std::vector<std::string> splitstring ( std::string  SourceString,
std::string  strSplit = " ",
int  nSkip = 0 
)

Definition at line 399 of file changeDictionary.C.

References trim().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)