#include <ErlTermPtr.hpp>
Public Member Functions | |
| ErlTermPtr (erlterm_ptr term=0) | |
| ErlTermPtr (const ErlTermPtr &rhs) | |
| template<class U> | ErlTermPtr (const ErlTermPtr< U > &rhs) |
| ~ErlTermPtr () | |
| T & | operator * () const |
| erlterm_ptr | operator-> () const |
| erlterm_ptr | get () const |
| erlterm_ptr | drop () |
| void | reset (erlterm_ptr newTerm=0) |
| ErlTermPtr & | operator= (ErlTermPtr &rhs) |
| template<class U> ErlTermPtr< T > & | operator= (ErlTermPtr< U > &rhs) |
| ErlTermPtr & | operator= (erlterm_ptr rhs) |
| template<class U> ErlTermPtr< T > & | operator= (U *rhs) |
| T | type to use, default: ErlTerm. |
|
||||||||||
|
Create a new ErlTermPtr from ErlTerm pointer, increasing reference counter |
|
||||||||||
|
Copy constructor. initialize a new ErlTermPtr with other one increasing the Ref Counter |
|
|||||||||
|
Destructor. Decreases counter |
|
|||||||||
|
Decreases the reference counter of underlying pointer WITHOUT destroying it and resets the internal ErlTerm pointer to 0. Use this method with care, just to return zero referenced ErlTerms
|
|
|||||||||
|
Returns a pointer to the underlying object |
|
|||||||||
|
Operator '*', returns a reference to the underlying object |
|
|||||||||
|
Operator '->', returns a pointer to the underlying object |
|
||||||||||
|
Operator '=', copies the given argument to *this, increasing counter of given ErlTerm and releasing of old one |
|
||||||||||
|
Sets the underlying ErlTerm to p, increasing reference counter of the new pointer and decreasing the counter of the old one
|
1.3.4