17 INLINE
const std::string &ConfigVariableCore::
26 INLINE
bool ConfigVariableCore::
35 INLINE ConfigVariableCore::ValueType ConfigVariableCore::
36 get_value_type()
const {
43 INLINE
const std::string &ConfigVariableCore::
44 get_description()
const {
68 INLINE
bool ConfigVariableCore::
70 return (_flags & F_closed) != 0;
83 INLINE
int ConfigVariableCore::
84 get_trust_level()
const {
85 return (_flags & F_trust_level_mask);
93 INLINE
bool ConfigVariableCore::
95 return (_flags & F_dynamic) != 0;
103 get_default_value()
const {
104 return _default_value;
121 return _local_value !=
nullptr;
128 INLINE
size_t ConfigVariableCore::
129 get_num_references()
const {
130 check_sort_declarations();
131 return _declarations.size();
143 check_sort_declarations();
144 nassertr(n < _declarations.size(),
nullptr);
145 return _declarations[n];
152 INLINE
size_t ConfigVariableCore::
153 get_num_trusted_references()
const {
154 check_sort_declarations();
155 return _trusted_declarations.size();
169 check_sort_declarations();
170 nassertr(n < _trusted_declarations.size(),
nullptr);
171 return _trusted_declarations[n];
178 INLINE
size_t ConfigVariableCore::
179 get_num_unique_references()
const {
180 check_sort_declarations();
181 return _unique_declarations.size();
190 check_sort_declarations();
191 nassertr(n < _unique_declarations.size(),
nullptr);
192 return _unique_declarations[n];
199 INLINE
void ConfigVariableCore::
200 check_sort_declarations()
const {
206 if (!_declarations_sorted) {
211 INLINE std::ostream &
213 variable.output(out);
The internal definition of a ConfigVariable.
int get_flags() const
Returns the flags value as set by set_flags().
get_reference
Returns the nth declaration in a prc file that references this variable.
void load_implicit_pages()
Searches the PRC_DIR and/or PRC_PATH directories for *.prc files and loads them in as pages.
bool has_local_value() const
Returns true if this variable's value has been shadowed by a local assignment (as created via make_lo...
void set_used()
Marks that the variable has been "declared" by a ConfigVariable.
get_unique_reference
Returns the nth trusted, unique value for this variable.
A single declaration of a config variable, typically defined as one line in a .prc file,...
get_trusted_reference
Returns the nth declaration in a trusted prc file that references this variable.