eventStorePandaNode.I 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Filename: eventStorePandaNode.I
  2. // Created by: drose (13Sep06)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. ////////////////////////////////////////////////////////////////////
  15. // Function: EventStorePandaNode::Constructor
  16. // Access: Published
  17. // Description:
  18. ////////////////////////////////////////////////////////////////////
  19. INLINE EventStorePandaNode::
  20. EventStorePandaNode(const PandaNode *value) :
  21. _value((PandaNode *)value)
  22. {
  23. }
  24. ////////////////////////////////////////////////////////////////////
  25. // Function: EventStorePandaNode::set_value
  26. // Access: Published
  27. // Description: Changes the value stored in the parameter. It is
  28. // dangerous to do this for a parameter already added to
  29. // an event, since the parameters may be shared.
  30. ////////////////////////////////////////////////////////////////////
  31. INLINE void EventStorePandaNode::
  32. set_value(const PandaNode *value) {
  33. _value = (PandaNode *)value;
  34. }
  35. ////////////////////////////////////////////////////////////////////
  36. // Function: EventStorePandaNode::get_value
  37. // Access: Published
  38. // Description: Retrieves the value stored in the parameter.
  39. ////////////////////////////////////////////////////////////////////
  40. INLINE PandaNode *EventStorePandaNode::
  41. get_value() const {
  42. return _value;
  43. }