MCPcopy Create free account
hub / github.com/Gecode/gecode / append

Method append

gecode/flatzinc/ast.hh:312–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 Node::~Node(void) {}
311
312 inline void
313 Node::append(Node* newNode) {
314 Array* a = dynamic_cast<Array*>(this);
315 if (!a)
316 throw TypeError("array expected");
317 a->a.push_back(newNode);
318 }
319
320 inline bool
321 Node::hasAtom(const std::string& id) {

Callers 4

yyparseFunction · 0.45
flushMethod · 0.45
TreeCanvasMethod · 0.45
bookmarkNodeMethod · 0.45

Calls 1

TypeErrorFunction · 0.85

Tested by

no test coverage detected