OEMutableCoords¶
Warning
This class is only usable from the OpenEye C++ toolkits.
template<class T>
class OEMutableCoords : public detail::OECoordsBase<T, 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.
If a copy of the coordinates are made with
OEConfBase.GetCoords, the destructor of this
class will copy the changes made back into the conformer with
OEConfBase.SetCoords.
Note
This class can incur unnecessary copies if T does not match
the implementation of the OEConfBase and no
modifications were actually made. Use OEConstCoords
whenever read-only access to coordinates is acceptable.
Constructors¶
OEMutableCoords(OEConfBase *conf)
Construct a mutable view of the coordinates in the conformer conf.
operator T *¶
operator T *()
Allows implicitly casting this object into a pointer of type
T to the coordinates of the conformer used in the
constructor.
GetPtr¶
T *GetPtr()
Returns a pointer of type T to the coordinates of the
conformer used in the constructor.