sr1to1Relationship Class Reference

Inheritance diagram for sr1to1Relationship:

srRelationshipBase srBase


Public Methods

 sr1to1Relationship (const sd::sdRelationshipBase *def, const srObjectRef::SPtr from, const srObjectRef::SPtr to)
virtual ~sr1to1Relationship ()
virtual void accept (srVisitorMgr &visitor)
srObjectRef::CSPtr getTo () const
void setTo (const srObjectRef::SPtr object)

Public Types

typedef sr1to1Relationship * SPtr

Detailed Description

The sr1to1Relationship class captures a specific 1-to-1 relationship. The relationship uses srObjectRefs to store the references to the specific objects in the 1-to-1 relationship.


Member Typedef Documentation

typedef sr1to1Relationship* sr1to1Relationship::SPtr
 

Reimplemented from srRelationshipBase.


Constructor & Destructor Documentation

sr1to1Relationship::sr1to1Relationship const sd::sdRelationshipBase *    def,
const srObjectRef::SPtr    from,
const srObjectRef::SPtr    to
 

This function is the sr1to1Relationship constructor.

Parameters:
def A pointer to the schema definition for the relationship.
from A smart pointer to the from object in the relationship.
to A smart pointer to the to object in the relationship.

sr1to1Relationship::~sr1to1Relationship   [virtual]
 

This is the sr1to1Relationship destructor.


Member Function Documentation

void sr1to1Relationship::accept srVisitorMgr &    visitor [virtual]
 

This function is responsible for calling the correct visitor.

Parameters:
visitor The visitor to call.

Implements srBase.

const srObjectRef::SPtr sr1to1Relationship::getTo   const
 

This function is the accessor to get the to object in the relationship.

void sr1to1Relationship::setTo const srObjectRef::SPtr    object
 

This function sets the to value of the relationship.

Parameters:
object A smart pointer to the object to be the to object in the relationship.


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

Return to top of page