Public Member Functions | List of all members
pp::Var::OutException Class Reference

#include <var.h>

Collaboration diagram for pp::Var::OutException:
Collaboration graph

Public Member Functions

 OutException (Var *v)
 A constructor. More...
 ~OutException ()
 Destructor. More...
PP_Varget ()

Detailed Description

This class is used when calling the raw C PPAPI when using the C++ Var as a possible NULL exception. This class will handle getting the address of the internal value out if it's non-NULL and fixing up the reference count.

Warning: this will only work for things with exception semantics, i.e. that the value will not be changed if it's a non-undefined exception. Otherwise, this class will mess up the refcounting.

This is a bit subtle:

Example: void FooBar(a, b, Var* exception = NULL) { foo_interface->Bar(a, b, Var::OutException(exception).get()); }

Definition at line 262 of file var.h.

Constructor & Destructor Documentation

pp::Var::OutException::OutException ( Var v)

A constructor.

Definition at line 265 of file var.h.

References pp::Var::var_.

pp::Var::OutException::~OutException ( )


Definition at line 277 of file var.h.

References pp::PASS_REF, and pp::Var::Var().

Member Function Documentation

PP_Var* pp::Var::OutException::get ( )

Definition at line 282 of file var.h.

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