src/MaxEntSimulatedActiveLearning/InstanceSet.cpp
void InstanceSet::ensureTagSet() const {
	if (_tagSet == 0) {
		printf("InstanceSet::ensureTagset():  A DTTagSet object is required but none has been set.\n");
		throw UnexpectedInputException(
			"InstanceSet::ensureTagset",
			"No DTTagSet instance set on this InstanceSet.");
	}
}
/* 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 InstanceSet member (as opposed to an InstanceSet*). */
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 InstanceSet member (as opposed to an InstanceSet*).
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 InstanceSet member ( as opposed to an InstanceSet * ) .
void InstanceSet::ensureTagSet() const {
	if (_tagSet == 0) {
		printf("InstanceSet::ensureTagset():  A DTTagSet object is required but none has been set.\n");
		throw UnexpectedInputException(
			"InstanceSet::ensureTagset",
			"No DTTagSet instance set on this InstanceSet.");
	}
}
void InstanceSet :: 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 .