Go to the source code of this file.
Namespaces | |
Foam | |
Namespace for OpenFOAM. | |
Functions | |
defineTemplateTypeNameAndDebug (IOPtrList< entry >, 0) | |
HashTable< wordList, word > | extractPatchGroups (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[]) |
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().
bool merge | ( | dictionary & | thisDict, |
const dictionary & | mergeDict, | ||
const bool | literalRE, | ||
const HashTable< wordList, word > & | shortcuts | ||
) |
Definition at line 222 of file changeDictionary.C.
References dictionary::add(), addEntry(), HashTable< nil, word, string::hash >::erase(), findMatches(), forAll, forAllConstIter(), HashTable::found(), HashSet< Key, Hash >::insert(), keyType::isPattern(), dictionary::keys(), entry::keyword(), dictionary::lookupEntry(), dictionary::lookupEntryPtr(), dictionary::remove(), HashTable< nil, word, string::hash >::size(), HashTable::toc(), and HashTable< nil, word, string::hash >::toc().
Referenced by addEntry(), CPCCellToCellStencil::calcCellStencil(), CECCellToCellStencil::calcCellStencil(), FECCellToFaceStencil::calcFaceStencil(), distributedTriSurfaceMesh::distribute(), main(), edgeIntersections::merge(), and dictionary::merge().
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().
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().
std::string trim | ( | std::string | s | ) |
Definition at line 384 of file changeDictionary.C.
References s().
Referenced by 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().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 435 of file changeDictionary.C.
References dictionary::add(), argList::addBoolOption(), argList::addOption(), timeSelector::addOptions(), args, entry::clone(), polyMesh::defaultRegion, dict, entry::disableFunctionEntries, Foam::endl(), Foam::exit(), extractPatchGroups(), Foam::FatalError, FatalErrorInFunction, regIOobject::fileModificationChecking, forAll, forAllConstIter(), IOobject::headerClassName(), IOobject::headerOk(), Foam::Info, dictionary::lookupEntry(), merge(), mesh, polyMesh::meshSubDir, IOobject::MUST_READ_IF_MODIFIED, dictionaryName::name(), IOobject::name(), IOobject::NO_WRITE, word::null, argList::optionFound(), argList::optionLookupOrDefault(), IOobject::path(), IOobject::READ_IF_PRESENT, regionName, dictionary::remove(), timeSelector::selectIfPresent(), PtrList< T >::set(), PtrList< T >::setSize(), List::size(), PtrList< T >::size(), HashTable::size(), HashTable::sortedToc(), splitstring(), dictionary::subDict(), regIOobject::timeStamp, dictionary::toc(), IOstream::UNCOMPRESSED, WarningInFunction, and regIOobject::writeObject().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.