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

#include "PhBDiffuseRefractor.H"
#include "xrmlP.H"

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

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

PhBDiffuseRefractor::PhBDiffuseRefractor()
{
  interfaceMember** the_interface = 0;
  SFNode::construct(PhBDiffuseRefractorTypeId, 0, the_interface);

  
  PhBScatterer::util_init();
  PhBDiffuseRefractor::util_init();
}

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

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

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

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

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

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

}  // namespace xrml
