From c0498db971808ce15bba8ef3daa8f4d2a02a685a Mon Sep 17 00:00:00 2001 From: Chris Dams Date: Mon, 7 Aug 2006 16:51:24 +0000 Subject: [PATCH] Improved the comments explaining what the class ex does. --- ginac/ex.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ginac/ex.h b/ginac/ex.h index 498dbd66..8be4814e 100644 --- a/ginac/ex.h +++ b/ginac/ex.h @@ -59,10 +59,11 @@ class const_preorder_iterator; class const_postorder_iterator; -/** Lightweight wrapper for GiNaC's symbolic objects. Basically all it does is - * to hold a pointer to the other objects, manage the reference counting and - * provide methods for manipulation of these objects. (Some people call such - * a thing a proxy class.) */ +/** Lightweight wrapper for GiNaC's symbolic objects. It holds a pointer to + * the other object in order to do garbage collection by the method of + * reference counting. I.e., it is a smart pointer. Also, the constructor + * ex::ex(const basic & other) calls the methods that do automatic + * evaluation. E.g., x-x turns automatically into 0. */ class ex { friend class archive_node; friend inline bool are_ex_trivially_equal(const ex &, const ex &); -- 2.45.1