Panda3D
Public Member Functions | Friends | List of all members
DCPackerCatalog::LiveCatalog Class Reference

Public Member Functions

int find_entry_by_field (const DCPackerInterface *field) const
 Returns the index number of the entry with the indicated field, or -1 if no entry has the indicated field. More...
 
int find_entry_by_name (const string &name) const
 Returns the index number of the entry with the indicated name, or -1 if no entry has the indicated name. More...
 
size_t get_begin (int n) const
 Returns the beginning of the indicated field within the live data. More...
 
size_t get_end (int n) const
 Returns the end of the indicated field (the byte position of the first following field) within the live data. More...
 
const Entryget_entry (int n) const
 Returns the nth entry in the catalog. More...
 
int get_num_entries () const
 Returns the number of entries in the catalog. More...
 

Friends

class DCPackerCatalog
 

Detailed Description

Definition at line 58 of file dcPackerCatalog.h.

Member Function Documentation

◆ find_entry_by_field()

int DCPackerCatalog::LiveCatalog::find_entry_by_field ( const DCPackerInterface field) const
inline

Returns the index number of the entry with the indicated field, or -1 if no entry has the indicated field.

The return value is suitable for passing to get_entry().

Definition at line 83 of file dcPackerCatalog.I.

References DCPackerCatalog::find_entry_by_field(), and DCPackerCatalog::get_num_entries().

Referenced by find_entry_by_name(), and DCPackerCatalog::release_live_catalog().

◆ find_entry_by_name()

int DCPackerCatalog::LiveCatalog::find_entry_by_name ( const string &  name) const
inline

Returns the index number of the entry with the indicated name, or -1 if no entry has the indicated name.

The return value is suitable for passing to get_entry().

Definition at line 70 of file dcPackerCatalog.I.

References find_entry_by_field(), and DCPackerCatalog::find_entry_by_name().

Referenced by get_entry(), and DCPacker::seek().

◆ get_begin()

size_t DCPackerCatalog::LiveCatalog::get_begin ( int  n) const
inline

Returns the beginning of the indicated field within the live data.

Definition at line 23 of file dcPackerCatalog.I.

References get_end().

Referenced by DCPacker::seek().

◆ get_end()

size_t DCPackerCatalog::LiveCatalog::get_end ( int  n) const
inline

Returns the end of the indicated field (the byte position of the first following field) within the live data.

Definition at line 36 of file dcPackerCatalog.I.

References get_num_entries().

Referenced by get_begin(), and DCPacker::seek().

◆ get_entry()

const DCPackerCatalog::Entry & DCPackerCatalog::LiveCatalog::get_entry ( int  n) const
inline

Returns the nth entry in the catalog.

Definition at line 57 of file dcPackerCatalog.I.

References find_entry_by_name(), and DCPackerCatalog::get_entry().

Referenced by get_num_entries(), and DCPacker::seek().

◆ get_num_entries()

int DCPackerCatalog::LiveCatalog::get_num_entries ( ) const
inline

Returns the number of entries in the catalog.

Definition at line 47 of file dcPackerCatalog.I.

References get_entry(), and DCPackerCatalog::get_num_entries().

Referenced by get_end().


The documentation for this class was generated from the following files: