PLearn 0.1
Namespaces | Defines | Functions
PythonObjectWrapper.cc File Reference
#include "PythonObjectWrapper.h"
#include "PythonEmbedder.h"
#include "PythonExtension.h"
#include <stdio.h>
#include <algorithm>
#include <plearn/base/plerror.h>
#include <plearn/vmat/VMat.h>
#include <plearn/base/RemoteTrampoline.h>
#include <plearn/base/HelpSystem.h>
#include <plearn/var/VarArray.h>
#include <plearn/base/RealMapping.h>
#include <plearn/vmat/VMField.h>
#include <plearn/io/pl_log.h>
Include dependency graph for PythonObjectWrapper.cc:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Defines

#define PL_LOG_MODULE_NAME   "PythonObjectWrapper"

Functions

void PLearn::PLPythonConversionError (const char *function_name, PyObject *pyobj, bool print_traceback)
 Used for error reporting.
template<>
int PLearn::numpyType< bool > ()
template<>
int PLearn::numpyType< signed char > ()
template<>
int PLearn::numpyType< unsigned char > ()
template<>
int PLearn::numpyType< signed short > ()
template<>
int PLearn::numpyType< unsigned short > ()
template<>
int PLearn::numpyType< signed int > ()
template<>
int PLearn::numpyType< unsigned int > ()
template<>
int PLearn::numpyType< signed long > ()
template<>
int PLearn::numpyType< unsigned long > ()
template<>
int PLearn::numpyType< signed long long > ()
template<>
int PLearn::numpyType< unsigned long long > ()
template<>
int PLearn::numpyType< float > ()
template<>
int PLearn::numpyType< double > ()
template<>
int PLearn::numpyType< long double > ()
PyObject * PLearn::convertArrayCheck (PyObject *pyobj, int numpy_type, int ndim, bool print_traceback)
void PLearn::checkWrappedObjects (const string &msg)
PStream & PLearn::operator>> (PStream &in, PythonObjectWrapper &v)
PStream & PLearn::operator<< (PStream &out, const PythonObjectWrapper &v)
PStream & PLearn::operator>> (PStream &in, PyObject *v)
PStream & PLearn::operator<< (PStream &out, const PyObject *v)
void PLearn::printWrappedObjects ()
 debug
void PLearn::ramassePoubelles ()
bool PLearn::getVMatAsPtr ()
bool PLearn::setVMatAsPtr (bool vmat_as_ptr)
BEGIN_DECLARE_REMOTE_FUNCTIONS PLearn::declareFunction ("printWrappedObjects",&printWrappedObjects,(BodyDoc("Prints PLearn objects wrapped into python.\n")))
 PLearn::declareFunction ("ramassePoubelles",&ramassePoubelles,(BodyDoc("GC for wrapped objects.\n")))
 PLearn::declareFunction ("getVMatAsPtr",&getVMatAsPtr,(BodyDoc("Returns current setting of 'VMatAsPtr'.\n""true= wrapped VMat; false= numpy array.\n"), RetDoc("current VMatAsPtr")))
 PLearn::declareFunction ("setVMatAsPtr",&setVMatAsPtr,(BodyDoc("Sets 'VMatAsPtr', returns previous setting.\n""true= wrapped VMat; false= numpy array.\n"), ArgDoc("vmat_as_ptr","wrap VMats instead of converting to numpy?"), RetDoc("Previous setting")))

Detailed Description

Definition in file PythonObjectWrapper.cc.


Define Documentation

#define PL_LOG_MODULE_NAME   "PythonObjectWrapper"

Definition at line 44 of file PythonObjectWrapper.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines