00001 // Filename: dataNode.I 00002 // Created by: drose (11Mar02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: DataNode::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE DataNode:: 00022 DataNode(const string &name) : 00023 PandaNode(name) 00024 { 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: DataNode::Copy Constructor 00029 // Access: Protected 00030 // Description: 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE DataNode:: 00033 DataNode(const DataNode ©) : 00034 PandaNode(copy) 00035 { 00036 // Copying a DataNode doesn't copy its inputs or outputs. 00037 } 00038 00039 //////////////////////////////////////////////////////////////////// 00040 // Function: DataNode::get_num_inputs 00041 // Access: Public 00042 // Description: Returns the number of different inputs that have been 00043 // defined for this node using define_input(). This 00044 // indicates the size of the DataNodeTransmit object 00045 // that should be passed to do_transmit_data(). 00046 //////////////////////////////////////////////////////////////////// 00047 INLINE int DataNode:: 00048 get_num_inputs() const { 00049 return _input_wires.size(); 00050 } 00051 00052 //////////////////////////////////////////////////////////////////// 00053 // Function: DataNode::get_num_outputs 00054 // Access: Public 00055 // Description: Returns the number of different outputs that have been 00056 // defined for this node using define_output(). This 00057 // indicates the size of the DataNodeTransmit object 00058 // that should be passed to do_transmit_data(). 00059 //////////////////////////////////////////////////////////////////// 00060 INLINE int DataNode:: 00061 get_num_outputs() const { 00062 return _output_wires.size(); 00063 }