Panda3D
|
This is a convenience class to specialize ConfigVariable as a 64-bit integer type. More...
#include "configVariableInt64.h"
Public Member Functions | |
ConfigVariableInt64 (const string &name) | |
ConfigVariableInt64 (const string &name, PN_int64 default_value, const string &description=string(), PN_int64 flags=0) | |
ConfigVariableInt64 (const string &name, const string &default_value, const string &description=string(), PN_int64 flags=0) | |
PN_int64 | get_default_value () const |
Returns the variable's default value. | |
PN_int64 | get_value () const |
Returns the variable's value. | |
PN_int64 | get_word (int n) const |
Returns the variable's nth value. | |
operator PN_int64 () const | |
Returns the variable's value. | |
void | operator= (PN_int64 value) |
Reassigns the variable's local value. | |
PN_int64 | operator[] (int n) const |
Returns the value of the variable's nth word. | |
void | set_value (PN_int64 value) |
Reassigns the variable's local value. | |
void | set_word (int n, PN_int64 value) |
Reassigns the variable's nth value. | |
PN_int64 | size () const |
Returns the number of unique words in the variable. |
This is a convenience class to specialize ConfigVariable as a 64-bit integer type.
Definition at line 27 of file configVariableInt64.h.
PN_int64 ConfigVariableInt64::get_default_value | ( | ) | const [inline] |
Returns the variable's default value.
Reimplemented from ConfigVariable.
Definition at line 139 of file configVariableInt64.I.
References ConfigDeclaration::get_int64_word().
PN_int64 ConfigVariableInt64::get_value | ( | ) | const [inline] |
Returns the variable's value.
Definition at line 124 of file configVariableInt64.I.
References ConfigVariable::get_int64_word(), ConfigFlags::is_cache_valid(), and ConfigFlags::mark_cache_valid().
Referenced by operator PN_int64().
PN_int64 ConfigVariableInt64::get_word | ( | int | n | ) | const [inline] |
Returns the variable's nth value.
Definition at line 153 of file configVariableInt64.I.
References ConfigVariable::get_int64_word().
Referenced by operator[]().
ConfigVariableInt64::operator PN_int64 | ( | ) | const [inline] |
Returns the variable's value.
Definition at line 83 of file configVariableInt64.I.
References get_value().
void ConfigVariableInt64::operator= | ( | PN_int64 | value | ) | [inline] |
Reassigns the variable's local value.
Definition at line 73 of file configVariableInt64.I.
References set_value().
PN_int64 ConfigVariableInt64::operator[] | ( | int | n | ) | const [inline] |
Returns the value of the variable's nth word.
Definition at line 103 of file configVariableInt64.I.
References get_word().
void ConfigVariableInt64::set_value | ( | PN_int64 | value | ) | [inline] |
Reassigns the variable's local value.
Definition at line 113 of file configVariableInt64.I.
References ConfigVariable::set_int64_word(), and ConfigVariable::set_string_value().
Referenced by operator=().
void ConfigVariableInt64::set_word | ( | int | n, |
PN_int64 | value | ||
) | [inline] |
Reassigns the variable's nth value.
This makes a local copy of the variable's overall value.
Definition at line 164 of file configVariableInt64.I.
References ConfigVariable::set_int64_word().
PN_int64 ConfigVariableInt64::size | ( | ) | const [inline] |
Returns the number of unique words in the variable.
Definition at line 93 of file configVariableInt64.I.
References ConfigVariable::get_num_words().