Skip to content
Snippets Groups Projects
Commit bdea8bf0 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Added comment clarifying shared_ptr usage in case python derived objects need to be passed to c++

parent 063e5b6f
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@
class FitSuiteObserverFactory
{
public:
// These shared pointers will be used as observer_t
typedef boost::shared_ptr<FitSuitePrintObserver> observer_print_t;
typedef boost::shared_ptr<FitSuiteDrawObserver> observer_draw_t;
typedef boost::shared_ptr<FitSuiteWriteTreeObserver> observer_tree_t;
......
......@@ -36,6 +36,7 @@ public:
protected:
};
// Shared pointer is used when passing these objects from python to c++
typedef boost::shared_ptr<class ISampleBuilder > SampleBuilder_t;
#endif /* ISAMPLEBUILDER_H_ */
......@@ -44,6 +44,7 @@ public:
class BA_CORE_API_ IObservable {
public:
// Shared pointer is used when passing these objects from python to c++
typedef boost::shared_ptr<IObserver > observer_t;
typedef std::list<observer_t > observerlist_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment