18 if (type == NULL) cerr <<
"HepRepInstance cannot be created without a HepRepType." << endl;
25 if (type == NULL) cerr <<
"HepRepInstance cannot be created without a HepRepType." << endl;
32 for (vector<HepRepInstance*>::iterator i1 = instances.begin(); i1 != instances.end(); i1++) {
35 for (vector<HepRepPoint*>::iterator i2 = points.begin(); i2 != points.end(); i2++) {
41 cerr <<
"DefaultHepRepInstance::overlay(HepRepInstance * instance) not implemented." << endl;
45 cerr <<
"DefaultHepRepInstance::copy(HepRepTypeTree*, HepRepInstance*, HepRepSelectFilter*) not implemented." << endl;
50 cerr <<
"DefaultHepRepInstance::copy(HepRepTypeTree*, HepRepInstanceTree*, HepRepSelectFilter*) not implemented." << endl;
59 points.push_back(point);
71 instances.push_back(instance);
75 cerr <<
"DefaultHepRepInstance::removeInstance(HepRepInstance*) not implemented." << endl;
84 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)