Panda3D
 All Classes Functions Variables Enumerations
configVariableManager.I
00001 // Filename: configVariableManager.I
00002 // Created by:  drose (15Oct04)
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: ConfigVariableManager::get_num_variables
00018 //       Access: Published
00019 //  Description: Returns the current number of active ConfigVariableCores in
00020 //               the world.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE int ConfigVariableManager::
00023 get_num_variables() const {
00024   return _variables.size();
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: ConfigVariableManager::get_variable
00029 //       Access: Published
00030 //  Description: Returns the nth active ConfigVariableCore in the world.
00031 ////////////////////////////////////////////////////////////////////
00032 INLINE ConfigVariableCore *ConfigVariableManager::
00033 get_variable(int n) const {
00034   nassertr(n >= 0 && n < (int)_variables.size(), (ConfigVariableCore *)NULL);
00035   return _variables[n];
00036 }
00037 
00038 INLINE ostream &
00039 operator << (ostream &out, const ConfigVariableManager &variableMgr) {
00040   variableMgr.output(out);
00041   return out;
00042 }
 All Classes Functions Variables Enumerations