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

panda/src/express/typedObject.cxx

Go to the documentation of this file.
00001 // Filename: typedObject.cxx
00002 // Created by:  drose (11May01)
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 #include "typedObject.h"
00020 #include "config_express.h"
00021 
00022 
00023 TypeHandle TypedObject::_type_handle;
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: TypedObject::Destructor
00027 //       Access: Public, Virtual
00028 //  Description:
00029 ////////////////////////////////////////////////////////////////////
00030 TypedObject::
00031 ~TypedObject() {
00032 }
00033 
00034 
00035 ////////////////////////////////////////////////////////////////////
00036 //     Function: TypedObject::get_type
00037 //       Access: Public, Virtual
00038 //  Description:
00039 ////////////////////////////////////////////////////////////////////
00040 TypeHandle TypedObject::
00041 get_type() const {
00042   // Normally, this function should never be called, because it is a
00043   // pure virtual function.  If it is called, you probably called
00044   // get_type() on a recently-destructed object.
00045   express_cat.warning()
00046     << "TypedObject::get_type() called!\n";
00047   return _type_handle;
00048 }
00049 
00050 ////////////////////////////////////////////////////////////////////
00051 //     Function: TypedObject::init_type
00052 //       Access: Public, Static
00053 //  Description: This function is declared non-inline to work around a
00054 //               compiler bug in g++ 2.96.  Making it inline seems to
00055 //               cause problems in the optimizer.
00056 ////////////////////////////////////////////////////////////////////
00057 void TypedObject::
00058 init_type() {
00059   register_type(_type_handle, "TypedObject");
00060 }

Generated on Fri May 2 00:38:42 2003 for Panda by doxygen1.3