Simpatico  v1.10
List of all members | Public Member Functions
McMd::Link Class Reference

Detailed Description

A Link represents a crosslink between two Atoms.

All non-const mutator methods of Link are private, and are called only by the friend class LinkMaster. Outside of the implementation of LinkMaster, a Link is thus a read-only object.

Definition at line 30 of file Link.h.

#include <Link.h>

Public Member Functions

 Link ()
 Constructor. More...
 
const Atomatom0 () const
 Get Atom0 connected to a Link. More...
 
Atomatom0 ()
 Get Atom0 connected to a Link. More...
 
const Atomatom1 () const
 Get Atom1 connected to a Link. More...
 
Atomatom1 ()
 Get Atom1 connected to a Link. More...
 
int typeId () const
 Get the typeId for this Link. More...
 
int tag () const
 Get a permanent integer identifier for this object. More...
 
bool isActive () const
 Is this Link active? More...
 
void setIsActive (bool isActive)
 Activate or deactivate the Link. More...
 

Constructor & Destructor Documentation

McMd::Link::Link ( )
inline

Constructor.

Definition at line 138 of file Link.h.

References atom0(), and atom1().

Member Function Documentation

const Atom & McMd::Link::atom0 ( ) const
inline
Atom & McMd::Link::atom0 ( )
inline

Get Atom0 connected to a Link.

Definition at line 165 of file Link.h.

const Atom & McMd::Link::atom1 ( ) const
inline
Atom & McMd::Link::atom1 ( )
inline

Get Atom1 connected to a Link.

Definition at line 177 of file Link.h.

References typeId().

int McMd::Link::typeId ( ) const
inline
int McMd::Link::tag ( ) const
inline

Get a permanent integer identifier for this object.

Definition at line 213 of file Link.h.

Referenced by McMd::LinkLTPos::sample(), McMd::LinkMSD::sample(), and setIsActive().

bool McMd::Link::isActive ( ) const
inline
void McMd::Link::setIsActive ( bool  isActive)
inline

Activate or deactivate the Link.

Parameters
isActivetrue (active) or false (inactive)

Definition at line 201 of file Link.h.

References isActive(), and tag().

Referenced by McMd::LinkMaster::addLink().


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