ScummVM API documentation
Sci::ListTable Struct Reference
Inheritance diagram for Sci::ListTable:
Sci::SegmentObjTable< List > Sci::SegmentObj Common::Serializable

Public Member Functions

void freeAtAddress (SegManager *segMan, reg_t sub_addr) override
 
Common::Array< reg_tlistAllOutgoingReferences (reg_t object) const override
 
void saveLoadWithSerializer (Common::Serializer &ser) override
 
- Public Member Functions inherited from Sci::SegmentObjTable< List >
 SegmentObjTable (SegmentType type)
 
void initTable ()
 
int allocEntry ()
 
bool isValidOffset (uint32 offset) const override
 
bool isValidEntry (int idx) const
 
virtual void freeEntry (int idx)
 
Common::Array< reg_tlistAllDeallocatable (SegmentId segId) const override
 
uint size () const
 
Listat (uint index)
 
const Listat (uint index) const
 
Listoperator[] (uint index)
 
const Listoperator[] (uint index) const
 
- Public Member Functions inherited from Sci::SegmentObj
 SegmentObj (SegmentType type)
 
SegmentType getType () const
 
virtual SegmentRef dereference (reg_t pointer)
 
virtual reg_t findCanonicAddress (SegManager *segMan, reg_t sub_addr) const
 

Additional Inherited Members

- Public Types inherited from Sci::SegmentObjTable< List >
enum  
 
typedef List value_type
 
typedef Common::Array< Entry > ArrayType
 
- Static Public Member Functions inherited from Sci::SegmentObj
static SegmentObjcreateSegmentObj (SegmentType type)
 
- Public Attributes inherited from Sci::SegmentObjTable< List >
int first_free
 
int entries_used
 
ArrayType _table
 
- Public Attributes inherited from Sci::SegmentObj
SegmentType _type
 

Member Function Documentation

◆ freeAtAddress()

void Sci::ListTable::freeAtAddress ( SegManager segMan,
reg_t  sub_addr 
)
inlineoverridevirtual

Deallocates all memory associated with the specified address. Used by the garbage collector.

Parameters
sub_addraddress (within the given segment) to deallocate

Reimplemented from Sci::SegmentObj.

◆ listAllOutgoingReferences()

Common::Array<reg_t> Sci::ListTable::listAllOutgoingReferences ( reg_t  object) const
overridevirtual

Iterates over all references reachable from the specified object. Used by the garbage collector.

Parameters
objectobject (within the current segment) to analyze
Returns
a list of outgoing references within the object
Note
This function may also choose to report numbers (segment 0) as adresses

Reimplemented from Sci::SegmentObj.


The documentation for this struct was generated from the following file: