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

Public Member Functions

 __init__ (self, size)
 
 add_data (self, start, string)
 
 remove_data (self, start, length)
 
 compact (self)
 
 get_data (self, start, length)
 
 __repr__ (self)
 

Public Attributes

list array = [''] * size
 
 size = size
 

Constructor & Destructor Documentation

◆ __init__()

batcher_visualization.FixedSizeArrayStorage.__init__ ( self,
size )

Member Function Documentation

◆ __repr__()

batcher_visualization.FixedSizeArrayStorage.__repr__ ( self)
Returns a visual representation of the array.

◆ add_data()

batcher_visualization.FixedSizeArrayStorage.add_data ( self,
start,
string )
Adds the actual data into the array at the given start index.

◆ compact()

batcher_visualization.FixedSizeArrayStorage.compact ( self)
Compacts the array by removing gaps and shifting the data.

◆ get_data()

batcher_visualization.FixedSizeArrayStorage.get_data ( self,
start,
length )
Retrieves data from the array at the given start index.

◆ remove_data()

batcher_visualization.FixedSizeArrayStorage.remove_data ( self,
start,
length )
Removes data from the array by clearing the specified range.

Member Data Documentation

◆ array

list batcher_visualization.FixedSizeArrayStorage.array = [''] * size

◆ size

batcher_visualization.FixedSizeArrayStorage.size = size

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