Panda3D
configVariableManager.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file configVariableManager.I
10  * @author drose
11  * @date 2004-10-15
12  */
13 
14 /**
15  * Returns the current number of active ConfigVariableCores in the world.
16  */
17 INLINE size_t ConfigVariableManager::
18 get_num_variables() const {
19  return _variables.size();
20 }
21 
22 /**
23  * Returns the nth active ConfigVariableCore in the world.
24  */
26 get_variable(size_t n) const {
27  nassertr(n < _variables.size(), nullptr);
28  return _variables[n];
29 }
30 
31 INLINE std::ostream &
32 operator << (std::ostream &out, const ConfigVariableManager &variableMgr) {
33  variableMgr.output(out);
34  return out;
35 }
ConfigVariableCore
The internal definition of a ConfigVariable.
Definition: configVariableCore.h:34
ConfigVariableManager::get_variable
get_variable
Returns the nth active ConfigVariableCore in the world.
Definition: configVariableManager.h:47
ConfigVariableManager
A global object that maintains the set of ConfigVariables (actually, ConfigVariableCores) everywhere ...
Definition: configVariableManager.h:31
ConfigVariableManager::get_num_variables
get_num_variables
Returns the current number of active ConfigVariableCores in the world.
Definition: configVariableManager.h:47