class Subject : public Thing

(abstract) graph element class (is either a node or an edge).

Inheritance:


Public Classes

enum NameErrType
The reasons why setting the subject name might fail (error codes)

Public Methods

Subject (Graph *g)
virtual Subject* Clone ()
bool IsSubject () const
it is a subject
virtual bool IsEdge () const
is it a node or an edge?
virtual bool InGraph () const
return if subject is part of the graph.
const string* GetName () const
virtual NameErrType SetName (const string *s)
set and check the name
void WriteMembers (OutputFile *f)
write members of subject to file.
bool ReadMembers (InputFile *f, double format)
read and parse members of subject from file.
bool SetReferences (AssocList *)
set subject references using the assoclist.
bool CheckReferences ()
Check if parent reference exists as graph node element.
void SetParent (Node *p)
Set the parent node (parent may be 0).
Node* GetParent () const
void SetAnnotation (string *s)
const string* GetAnnotation () const
Graph* GetGraph () const

Inherited from Thing:

Public Classes

enum AssocType

Public Methods

unsigned long GetId()
void SetId(unsigned long val)
virtual bool IsShape() const
virtual bool IsView() const
virtual int GetClassType() const
void Write(OutputFile *ofile)

Documentation

(abstract) graph element class (is either a node or an edge).
Subject(Graph *g)

virtual Subject* Clone()

bool IsSubject() const
it is a subject

virtual bool IsEdge() const
is it a node or an edge?

virtual bool InGraph() const
return if subject is part of the graph.

enum NameErrType
The reasons why setting the subject name might fail (error codes)

const string* GetName() const

virtual NameErrType SetName(const string *s)
set and check the name

void WriteMembers(OutputFile *f)
write members of subject to file.

bool ReadMembers(InputFile *f, double format)
read and parse members of subject from file.

bool SetReferences(AssocList *)
set subject references using the assoclist.

bool CheckReferences()
Check if parent reference exists as graph node element.

void SetParent(Node *p)
Set the parent node (parent may be 0).

Node* GetParent() const

void SetAnnotation(string *s)

const string* GetAnnotation() const

Graph* GetGraph() const


Direct child classes:
Node
Edge

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de