src/Generic/relations/HighYield/HYInstanceSet.cpp
/* This is a sanity check function to ensure that there is a non-null _tagSet data member.  In 
   theory one should have been set right after creation but as it is there is no way to enforce 
   this.  Might be worth making the constructor take it as an argument, only that makes it hard
   to have an actual HYInstanceSet member (as opposed to an HYInstanceSet*). */
This is a sanity check function to ensure that there is a non-null _tagSet data member.  In
theory one should have been set right after creation but as it is there is no way to enforce
this.  Might be worth making the constructor take it as an argument, only that makes it hard
to have an actual HYInstanceSet member (as opposed to an HYInstanceSet*).
This is a sanity check function to ensure that there is a non - null _tagSet data member . In theory one should have been set right after creation but as it is there is no way to enforce this . Might be worth making the constructor take it as an argument only that makes it hard to have an actual HYInstanceSet member ( as opposed to an HYInstanceSet * ) .
void HYInstanceSet::ensureTagSet() const {
	if (_tagSet == 0) {
		printf("HYInstanceSet::ensureTagset():  A DTTagSet object is required but none has been set.\n");
		throw UnexpectedInputException(
			"HYInstanceSet::ensureTagset",
			"No DTTagSet instance set on this HYInstanceSet.");
	}
}
void HYInstanceSet :: ensureTagSet ( ) const { if ( _tagSet == 0 ) { printf ( " \n " ) ; throw UnexpectedInputException ( " " , " " ) ; } }
This is a sanity check function to ensure that there is a non-null _tagSet data member.
This is a sanity check function to ensure that there is a non - null _tagSet data member .