pt_Node.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Filename: pt_Node.h
  2. // Created by: drose (16May00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef PT_NODE_H
  19. #define PT_NODE_H
  20. #include <pandabase.h>
  21. // We can't include node.h, because we need to include this in
  22. // nodeRelation.h.
  23. #include <pointerTo.h>
  24. class Node;
  25. ////////////////////////////////////////////////////////////////////
  26. // Class : PT_Node
  27. // Description : A PT(Node). This is defined here solely we can
  28. // explicitly export the template class. It's not
  29. // strictly necessary, but it doesn't hurt.
  30. ////////////////////////////////////////////////////////////////////
  31. EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, PointerToBase<Node>)
  32. EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, PointerTo<Node>)
  33. EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, ConstPointerTo<Node>)
  34. typedef PointerTo<Node> PT_Node;
  35. typedef ConstPointerTo<Node> CPT_Node;
  36. // Tell GCC that we'll take care of the instantiation explicitly here.
  37. #ifdef __GNUC__
  38. #pragma interface
  39. #endif
  40. #endif