MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / clear

Method clear

DEVELOPER/core/File.cpp:62–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62int
63File::clear(void)
64{
65 if (isDirectory == true) {
66
67 FileIter theDirFiles = this->getFiles();
68 File *aDirFile =0;
69 while ((aDirFile = theDirFiles()) != 0)
70 delete aDirFile;
71 }
72
73 dirFiles.clear();
74 name.clear();
75 description.clear();
76
77 return 0;
78}
79
80int
81File::addFile(File *theFile)

Callers 4

clearAllMethod · 0.45
binaryToTextFunction · 0.45
startMethod · 0.45
~FileMethod · 0.45

Calls 1

getFilesMethod · 0.95

Tested by

no test coverage detected