Ignore:
Timestamp:
Oct 27, 2009, 5:16:31 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
6d7651
Parents:
a9b2a0a
git-author:
Frederik Heber <heber@…> (10/27/09 16:42:42)
git-committer:
Frederik Heber <heber@…> (10/27/09 17:16:31)
Message:

class config, ConfigFileBuffer, periodentafel and Vector are refactored with respect to ticket #38, #4 and #39.

  • <type> * const ptr ... means the pointer itself is const (not its contents that he points at).
  • const <type> * ptr ... means the pointer's content is const.
  • "ofstream *out" ... can be changed to "ofstream * const out" (pointer is constant, not output).

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/periodentafel.hpp

    ra9b2a0a r069034  
    3434  ~periodentafel();
    3535
    36   bool AddElement(element *pointer);
    37   bool RemoveElement(element *pointer);
     36  bool AddElement(element * const pointer);
     37  bool RemoveElement(element * const pointer);
    3838  bool CleanupPeriodtable();
    39   element * FindElement(int Z);
    40   element * FindElement(const char *shorthand) const;
    41   element * AskElement();
    42   bool Output(ofstream *output) const;
    43   bool Checkout(ofstream *output, const int *checkliste) const;
    44   bool LoadPeriodentafel(const char *path);
    45   bool StorePeriodentafel(const char *path) const;
     39  element * const FindElement(const int Z) const;
     40  element * const FindElement(const char * const shorthand) const;
     41  element * const AskElement() const;
     42  element * const EnterElement();
     43  bool Output(ofstream * const output) const;
     44  bool Checkout(ofstream * const output, const int * const checkliste) const;
     45  bool LoadPeriodentafel(const char * const path);
     46  bool StorePeriodentafel(const char * const path) const;
    4647
    4748  private:
Note: See TracChangeset for help on using the changeset viewer.