// PhBPerfectSpecularReflectorP.C: PhBPerfectSpecularReflector nodes (private source).
// Automatically generated with nodegen 0.5a - do not edit.

#include "PhBPerfectSpecularReflector.H"
#include "xrmlP.H"

namespace xrml {
int PhBPerfectSpecularReflector::major_version(void) { return 0; }
int PhBPerfectSpecularReflector::minor_version(void) { return 5; }
bool PhBPerfectSpecularReflector::is_leaf_class(void) { return true; }

bool IsPhBPerfectSpecularReflector(SFNode* node)
{
  return (dynamic_cast<PhBPerfectSpecularReflector*>(node) != 0);
}

PhBPerfectSpecularReflector::PhBPerfectSpecularReflector()
{
  interfaceMember** the_interface = 0;
  SFNode::construct(PhBPerfectSpecularReflectorTypeId, 0, the_interface);

  
  PhBScatterer::util_init();
  PhBPerfectSpecularReflector::util_init();
}

void PhBPerfectSpecularReflector::destruct(void)
{
  PhBPerfectSpecularReflector::util_destruct();
  PhBScatterer::util_destruct();
  SFNode::destruct();
}

PhBPerfectSpecularReflector::~PhBPerfectSpecularReflector()
{
  destruct();
}

void PhBPerfectSpecularReflector::clone_here(const PhBPerfectSpecularReflector& src)
{
  SFNode::clone(src);
  
  
  
  PhBScatterer::util_clone(src);
  PhBPerfectSpecularReflector::util_clone(src);
}

PhBPerfectSpecularReflector::PhBPerfectSpecularReflector(const PhBPerfectSpecularReflector& src)
{
  clone_here(src);
}

PhBPerfectSpecularReflector& PhBPerfectSpecularReflector::operator=(const PhBPerfectSpecularReflector& src)
{
  if (this != &src) {
    destruct();
    clone_here(src);
  }
  return *this;
}

SFNode* PhBPerfectSpecularReflector::instantiate(Proto *enclosing_proto)
{
  if (nameIndex>=0)
    // named node: return pointer to pre-made instance
    return enclosing_proto ? enclosing_proto->namedNodes[nameIndex] : this;
  
  PhBPerfectSpecularReflector* instance = new PhBPerfectSpecularReflector(*this);
  instance->instantiate_interface(enclosing_proto);
  return instance;
}

}  // namespace xrml
