#include <bindpp.h>
Public Member Functions | |
Str (std::string &_s) | |
Str (const char *_s) | |
Str (const char *_s, int _n) | |
const char * | to_c () |
convert to C level const char* | |
void | concat (const char *s, I32 len) |
concat the string | |
void | concat (const char *s) |
void | concat (Str *s) |
int | length () |
get a length | |
Scalar * | mortal () |
make this value as mortal. | |
Str * | as_str () |
this variable is just a string.change the type | |
Int * | as_int () |
this variable is just a int.change the type | |
UInt * | as_uint () |
this variable is just a uint.change the type | |
Double * | as_double () |
this variable is just a double.change the type | |
Pointer * | as_pointer () |
this variable is just a pointer.change the type | |
Reference * | as_ref () |
this variable is just a reference.change the type | |
Scalar * | clone () |
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 () |
Reference * | reference () |
get a reference of this value | |
Static Public Member Functions | |
template<class T> | |
static Scalar * | to_perl (T s) |
Protected Member Functions | |
Str (SV *_s) | |
Static Protected Member Functions | |
static Scalar * | create (SV *_v) |
static SV * | to_sv (const char *s) |
static SV * | to_sv (unsigned int v) |
static SV * | to_sv (int v) |
static SV * | to_sv (I32 v) |
static SV * | to_sv (double v) |
static SV * | to_sv (Scalar *v) |
static SV * | to_sv (std::string &v) |
static SV * | to_sv (bool b) |
Protected Attributes | |
SV * | val |
Friends | |
class | Scalar |
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
void pl::Value::refcnt_inc | ( | ) | [inline, inherited] |
increment the reference counter for this value
void pl::Value::refcnt_dec | ( | ) | [inline, inherited] |
decrement the reference counter for this value
int pl::Value::refcnt | ( | ) | [inline, inherited] |
get a reference count