70 return (_flags & F_closed) != 0;
85 return (_flags & F_trust_level_mask);
95 return (_flags & F_dynamic) != 0;
104 return _default_value;
121 return _local_value !=
nullptr;
130 check_sort_declarations();
131 return _declarations.size();
143 check_sort_declarations();
144 nassertr(n < _declarations.size(),
nullptr);
145 return _declarations[n];
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];
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];
199INLINE
void ConfigVariableCore::
200check_sort_declarations()
const {
206 if (!_declarations_sorted) {
213 variable.output(out);
A single declaration of a config variable, typically defined as one line in a .prc file,...
void load_implicit_pages()
Searches the PRC_DIR and/or PRC_PATH directories for `*.prc` files and loads them in as pages.
The internal definition of a ConfigVariable.
get_trusted_reference
Returns the nth declaration in a trusted prc file that references this variable.
bool has_local_value() const
Returns true if this variable's value has been shadowed by a local assignment (as created via make_lo...
get_num_trusted_references
Returns the number of trusted prc files that reference this variable.
get_unique_reference
Returns the nth trusted, unique value for this variable.
get_value_type
Returns the stated type of this variable.
get_default_value
Returns the default variable specified for this variable.
get_reference
Returns the nth declaration in a prc file that references this variable.
is_dynamic
Returns true if the variable was indicated as "dynamic" by its constructor, indicating that its name ...
void set_used()
Marks that the variable has been "declared" by a ConfigVariable.
int get_flags() const
Returns the flags value as set by set_flags().
is_closed
Returns true if the variable is not trusted by any prc file (and hence cannot be modified from its co...
get_num_references
Returns the number of prc files that reference this variable.
get_description
Returns the brief description of this variable, if it has been defined.
get_name
Returns the name of the variable.
get_trust_level
Returns the minimum trust_level a prc file must demonstrate in order to redefine the value for this v...
get_num_unique_references
Returns the number of trusted, unique (by string value) values there exist for this variable.
is_used
Returns true if the variable has been referenced by a ConfigVariable somewhere in code,...