Blame view

Giac_maj/epsilon-giac/poincare/src/leaf_expression.cpp 551 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  #include <poincare/leaf_expression.h>
  extern "C" {
  #include <assert.h>
  #include <stdlib.h>
  }
  
  namespace Poincare {
  
  bool LeafExpression::hasValidNumberOfArguments() const {
    return true;
  }
  
  int LeafExpression::numberOfOperands() const {
    return 0;
  }
  
  const Expression * LeafExpression::operand(int i) const {
    assert(false);
    return nullptr;
  }
  
  Expression * LeafExpression::cloneWithDifferentOperands(Expression** newOperands,
          int numberOfOperands, bool cloneOperands) const {
    assert(numberOfOperands == 0);
    return this->clone();
  }
  
  }