Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Leda_like_handle Class Reference

#include <Handle.h>

Collaboration diagram for Leda_like_handle:

Public Member Functions

 Leda_like_handle ()
 
 Leda_like_handle (const Leda_like_handle &x)
 
 ~Leda_like_handle ()
 
Leda_like_handleoperator= (const Leda_like_handle &x)
 
int refs () const
 

Protected Attributes

Leda_like_repPTR
 

Friends

unsigned long id (const Leda_like_handle &x)
 

Detailed Description

Definition at line 67 of file Handle.h.

Constructor & Destructor Documentation

Leda_like_handle ( )
inline

Definition at line 70 of file Handle.h.

References PTR.

71  { PTR = (Leda_like_rep*)NULL; }
Leda_like_rep * PTR
Definition: Handle.h:102
Leda_like_handle ( const Leda_like_handle x)
inline

Definition at line 74 of file Handle.h.

References CGAL_kernel_precondition, Leda_like_rep::count, and PTR.

75  {
77  PTR = x.PTR;
78  PTR->count++;
79  }
int count
Definition: Handle.h:64
Leda_like_rep * PTR
Definition: Handle.h:102
#define CGAL_kernel_precondition(EX)
~Leda_like_handle ( )
inline

Definition at line 82 of file Handle.h.

References Leda_like_rep::count, and PTR.

83  { if ( PTR && (--PTR->count == 0)) { delete PTR; } }
int count
Definition: Handle.h:64
Leda_like_rep * PTR
Definition: Handle.h:102

Member Function Documentation

Leda_like_handle& operator= ( const Leda_like_handle x)
inline

Definition at line 86 of file Handle.h.

References CGAL_kernel_precondition, Leda_like_rep::count, and PTR.

87  {
89  x.PTR->count++;
90  if ( PTR && (--PTR->count == 0)) { delete PTR; }
91  PTR = x.PTR;
92  return *this;
93  }
int count
Definition: Handle.h:64
Leda_like_rep * PTR
Definition: Handle.h:102
#define CGAL_kernel_precondition(EX)
int refs ( ) const
inline

Definition at line 97 of file Handle.h.

References Leda_like_rep::count, and PTR.

97 { return PTR->count; }
int count
Definition: Handle.h:64
Leda_like_rep * PTR
Definition: Handle.h:102

Friends And Related Function Documentation

unsigned long id ( const Leda_like_handle x)
friend

Definition at line 107 of file Handle.h.

108 { return (unsigned long)x.PTR; }
Leda_like_rep * PTR
Definition: Handle.h:102

Member Data Documentation

Leda_like_rep* PTR
protected

Definition at line 102 of file Handle.h.

Referenced by id(), Leda_like_handle(), operator=(), refs(), and ~Leda_like_handle().


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