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

#include "PhBIsotropicPhaseFunction.H"
#include "xrmlP.H"

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

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

PhBIsotropicPhaseFunction::PhBIsotropicPhaseFunction()
{
  interfaceMember** the_interface = 0;
  SFNode::construct(PhBIsotropicPhaseFunctionTypeId, 0, the_interface);

  
  PhBPhaseFunction::util_init();
  PhBIsotropicPhaseFunction::util_init();
}

void PhBIsotropicPhaseFunction::destruct(void)
{
  PhBIsotropicPhaseFunction::util_destruct();
  PhBPhaseFunction::util_destruct();
  SFNode::destruct();
}

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

void PhBIsotropicPhaseFunction::clone_here(const PhBIsotropicPhaseFunction& src)
{
  SFNode::clone(src);
  
  
  
  PhBPhaseFunction::util_clone(src);
  PhBIsotropicPhaseFunction::util_clone(src);
}

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

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

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

}  // namespace xrml
