14 #ifndef CONFIGVARIABLEINT_H 15 #define CONFIGVARIABLEINT_H 28 const std::string &description = std::string(),
30 INLINE
ConfigVariableInt(
const std::string &name,
const std::string &default_value,
31 const std::string &description = std::string(),
34 INLINE
void operator = (
int value);
35 INLINE
operator int ()
const;
37 INLINE
size_t size()
const;
38 INLINE
int operator [] (
size_t n)
const;
40 INLINE
void set_value(
int value);
41 INLINE
int get_value()
const;
42 INLINE
int get_default_value()
const;
43 MAKE_PROPERTY(value, get_value, set_value);
44 MAKE_PROPERTY(default_value, get_default_value);
46 INLINE
int get_word(
size_t n)
const;
47 INLINE
void set_word(
size_t n,
int value);
50 void set_default_value(
int default_value);
53 AtomicAdjust::Integer _local_modified;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a generic, untyped ConfigVariable.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as an integer type.