36 INLINE
bool BamCacheRecord::
38 return (_source_pathname == other._source_pathname &&
39 _cache_filename == other._cache_filename &&
40 _recorded_time == other._recorded_time &&
41 _record_size == other._record_size);
53 INLINE
const Filename &BamCacheRecord::
54 get_source_pathname()
const {
55 return _source_pathname;
67 INLINE
const Filename &BamCacheRecord::
68 get_cache_filename()
const {
69 return _cache_filename;
80 INLINE time_t BamCacheRecord::
81 get_source_timestamp()
const {
82 return _source_timestamp;
91 INLINE time_t BamCacheRecord::
92 get_recorded_time()
const {
93 return _recorded_time;
102 INLINE
int BamCacheRecord::
103 get_num_dependent_files()
const {
104 return _files.size();
113 INLINE
const Filename &BamCacheRecord::
114 get_dependent_pathname(
int n)
const {
115 nassertr(n >= 0 && n < (
int)_files.size(), _files[0]._pathname);
116 return _files[n]._pathname;
126 INLINE
bool BamCacheRecord::
138 INLINE
void BamCacheRecord::
140 if (_ref_ptr != NULL) {
141 unref_delete(_ref_ptr);
203 if (_ref_ptr != NULL) {
217 nassertv(dummy == 0);
226 INLINE
bool BamCacheRecord::SortByAccessTime::
228 return (a->_record_access_time < b->_record_access_time);
void set_data(TypedWritable *ptr, ReferenceCount *ref_ptr)
Stores a new data object on the record.
TypedWritable * get_data() const
Returns a pointer to the data stored in the record, or NULL if there is no data.
Base class for objects that can be written to and read from Bam files.
The name of a file, such as a texture file or an Egg file.
An instance of this class is written to the front of a Bam or Txo file to make the file a cached inst...
void ref() const
Explicitly increments the reference count.
A base class for all things that want to be reference-counted.
bool extract_data(TypedWritable *&ptr, ReferenceCount *&ref_ptr)
Fills ptr and ref_ptr with the two different-typed pointers to the same object, the data stored withi...