PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
VCGEdge Class Reference

#include <VCG.h>

Public Member Functions

 VCGEdge ()
 Standard Constructor for the 'Edge' class.
 
 ~VCGEdge ()
 Standard Destructor for the 'Edge' class.
 
 VCGEdge (const char *from, const char *to)
 Alternate Constructor for the 'Edge' class.
 
void SetThickness (const int thickness)
 
void SetFrom (const char *from)
 
void SetTo (const char *to)
 
void SetAnchor (const int i)
 
int GetThickness () const
 
char * GetFrom () const
 
char * GetTo () const
 
int GetAnchor () const
 

Friends

std::ostream & operator<< (std::ostream &out, VCGEdge &v)
 

Detailed Description

Definition at line 122 of file VCG.h.

Constructor & Destructor Documentation

◆ VCGEdge() [1/2]

VCGEdge::VCGEdge ( )

Standard Constructor for the 'Edge' class.

Definition at line 340 of file VCG.cpp.

340 :
341 mThickness(2),
342 mFrom(0),
343 mTo(0),
344 mAnchor(1)
345{
346
347}

◆ ~VCGEdge()

VCGEdge::~VCGEdge ( )

Standard Destructor for the 'Edge' class.

Definition at line 363 of file VCG.cpp.

364{
365 free(mFrom);
366 free(mTo);
367
368}

◆ VCGEdge() [2/2]

VCGEdge::VCGEdge ( const char *  from,
const char *  to 
)

Alternate Constructor for the 'Edge' class.

Definition at line 352 of file VCG.cpp.

352 :
353 mThickness(2),
354 mFrom(strdup(from)),
355 mTo(strdup(to)),
356 mAnchor(1)
357{
358}

Member Function Documentation

◆ GetAnchor()

int VCGEdge::GetAnchor ( ) const
inline

Definition at line 138 of file VCG.h.

138{return mAnchor;};

◆ GetFrom()

char * VCGEdge::GetFrom ( ) const
inline

Definition at line 136 of file VCG.h.

136{return mFrom;};

Referenced by operator<<().

◆ GetThickness()

int VCGEdge::GetThickness ( ) const
inline

Definition at line 135 of file VCG.h.

135{return mThickness;};

Referenced by operator<<().

◆ GetTo()

char * VCGEdge::GetTo ( ) const
inline

Definition at line 137 of file VCG.h.

137{return mTo;};

Referenced by operator<<().

◆ SetAnchor()

void VCGEdge::SetAnchor ( const int  i)
inline

Definition at line 132 of file VCG.h.

132{mAnchor = i;};

Referenced by VCG::Evaluate().

◆ SetFrom()

void VCGEdge::SetFrom ( const char *  from)
inline

Definition at line 130 of file VCG.h.

130{if(mFrom)free(mFrom);mFrom = strdup(from);};

◆ SetThickness()

void VCGEdge::SetThickness ( const int  thickness)
inline

Definition at line 129 of file VCG.h.

129{mThickness=thickness;};

◆ SetTo()

void VCGEdge::SetTo ( const char *  to)
inline

Definition at line 131 of file VCG.h.

131{if(mTo)free(mTo); mTo = strdup(to);};

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
VCGEdge v 
)
friend

The documentation for this class was generated from the following files: