19 if (type == NULL) cerr <<
"HepRepInstance cannot be created without a HepRepType." << endl;
26 if (type == NULL) cerr <<
"HepRepInstance cannot be created without a HepRepType." << endl;
33 for (vector<HepRepInstance*>::iterator i1 = instances.begin(); i1 != instances.end(); i1++) {
36 for (vector<HepRepPoint*>::iterator i2 = points.begin(); i2 != points.end(); i2++) {
42 cerr <<
"DefaultHepRepInstance::overlay(HepRepInstance * instance) not implemented." << endl;
46 cerr <<
"DefaultHepRepInstance::copy(HepRepTypeTree*, HepRepInstance*, HepRepSelectFilter*) not implemented." << endl;
51 cerr <<
"DefaultHepRepInstance::copy(HepRepTypeTree*, HepRepInstanceTree*, HepRepSelectFilter*) not implemented." << endl;
60 points.push_back(point);
72 instances.push_back(instance);
76 cerr <<
"DefaultHepRepInstance::removeInstance(HepRepInstance*) not implemented." << endl;
85 return (value != NULL) ? value : type->
getAttValue(name);
virtual HepRepAttValue * getAttValue(std::string name)=0
virtual void addInstance(HepRepInstance *instance)=0
virtual void addInstance(HepRepInstance *instance)=0
HEPREP::HepRepAttValue * getAttValueFromNode(std::string lowerCaseName)
void removeInstance(HEPREP::HepRepInstance *instance)
DefaultHepRepInstance(HEPREP::HepRepInstance *parent, HEPREP::HepRepType *type)
std::vector< HEPREP::HepRepPoint * > getPoints()
HEPREP::HepRepInstance * getSuperInstance()
std::vector< HEPREP::HepRepInstance * > getInstances()
HEPREP::HepRepInstance * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepInstance *parent, HEPREP::HepRepSelectFilter *filter)
HEPREP::HepRepType * getType()
void addInstance(HEPREP::HepRepInstance *instance)
void addPoint(HEPREP::HepRepPoint *point)
HEPREP::HepRepAttValue * getAttValue(std::string name)
void overlay(HEPREP::HepRepInstance *instance)