OpenStructure
Public Member Functions
Query Class Reference

#include <query.hh>

Public Member Functions

 Query (const String &query_string="")
 Query (const impl::QueryImplP &impl)
bool IsAtomSelected (const AtomHandle &ah) const
bool IsChainSelected (const ChainHandle &chain) const
bool IsResidueSelected (const ResidueHandle &residue) const
const StringGetQueryString () const
const QueryErrorDescGetErrorDescription () const
QueryState CreateQueryState (const EntityView &view) const
QueryState CreateQueryState (const EntityHandle &view) const
bool IsValid () const
bool MatchAll () const
impl::QueryImplP Impl ()
const impl::QueryImplPImpl () const

Detailed Description

Selection Query.

The query system is described here in more detail.

Definition at line 74 of file query.hh.


Constructor & Destructor Documentation

Query ( const String query_string = "")

Construct new query object.

Query ( const impl::QueryImplP impl)

internally used constructor


Member Function Documentation

QueryState CreateQueryState ( const EntityView view) const

create new query state to be used for a given entity

QueryState CreateQueryState ( const EntityHandle view) const

create new query state to be used for a given entity

const QueryErrorDesc& GetErrorDescription ( ) const
const String& GetQueryString ( ) const

Get String.

impl::QueryImplP Impl ( )
const impl::QueryImplP& Impl ( ) const
bool IsAtomSelected ( const AtomHandle ah) const

whether atom fulfills the query

bool IsChainSelected ( const ChainHandle chain) const

whether chain fulfills the query

True is returned if at least one of the atoms of the chain is selected by the query

bool IsResidueSelected ( const ResidueHandle residue) const

whether residue fulfills the query

True is returned if at least one of the atoms of the residue is selected by the query

bool IsValid ( ) const
bool MatchAll ( ) const

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