CPP-TOOLBOX
Loading...
Searching...
No Matches
batcher_visualization.FixedSizeArray Class Reference

Public Member Functions

 __init__ (self, size, logging_enabled=False)
 
 toggle_logging (self)
 
 add (self, id, string)
 
 get (self, id)
 
 __repr__ (self)
 

Public Attributes

 tracker = FixedSizeArrayTracker(size, logging_enabled)
 
 storage = FixedSizeArrayStorage(size)
 

Constructor & Destructor Documentation

◆ __init__()

batcher_visualization.FixedSizeArray.__init__ ( self,
size,
logging_enabled = False )

Member Function Documentation

◆ __repr__()

batcher_visualization.FixedSizeArray.__repr__ ( self)
Returns a visual representation of the array and metadata.

◆ add()

batcher_visualization.FixedSizeArray.add ( self,
id,
string )
Adds a string to the array with a given ID.

◆ get()

batcher_visualization.FixedSizeArray.get ( self,
id )
Retrieves the string associated with the given ID.

◆ toggle_logging()

batcher_visualization.FixedSizeArray.toggle_logging ( self)
Toggles logging state on or off.

Member Data Documentation

◆ storage

batcher_visualization.FixedSizeArray.storage = FixedSizeArrayStorage(size)

◆ tracker

batcher_visualization.FixedSizeArray.tracker = FixedSizeArrayTracker(size, logging_enabled)

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