Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Model::Generalizes Class Reference

#include <Generalizes.hpp>

Inheritance diagram for Model::Generalizes:

OMF::Association List of all members.

Detailed Description

Defined in [3.5.2].


Public Types

typedef OMF::BasicLink< GeneralizableElement,
GeneralizableElement > 
Link

Public Member Functions

virtual ~Generalizes ()
void add (GeneralizableElement *supertype, GeneralizableElement *subtype)
virtual void add (OMF::ModelObject *end1, OMF::ModelObject *end2)
void remove (GeneralizableElement *supertype, GeneralizableElement *subtype)
virtual void remove (OMF::ModelObject *end1, OMF::ModelObject *end2)
const std::string & name () const
const LinkSet & links () const
bool exists (ModelObject *end1, ModelObject *end2) const
Link * find (ModelObject *end1, ModelObject *end2) const

Static Public Member Functions

Generalizes & instance (const std::string &name="")

Protected Member Functions

 Generalizes ()
Association & init (const std::string &name)
void addLink (Link *link)
void removeLink (Link *link)


Member Typedef Documentation

typedef OMF::BasicLink<GeneralizableElement, GeneralizableElement> Model::Generalizes::Link
 


Constructor & Destructor Documentation

Model::Generalizes::Generalizes (   )  [protected]
 

virtual Model::Generalizes::~Generalizes (   )  [virtual]
 


Member Function Documentation

virtual void Model::Generalizes::add (  OMF::ModelObject *  end1,
OMF::ModelObject *  end2
)  [virtual]
 

Add a link to the link set.

Reimplemented from OMF::Association.

void Model::Generalizes::add (  GeneralizableElement *  supertype,
GeneralizableElement *  subtype
) 
 

Add a link to the link set.

void OMF::Association::addLink (  Link *  link  )  [protected, inherited]
 

Used to internally add a newly created link object.

bool OMF::Association::exists (  ModelObject *  end1,
ModelObject *  end2
)  const [inherited]
 

Check for link existence.

Link* OMF::Association::find (  ModelObject *  end1,
ModelObject *  end2
)  const [inherited]
 

Find the link between the two objects.

Association& OMF::Association::init (  const std::string &  name  )  [protected, inherited]
 

Called to initialize the association.

Generalizes& Model::Generalizes::instance (  const std::string &  name = ""  )  [static]
 

Return the singleton instance of this association.

const LinkSet& OMF::Association::links (   )  const [inherited]
 

Return all the links.

const std::string& OMF::Association::name (   )  const [inherited]
 

Return the name of the association.

virtual void Model::Generalizes::remove (  OMF::ModelObject *  end1,
OMF::ModelObject *  end2
)  [virtual]
 

Remove a link from the link set.

Reimplemented from OMF::Association.

void Model::Generalizes::remove (  GeneralizableElement *  supertype,
GeneralizableElement *  subtype
) 
 

Remove a link from the link set.

void OMF::Association::removeLink (  Link *  link  )  [protected, inherited]
 

Used to internally remove a link object.


The documentation for this class was generated from the following file:
Generated on Fri Sep 10 13:07:36 2004 for OpenModelingFramework by doxygen 1.3.8