MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / clone

Method clone

src/sys/expressionparser.cxx:179–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177} // namespace
178
179FieldGeneratorPtr FieldBinary::clone(const list<FieldGeneratorPtr> args) {
180 if (args.size() != 2) {
181 throw ParseException("Binary operator expecting 2 arguments. Got {{}}", args.size());
182 }
183
184 return std::make_shared<FieldBinary>(args.front(), args.back(), op);
185}
186
187/// Convert a real value to a Boolean
188/// Throw exception if `rval` isn't close to 0 or 1

Callers 2

parseIdentifierExprMethod · 0.45
parseBinOpRHSMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected