MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / GetCmdLineArgument

Method GetCmdLineArgument

test/OpenCL/RadixSortBenchmark/main.cpp:608–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606
607template <typename T>
608void b3CommandLineArgs::GetCmdLineArgument(const char *arg_name, T &val)
609{
610 using namespace std;
611 map<string, string>::iterator itr;
612 if ((itr = pairs.find(arg_name)) != pairs.end())
613 {
614 istringstream strstream(itr->second);
615 strstream >> val;
616 }
617}
618
619template <>
620void b3CommandLineArgs::GetCmdLineArgument<char *>(const char *arg_name, char *&val)

Callers 4

mainFunction · 0.45
mainFunction · 0.45
initCLFunction · 0.45
mainFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected