pl::BootstrapCtx Class Reference

special context class for bootstrap_* method More...

#include <bindpp.h>

Inheritance diagram for pl::BootstrapCtx:

pl::Ctx

List of all members.

Public Member Functions

I32 arg_len ()
 length of arguments
Scalararg (int n)
 get the argument indexed by n
void ret (Scalar s)
 return the one scalar value
void ret (Scalar *s)
void ret (int n, Scalar *s)
void ret (Array *ary)
 return multiple values
bool wantarray ()
 same as perl level wantarray()
void return_true ()
 return true value
void return_undef ()
 return undef value
void register_allocated (Value *v)
 register the allocated Value.

Protected Member Functions

void xs_version_bootcheck ()
void ret (int n, SV *s)
SV * fetch_stack (int n)
 fetch the top 'n' of stack
void initialize ()

Protected Attributes

I32 ax
SV ** mark
std::vector< Value * > allocated


Detailed Description

special context class for bootstrap_* method

Member Function Documentation

void pl::Ctx::register_allocated ( Value v  )  [inline, inherited]

register the allocated Value.

these objects delete when leave this context. Note: 'Value' is delete, but Value->val is not delete!

SV* pl::Ctx::fetch_stack ( int  n  )  [inline, protected, inherited]

fetch the top 'n' of stack

See also:
ST(n)


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

Generated on Thu Mar 26 20:54:37 2009 for Devel::BindPP by  doxygen 1.5.6