BioSimSpace._SireWrappers.SearchResult

class BioSimSpace._SireWrappers.SearchResult(select_result)

A thin wrapper around Sire.Mol.SelectResult.

__init__(select_result)

Constructor.

Parameters

select_result (Sire.Mol.SelectResult) – The Sire select result object.

Methods

__delattr__

Implement delattr(self, name).

__dir__

Default dir() implementation.

__eq__(other)

Equals to operator.

__format__

Default object formatter.

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__getitem__(key)

Get a search result from the container.

__gt__

Return self>value.

__hash__()

Hash operator.

__init__(select_result)

Constructor.

__init_subclass__

This method is called when a class is subclassed.

__iter__()

An iterator for the object.

__le__

Return self<=value.

__len__()

Return the number of results.

__lt__

Return self<value.

__ne__(other)

Not equals to operator.

__new__

Create and return a new object.

__next__()

An iterator for the object.

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__repr__()

Return a string showing how to instantiate the object.

__setattr__

Implement setattr(self, name, value).

__setitem__(key, value)

Set a molecule in the container.

__sizeof__

Size of object in memory, in bytes.

__str__()

Return a human readable string representation of the object.

__subclasshook__

Abstract classes can override this to customize issubclass().

_getSireObject()

Return the underlying Sire object.

copy()

Create a copy of this object.

getResult(index)

Return the result at the given index.

nResults()

Return the number of results.

Attributes

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

copy()

Create a copy of this object.

Returns

search_result – A copy of the object.

Return type

SearchResult

getResult(index)

Return the result at the given index.

Parameters

index (int) – The index of the result.

Returns

nResults()

Return the number of results.

Returns

num_results – The number of search results.

Return type

int