ScummVM API documentation
Sci::CloneTable Struct Reference
Inheritance diagram for Sci::CloneTable:
Sci::SegmentObjTable< Clone > 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< Clone >
 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
 
Cloneat (uint index)
 
const Cloneat (uint index) const
 
Cloneoperator[] (uint index)
 
const Cloneoperator[] (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< Clone >
enum  
 
typedef Clone 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< Clone >
int first_free
 
int entries_used
 
ArrayType _table
 
- Public Attributes inherited from Sci::SegmentObj
SegmentType _type
 

Member Function Documentation

◆ freeAtAddress()

void Sci::CloneTable::freeAtAddress ( SegManager segMan,
reg_t  sub_addr 
)
overridevirtual

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::CloneTable::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: