ConicBundle
Public Member Functions | Private Attributes | List of all members
ConicBundle::CoeffmatPointer Class Reference

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
 
CoeffmatPointeroperator= (const CoeffmatPointer &mp)
 calls init(mp.coeffmatp)
 
CoeffmatPointeroperator= (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
 
Coeffmatoperator* () const
 returns the object pointed to (may not be called if empty)
 
Coeffmatoperator-> () const
 returns the pointers (may not be called if empty)
 
Coeffmatptr () const
 returns the pointer (may return NULL)
 

Private Attributes

Coeffmatcoeffmatp
 holds the pointer to Coeffmat, may be NULL == empty
 

Detailed Description

pointer class for Coeffmat for deleting objects on the heap if Coefmat::use_cnt is reduced to zero and deletion is allowed.


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