sr1toNRelationship Class Reference

Inheritance diagram for sr1toNRelationship:

srRelationshipBase srBase


Public Methods

 sr1toNRelationship (const sd::sdRelationshipBase *def, const srObjectRef::SPtr from, const ObjectRefVec &to)
virtual ~sr1toNRelationship ()
virtual void accept (srVisitorMgr &visitor)
ConstIterator beginToObject () const
ConstIterator endToObject () const
void setTo (const ObjectRefVec &objects)

Public Types

typedef sr1toNRelationship * SPtr
typedef std::vector< srObjectRef::SPtrObjectRefVec
typedef ObjectRefVec::const_iterator ConstIterator

Detailed Description

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


Member Typedef Documentation

typedef ObjectRefVec::const_iterator sr1toNRelationship::ConstIterator
 

typedef std::vector<srObjectRef::SPtr> sr1toNRelationship::ObjectRefVec
 

typedef sr1toNRelationship* sr1toNRelationship::SPtr
 

Reimplemented from srRelationshipBase.


Constructor & Destructor Documentation

sr1toNRelationship::sr1toNRelationship const sd::sdRelationshipBase *    def,
const srObjectRef::SPtr    from,
const ObjectRefVec &    to
 

This is the sr1toNRelationship 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 collection of srObjectRefs for the to object in the relationship.

sr1toNRelationship::~sr1toNRelationship   [virtual]
 

This is the sr1toNRelationship destructor.


Member Function Documentation

void sr1toNRelationship::accept srVisitorMgr &    visitor [virtual]
 

This function is responsible for calling the correct visitor.

Parameters:
visitor The visitor to call.

Implements srBase.

ConstIterator sr1toNRelationship::beginToObject   const
 

This function returns a constant iterator to the first to object in the relationship.

ConstIterator sr1toNRelationship::endToObject   const
 

This function returns a constant iterator to the last to object in the relationship.

void sr1toNRelationship::setTo const ObjectRefVec &    objects
 

This function sets the to values of the relationship.

Parameters:
objects The objects to set for the to values.


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

Return to top of page