Project

General

Profile

Design #272

Forward declarations

Added by John Abbott over 11 years ago. Updated almost 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Tidying
Target version:
Start date:
24 Oct 2012
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

The C++ STL offers a header file <iosfwd> which contains forward declarations of the types used for input/output (but without all the template code that is needed for the definitions).

After the recent change regarding ConstRefRingElem (#261), I noticed that a similar mechanism could be useful inside CoCoALib.

The simplest solution is to have one file which gives forward declarations of as many types as possible; it may be better, though, to group the types more finely (e.g. rings and their elements, PP monoids and their elements, ...)

We could start by looking to see which forward declarations we use most often.

Ideas? Comments? Suggestions?

History

#1 Updated by Anna Maria Bigatti over 11 years ago

yes! I'm not sure how easy/difficult it is going to be to group them: looking at the documentation page:
PPMonoid
ring
PolyRing?
modules
numbers?
homomorphisms?
groebner?

#2 Updated by Anna Maria Bigatti almost 10 years ago

  • Target version set to CoCoALib-0.99533 Easter14

#3 Updated by John Abbott almost 10 years ago

  • Category set to Tidying
  • Target version changed from CoCoALib-0.99533 Easter14 to CoCoALib-1.0

Also available in: Atom PDF