From 0005b3d284798a7144de7ff6d93936e811f8be47 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 24 Jan 2000 22:20:04 +0000 Subject: [PATCH] - Added some comments for doxygen. --- ginac/basic.cpp | 6 ++++++ ginac/flags.h | 1 + 2 files changed, 7 insertions(+) diff --git a/ginac/basic.cpp b/ginac/basic.cpp index 0d9f989b..89186ad9 100644 --- a/ginac/basic.cpp +++ b/ginac/basic.cpp @@ -201,21 +201,27 @@ basic * basic::duplicate() const return new basic(*this); } +/** Information about the object. + * + * @see class info_flags */ bool basic::info(unsigned inf) const { return false; // all possible properties are false for basic objects } +/** Number of operands/members. */ unsigned basic::nops() const { return 0; } +/** Return operand/member at position i. */ ex basic::op(int i) const { return (const_cast(this))->let_op(i); } +/** Return modifyable operand/member at position i. */ ex & basic::let_op(int i) { throw(std::out_of_range("op() out of range")); diff --git a/ginac/flags.h b/ginac/flags.h index 5f32ffe7..add2cc49 100644 --- a/ginac/flags.h +++ b/ginac/flags.h @@ -42,6 +42,7 @@ public: }; }; +/** Possible attributes an object can have. */ class info_flags { public: enum { -- 2.44.0