22 WP::GPM_Vertex mSource;
23 WP::GPM_Vertex mTarget;
32 GPM_Edge(SP::GPM_Vertex source,SP::GPM_Vertex target);
50 static inline SP::GPM_Edge
New(SP::GPM_Vertex source,
51 SP::GPM_Vertex target) {
59 static inline SP::GPM_Edge
New(
const int&
id) {
60 SP::GPM_Vertex edge,target;
61 SP::GPM_Edge p=
New(edge,target);
67 static inline SP::GPM_Edge
New() {
68 SP::GPM_Vertex edge,target;
69 return New(edge,target);
111 SP::GPM_Vertex v=mSource.lock();
118 SP::GPM_Vertex v=mTarget.lock();
virtual tString getGroupTypeName() const
get the default group type name
Definition: GPM_Edge.h:91
GPM_Edge(SP::GPM_Vertex source, SP::GPM_Vertex target)
create an object
Definition: GPM_Edge.cpp:7
static SP::GPM_Edge New(const int &id)
create an edge
Definition: GPM_Edge.h:59
static SP::GPM_Edge New(SP::GPM_Vertex source, SP::GPM_Vertex target)
create an edge
Definition: GPM_Edge.h:50
SP::GPM_Vertex getSource() const
get the source vertex
Definition: GPM_Edge.h:110
SP::GPM_Vertex getTarget() const
get the target vertex
Definition: GPM_Edge.h:117
#define tBoolean
Definition: types.h:35
virtual ~GPM_Edge(void)
destroy an object.
Definition: GPM_Edge.cpp:16
virtual tString toString() const
turn the class into string
Definition: GPM_Edge.cpp:33
This class describes a edge.
Definition: GPM_Edge.h:15
virtual SP::GPM_Edge NewCopyInstance() const
create a new instance
Definition: GPM_Edge.h:82
void setTarget(SP::GPM_Vertex v)
set the target vertex
Definition: GPM_Edge.h:102
tBoolean loadFromStream(tString &f)
Definition: GPM_Edge.cpp:26
static SP::GPM_Edge New()
create an edge
Definition: GPM_Edge.h:67
#define tString
Definition: types.h:36
virtual SP::GPM_GraphElement NewInstance() const
create a new instance
Definition: GPM_Edge.h:76
void setSource(SP::GPM_Vertex v)
set the source vertex
Definition: GPM_Edge.h:96
virtual void saveToStream(ofstream &f) const
Definition: GPM_Edge.cpp:20
This class describes an element of a graph.
Definition: GPM_GraphElement.h:17
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106