ConicBundle
|
pointer class for Coeffmat for deleting objects on the heap if Coefmat::use_cnt is reduced to zero and deletion is allowed. More...
#include <Coeffmat.hxx>
Public Member Functions | |
void | init (Coeffmat *cfmp) |
initialize the Pointer to hold cfmp (==NULL is allowed for empty); for the coeffmat stored previously it reduces the use_cnt and deletes it if zero. | |
CoeffmatPointer () | |
default initialization to an empty pointer | |
CoeffmatPointer (Coeffmat *cfmp) | |
calls init() (cfmp==NULL is allowed) | |
CoeffmatPointer (const CoeffmatPointer &mp) | |
calls init(mp.coeffmatp) | |
~CoeffmatPointer () | |
calls init(0) first | |
CoeffmatPointer & | operator= (const CoeffmatPointer &mp) |
calls init(mp.coeffmatp) | |
CoeffmatPointer & | operator= (Coeffmat *cfmp) |
calls init(cfmp), NULL is allowed | |
bool | operator== (const CoeffmatPointer &mp) const |
compares the pointers | |
bool | operator== (const Coeffmat *cfmp) const |
compares the pointers | |
bool | operator!= (const CoeffmatPointer &mp) const |
compares the pointers | |
bool | operator!= (const Coeffmat *cfmp) const |
compares the pointers | |
bool | operator< (const CoeffmatPointer &mp) const |
compares the pointers | |
bool | operator< (const Coeffmat *cfmp) const |
compares the pointers | |
bool | operator> (const CoeffmatPointer &mp) const |
compares the pointers | |
bool | operator> (const Coeffmat *cfmp) const |
compares the pointers | |
Coeffmat & | operator* () const |
returns the object pointed to (may not be called if empty) | |
Coeffmat * | operator-> () const |
returns the pointers (may not be called if empty) | |
Coeffmat * | ptr () const |
returns the pointer (may return NULL) | |
Private Attributes | |
Coeffmat * | coeffmatp |
holds the pointer to Coeffmat, may be NULL == empty | |
pointer class for Coeffmat for deleting objects on the heap if Coefmat::use_cnt is reduced to zero and deletion is allowed.