OEConstCoords¶
Warning
This class is only usable from the OpenEye C++ toolkits.
template<class T>
class OEConstCoords : public detail::OECoordsBase<const T, const OEConfBase>
This class is used to provide convenient direct access to the
memory storing coordinates for a OEConfBase
through the OEConfBase.GetCoordsPtr
methods. If
the data type of T
does not match the implementation of
OEConfBase, this class makes a copy of the
coordinates with OEConfBase.GetCoords
instead.
See also
This class only provides const
read-only access, use
OEMutableCoords for write-access as well.
Constructors¶
OEConstCoords(const OEConfBase *conf)
Construct a read-only view of the coordinates in the conformer conf
.
operator const T *¶
operator const T *() const
Allows implicitly casting this object into a const pointer of type
T
to the coordinates of the conformer used in the
constructor.
GetPtr¶
const T *GetPtr() const
Returns a const pointer of type T
to the coordinates of the
conformer used in the constructor.