pl::Pointer Class Reference

pointer class(blessed object, contains pointer for C struct/class/etc. More...

#include <bindpp.h>

Inheritance diagram for pl::Pointer:

pl::Scalar pl::Value

List of all members.

Public Member Functions

 Pointer (SV *s)
 Pointer (void *_ptr, const char *klass)
 create a scalar from void* pointer
template<class T>
extract ()
 get the pointer from scalar
Scalarmortal ()
 make this value as mortal.
SV * serialize ()
 serialize this object to real perl variable
Stras_str ()
 this variable is just a string.change the type
Intas_int ()
 this variable is just a int.change the type
UIntas_uint ()
 this variable is just a uint.change the type
Doubleas_double ()
 this variable is just a double.change the type
Pointeras_pointer ()
 this variable is just a pointer.change the type
Referenceas_ref ()
 this variable is just a reference.change the type
Scalarclone ()
void dump ()
 dump value
void refcnt_inc ()
 increment the reference counter for this value
void refcnt_dec ()
 decrement the reference counter for this value
int refcnt ()
 get a reference count
bool is_true ()
Referencereference ()
 get a reference of this value

Static Public Member Functions

static Scalarto_perl (const char *s)
static Scalarto_perl (unsigned int v)
static Scalarto_perl (int v)
static Scalarto_perl (I32 v)
static Scalarto_perl (double v)
static Scalarto_perl (Scalar *v)
static Scalarto_perl (std::string &v)
static Scalarto_perl (bool b)

Static Protected Member Functions

static Scalarcreate (SV *_v)

Protected Attributes

SV * val


Detailed Description

pointer class(blessed object, contains pointer for C struct/class/etc.

)


Member Function Documentation

Scalar* pl::Scalar::mortal (  )  [inline, inherited]

make this value as mortal.

mortal means "this variable is just a temporary.please remove after leave this context"

void pl::Value::dump (  )  [inline, inherited]

dump value

See also:
sv_dump()

void pl::Value::refcnt_inc (  )  [inline, inherited]

increment the reference counter for this value

See also:
SvREFCNT_inc

void pl::Value::refcnt_dec (  )  [inline, inherited]

decrement the reference counter for this value

See also:
SvREFCNT_dec

int pl::Value::refcnt (  )  [inline, inherited]

get a reference count

See also:
SvREFCNT


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

Generated on Sun Mar 29 18:01:53 2009 for Devel::BindPP by  doxygen 1.5.6