Создание диаграммы классов и кода на С++ в среде RationalRose, страница 2

{}

Variant fig_kontur::ff2 ()

{}

Integer fig_kontur::komb (fig_kontur* c)

{}

h:

#ifndef filled_h

#define filled_h 1

class filled

{  public:

      filled();

      filled(const filled &right);

      ~filled();

      filled & operator=(const filled &right);

      int operator==(const filled &right) const;

      int operator!=(const filled &right) const;

      Integer get_zvet ();

      Variant set_zvet (Integer c);

  protected:

  private:

      const Integer get_zvet () const;

      void set_zvet (Integer value);

  private:      Integer zvet; };

inline const Integer filled::get_zvet () const

{  return zvet;}

inline void filled::set_zvet (Integer value)

{  zvet = value; }

#endif

cpp:

#include "filled.h"

filled::filled()

{}

filled::filled(const filled &right)

{}

filled::~filled()

{}

filled & filled::operator=(const filled &right)

{}

int filled::operator==(const filled &right) const

{}

int filled::operator!=(const filled &right) const

{}

Integer filled::get_zvet ()

{}

Variant filled::set_zvet (Integer c)

{}

h:

#ifndef filled_fig_h

#define filled_fig_h 1

#include "filled.h"

#include "fig_kontur.h"

class filled_fig : public filled,

                        public fig_kontur 

{  public:

      filled_fig();

      filled_fig(const filled_fig &right);

      ~filled_fig();

      filled_fig & operator=(const filled_fig &right);

      int operator==(const filled_fig &right) const;

      int operator!=(const filled_fig &right) const;

      Variant ff1 ();

      Variant ff2 ();

      Integer komb (filled_fig* c);

      Variant zakraska ();

  protected:

  private:

  private:    };

#endif

cpp

#include "filled_fig.h"

filled_fig::filled_fig()

{}

filled_fig::filled_fig(const filled_fig &right)

{}

filled_fig::~filled_fig()

{}

filled_fig & filled_fig::operator=(const filled_fig &right)

{}

int filled_fig::operator==(const filled_fig &right) const

{}

int filled_fig::operator!=(const filled_fig &right) const

{}

Variant filled_fig::ff1 ()

{}

Variant filled_fig::ff2 ()

{}

Integer filled_fig::komb (filled_fig* c)

{}

Variant filled_fig::zakraska ()

{}

h:

#ifndef kombin_fig_h

#define kombin_fig_h 1

#include "filled_fig.h"

class kombin_fig : public filled_fig  //## Inherits: <unnamed>%439FD55A0186

{  public:

      kombin_fig();

      kombin_fig(const kombin_fig &right);

      ~kombin_fig();

      kombin_fig & operator=(const kombin_fig &right);

      int operator==(const kombin_fig &right) const;

      int operator!=(const kombin_fig &right) const;

      Variant ff1 ();

      Variant ff2 ();

      Variant zakraska ();

      Integer komb (kombin_fig* c);

  protected:

  private:

      const filled_fig get_h () const;

      void set_h (filled_fig value);

      const filled_fig get_g () const;

      void set_g (filled_fig value);

  private:      filled_fig h;

      filled_fig g;

};

inline const filled_fig kombin_fig::get_h () const

{  return h;}

inline void kombin_fig::set_h (filled_fig value)

{  h = value;}

inline const filled_fig kombin_fig::get_g () const

{  return g;}

inline void kombin_fig::set_g (filled_fig value)

{  g = value;}

#endif

cpp:

#include "kombin_fig.h"

kombin_fig::kombin_fig()

{}

kombin_fig::kombin_fig(const kombin_fig &right)

{}

kombin_fig::~kombin_fig()

{}

kombin_fig & kombin_fig::operator=(const kombin_fig &right)

{}

int kombin_fig::operator==(const kombin_fig &right) const

{}

int kombin_fig::operator!=(const kombin_fig &right) const

{}

Variant kombin_fig::ff1 ()

{}

Variant kombin_fig::ff2 ()

{}

Variant kombin_fig::zakraska ()

{}

Integer kombin_fig::komb (kombin_fig* c)

{}

h:

#ifndef list_h

#define list_h 1

class list

{  public:

      list();

      list(const list &right);

      ~list();

      list & operator=(const list &right);

      int operator==(const list &right) const;

      int operator!=(const list &right) const;

  protected:

  private:

      const list* get_next () const;

      void set_next (list* value);

      const list* get_pred () const;

      void set_pred (list* value);

      const type* get_k () const;

      void set_k (type* value);

  private:      list* next;

      list* pred;

      type* k;

};

inline const list* list::get_next () const

{  return next;}

inline void list::set_next (list* value)

{  next = value;}

inline const list* list::get_pred () const

{  return pred;}

inline void list::set_pred (list* value)

{  pred = value;}

inline const type* list::get_k () const

{  return k;}

inline void list::set_k (type* value)

{  k = value;}

#endif

cpp