Privacy
An open-source, flexible 3D physical simulation framework
mars::Object Class Reference

#include <PythonInterpreter.hpp>

Public Member Functions

 Object (shared_ptr< ObjectState > state)
 
Methodmethod (const std::string &name)
 
Objectvariable (const std::string &name)
 
double asDouble ()
 
int asInt ()
 
bool asBool ()
 
std::string asString ()
 

Public Attributes

shared_ptr< ObjectStatestate
 

Detailed Description

Definition at line 74 of file PythonInterpreter.hpp.

Constructor & Destructor Documentation

◆ Object()

mars::Object::Object ( shared_ptr< ObjectState state)

Definition at line 430 of file PythonInterpreter.cpp.

Member Function Documentation

◆ asBool()

bool mars::Object::asBool ( )

Definition at line 467 of file PythonInterpreter.cpp.

◆ asDouble()

double mars::Object::asDouble ( )

Definition at line 451 of file PythonInterpreter.cpp.

◆ asInt()

int mars::Object::asInt ( )

Definition at line 459 of file PythonInterpreter.cpp.

◆ asString()

std::string mars::Object::asString ( )

Definition at line 475 of file PythonInterpreter.cpp.

◆ method()

Method & mars::Object::method ( const std::string &  name)

Definition at line 435 of file PythonInterpreter.cpp.

◆ variable()

Object & mars::Object::variable ( const std::string &  name)

Definition at line 441 of file PythonInterpreter.cpp.

Member Data Documentation

◆ state

shared_ptr<ObjectState> mars::Object::state

Definition at line 77 of file PythonInterpreter.hpp.


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