core-activation.inline.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef AFUN_CORE_ACTIVATION_INLINE_H
  2. #define AFUN_CORE_ACTIVATION_INLINE_H
  3. #include "core-activation.h"
  4. namespace aFuncore {
  5. inline void Activation::endRun() {
  6. }
  7. inline VarList *Activation::getVarlist() const{
  8. return varlist;
  9. }
  10. inline UpMessage &Activation::getUpStream() {
  11. return up;
  12. }
  13. inline DownMessage &Activation::getDownStream() {
  14. return down;
  15. }
  16. inline aFuntool::FileLine Activation::getFileLine() const{
  17. return line;
  18. }
  19. inline const aFuntool::FilePath &Activation::getFilePath() const{
  20. return path;
  21. }
  22. inline ExeActivation::ExeActivation(const Code &code, Inter &inter_) : Activation(inter_), start{code.getByteCode()}, next{code.getByteCode()} {
  23. }
  24. inline ExeActivation::ExeActivation(const Code::ByteCode *code, Inter &inter_) : Activation(inter_), start{code}, next{code} {
  25. }
  26. inline const Code::ByteCode *ExeActivation::getStart() const{
  27. return start;
  28. }
  29. const Code &TopActivation::getBase() const {
  30. return base;
  31. }
  32. inline FuncActivation::FuncActivation(const Code::ByteCode *code, Inter &inter_) : Activation(inter_), call{code} {
  33. }
  34. }
  35. #endif //AFUN_CORE_ACTIVATION_INLINE_H