Python Component API: class BooleanArrayValue

The following methods are available for Python class BooleanArrayValue.

This page discusses:

Description

This class is an array value for a boolean array. It is part of the pilotpython module, which is available in the Python (on Server) component.

Method resolution order

class BooleanArrayValue(ArrayValue)

BooleanArrayValue.__init__(value)
Description Constructor. Requires existing SWIG-generated value.
Input parameters param value: SWIG-generated StringArrayValue

type value: StringArrayValue

Return value None
BooleanArrayValue.get()
Description Returns a copy of the array's booleans as a list
Input parameters None
Return value returns: List of bools

rtype: list

BooleanArrayValue.getItem(index)
Description Returns the item at the specified index of the iterator.
Input parameters param index: Index of item to retrieve

type index: int (>=0)

Return value None
BooleanArrayValue.getIthBoolean(index)
Description Attempts to return the value at position index as a boolean.
Input parameters param index: Index of item to return

type index: int

Return value returns: Value at index

rtype: bool

BooleanArrayValue.set(data)
Description sets this value's data
Input parameters param data: data to set, existing data will be replaced

type data: list

Return value None

Methods inherited fromArrayValue

BooleanArrayValue.appendValue(value)
Description Appends the supplied pilotpython value to the array.
Input parameters param value: Value to append

type value: pilotpython.Value or derived class

Return value None
BooleanArrayValue.clear()
Description Empties the array value of all content.
Input parameters None
Return value None
BooleanArrayValue.getIthFloat(index)
Description Attempts to return the value at position index as a float.
Input parameters param index: Index of item to return

type index: int

Return value returns: Value at index

rtype: float

BooleanArrayValue.getIthInteger(index)
Description Attempts to return the value at position index as a float.
Input parameters param index: Index of item to return

type index: int

Return value returns: Value at index

rtype: int

BooleanArrayValue.getIthString(index)
Description Attempts to return the value at position index as a string.
Input parameters param index: Index of item to return

type index: int

Return value returns: Value at index

rtype: str

BooleanArrayValue.getSize()
Description Returns the size of the array value.
Input parameters None
Return value returns: Size of value

rtype: int

BooleanArrayValue.insertValue(index, value)
Description Inserts the given value at the given index.
Input parameters param index: Index at which to insert value

type index: int

param value: Value to insert

type value: pilotpython.Value or derived class

Return value None
BooleanArrayValue.remove(index)
Description Removes the element at the given index.
Input parameters param index: Index of value to remove

type index: int (>=0)

Return value None

Methods inherited from Value

BooleanArrayValue.CreateValue(classTag)
Description Creates a new pilotpython.Value instance of the type specified by classTag. The Value instance must be deleted using Value.deleteInstance() after use. The exception is the ValueArrayValue type, which takes ownershipof any values added to it. The ValueHolder class can be used to store the newly created value. When a ValueHolder moves out of scope, the value it contains is destroyed.
Input parameters param classTag: Tag specifying the class of value to create

type classTag: str

Return value None
BooleanArrayValue.GetValue(rawVal)
Description Takes a rawpilot.Value and returns it wrapped in its pilotpython.Value.
Input parameters rawVal
Return value None
BooleanArrayValue.cloneValue()
Description Creates a clone (deep copy) of the value.
Input parameters None
Return value returns: Deep copy of value

rtype: Value

BooleanArrayValue.deleteInstance()
Description Deletes an instance of a value. Any value created with cloneValue() or newInstanceXXX(), and not assigned to a property, must be deleted.
Input parameters None
Return value None
BooleanArrayValue.getBoolArray()
Description Returns a copy(!) of the entire data set of a BooleanArrayValue.
Input parameters None
Return value returns: All bools contained in value

rtype: list

BooleanArrayValue.getBoolean()
Description Returns the value's contents as a boolean value.
Input parameters None
Return value returns: Data as a boolean

rtype: bool

BooleanArrayValue.getByteArray()
Description Returns a read-only view of the binary data.
Input parameters None
Return value returns: Byte array data

rtype: memoryview

BooleanArrayValue.getClassTag()
Description Returns the value's type in Pipeline Pilot notation.
Input parameters None
Return value returns: A class tag

rtype: str

BooleanArrayValue.getFloat()
Description Returns the value's contents as a float.
Input parameters None
Return value returns: Value contents as float

rtype: float

BooleanArrayValue.getFloatArray()
Description Returns a copy(!) of the entire data set of a DoubleArrayValue.
Input parameters None
Return value returns: All floats contained in value

rtype: list

BooleanArrayValue.getIntArray()
Description Returns a copy(!) of the entire dataset of an IntegerArrayValue.
Input parameters None
Return value returns: All ints contained in value

rtype: list

BooleanArrayValue.getInteger()
Description Returns the value's contents as an int.
Input parameters None
Return value returns: Data as int

rtype: int

BooleanArrayValue.getRawValue()
Description Returns the raw swigpython3 Value instance wrapped by this instance.
Input parameters None
Return value returns: Wrapped value

rtype: swigpython3.Value (or subclass). See getClassTag() for details.

BooleanArrayValue.getString()
Description Returns the value's contents as a string.
Input parameters None
Return value returns: Value contents as string

rtype: str

BooleanArrayValue.getStringArray()
Description Returns a copy(!) of the entire data set of a StringArrayValue.
Input parameters None
Return value returns: all strings contained in value

rtype: list

BooleanArrayValue.setBoolean(val)
Description Sets the value to the given boolean value
Input parameters param val: Value to set

type val: bool

Return value None
BooleanArrayValue.setFloat(val)
Description Sets the value's data to the given float value
Input parameters param val: Value to set

type val: float

Return value None
BooleanArrayValue.setInteger(val)
Description Sets the value's data to the given int value.
Input parameters param val: Value to set

type val: int

Return value None
BooleanArrayValue.setString(val)
Description Sets the value to the supplied string. The wrapped Value must support this operation.
Input parameters param val: string to set

type val: str

Return value None
BooleanArrayValue.toDictionary()
Description Returns a copy of a HashTableValue as a Python dict object.
Input parameters None
Return value returns: Hash table

rtype: dict

Data descriptors inherited from Value

BooleanArrayValue.__dict__
Description dictionary for instance variables (if defined)
BooleanArrayValue.__weakref__
Description list of weak references to the object (if defined)

Methods inherited from ValueIterator

BooleanArrayValue.__iter__()
BooleanArrayValue.__next__()
BooleanArrayValue.reset()