Bridges-Python-3.0.2  3.0.2
Bridges(PythonAPI)
Public Member Functions | Public Attributes | List of all members
bridges.array1d.Array1D Class Reference
Inheritance diagram for bridges.array1d.Array1D:
bridges.array.Array

Detailed Description

This is a class can be used to create 1 dimensional arrays of type Element<E>.

Author
Kalpathi Subramanian, Matthew McQuaigue
Date
7/18/19

This class can be used to create 1D arrays of type Element<E> where E is a generic object representing application specific data.

Array1D has iterator semantic to enable range for loops. For instance,

Array1D<Integer> arr = something();
for (Integer i : arr)
System.out.println(i);

Example Tutorial at: http://bridgesuncc.github.io/tutorials/Array.html (1D, 2D, and 3D Array)

Public Member Functions

def __init__ (self, sz=None)
 Create a 1D array object. More...
 
- Public Member Functions inherited from bridges.array.Array
def __init__ (self, kwargs)
 Array constructor. More...
 
def num_dims (self)
 Getter for representing the number of dimensions in the array. More...
 
def num_dims
 Setter function for the number of dimensions for the array. More...
 
def size (self)
 Getter for representing the size of array. More...
 
def size
 Setter for representing the size of the array. More...
 
def set_size
 Set the size of each dimensions; also allocates array space. More...
 
def get_data_structure_type (self)
 Gets the data structure type. More...
 
def get_dimensions (self)
 Get the size of each dimensions. More...
 
def get_element (self, args, kwargs)
 Getter function for an element in the array at given position. More...
 
def set_element (self, args, kwargs)
 Setter function for an element in the array at given position. More...
 
def __getitem__ (self, item)
 
def __setitem__ (self, key, value)
 
def get_data_structure_representation (self)
 Generating the JSON string for a bridges array object. More...
 

Public Attributes

 size
 
- Public Attributes inherited from bridges.array.Array
 num_dims
 
 size
 

Additional Inherited Members

- Static Public Attributes inherited from bridges.array.Array
list dims = [1,1,1]
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.array1d.Array1D.__init__ (   self,
  sz = None 
)

Create a 1D array object.

Parameters
sznumber of elements in the array

Member Data Documentation

◆ size

bridges.array1d.Array1D.size

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