Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/dgraph/dataNode.I

Go to the documentation of this file.
00001 // Filename: dataNode.I
00002 // Created by:  drose (11Mar02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: DataNode::Constructor
00022 //       Access: Public
00023 //  Description: 
00024 ////////////////////////////////////////////////////////////////////
00025 INLINE DataNode::
00026 DataNode(const string &name) :
00027   PandaNode(name)
00028 {
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: DataNode::Copy Constructor
00033 //       Access: Protected
00034 //  Description:
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE DataNode::
00037 DataNode(const DataNode &copy) :
00038   PandaNode(copy)
00039 {
00040   // Copying a DataNode doesn't copy its inputs or outputs.
00041 }
00042 
00043 ////////////////////////////////////////////////////////////////////
00044 //     Function: DataNode::get_num_inputs
00045 //       Access: Public
00046 //  Description: Returns the number of different inputs that have been
00047 //               defined for this node using define_input().  This
00048 //               indicates the size of the DataNodeTransmit object
00049 //               that should be passed to do_transmit_data().
00050 ////////////////////////////////////////////////////////////////////
00051 INLINE int DataNode::
00052 get_num_inputs() const {
00053   return _input_wires.size();
00054 }
00055 
00056 ////////////////////////////////////////////////////////////////////
00057 //     Function: DataNode::get_num_outputs
00058 //       Access: Public
00059 //  Description: Returns the number of different outputs that have been
00060 //               defined for this node using define_output().  This
00061 //               indicates the size of the DataNodeTransmit object
00062 //               that should be passed to do_transmit_data().
00063 ////////////////////////////////////////////////////////////////////
00064 INLINE int DataNode::
00065 get_num_outputs() const {
00066   return _output_wires.size();
00067 }

Generated on Fri May 2 00:36:20 2003 for Panda by doxygen1.3