Mantid
Loading...
Searching...
No Matches
Functions
WorkspaceGroup.cpp File Reference
#include "MantidAPI/WorkspaceGroup.h"
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/WorkspaceGroup_fwd.h"
#include "MantidPythonInterface/api/RegisterWorkspacePtrToPython.h"
#include "MantidPythonInterface/core/DataServiceExporter.h"
#include "MantidPythonInterface/core/GetPointer.h"
#include "MantidPythonInterface/core/ReleaseGlobalInterpreterLock.h"
#include <boost/python/class.hpp>
#include <boost/python/copy_non_const_reference.hpp>
#include <boost/python/iterator.hpp>
#include <boost/python/make_constructor.hpp>
#include <boost/python/return_value_policy.hpp>

Go to the source code of this file.

Functions

void addItem (WorkspaceGroup &self, const std::string &name)
 
void addWorkspace (WorkspaceGroup &self, const boost::python::object &pyobj)
 
void export_WorkspaceGroup ()
 
PyObject * getItem (WorkspaceGroup &self, const int &index)
 
std::vector< Workspace_sptr >::iterator group_begin (WorkspaceGroup &self)
 Returns an iterator pointing to the first element in the group. More...
 
std::vector< Workspace_sptr >::iterator group_end (WorkspaceGroup &self)
 Returns an iterator pointing to the past-the-end element in the group. More...
 
Workspace_sptr makeWorkspaceGroup ()
 Constructor function for WorkspaceGroup. More...
 
void removeItem (WorkspaceGroup &self, const std::string &name)
 

Function Documentation

◆ addItem()

void addItem ( WorkspaceGroup self,
const std::string &  name 
)

◆ addWorkspace()

void addWorkspace ( WorkspaceGroup self,
const boost::python::object &  pyobj 
)

Definition at line 70 of file WorkspaceGroup.cpp.

References Mantid::API::WorkspaceGroup::addWorkspace().

Referenced by export_WorkspaceGroup().

◆ export_WorkspaceGroup()

void export_WorkspaceGroup ( )

◆ getItem()

PyObject * getItem ( WorkspaceGroup self,
const int &  index 
)

◆ group_begin()

std::vector< Workspace_sptr >::iterator group_begin ( WorkspaceGroup self)

Returns an iterator pointing to the first element in the group.

Parameters
self:: handle to the workspace group.
Returns
A non-const iterator pointing at start of workspace group, for use in python.

Definition at line 48 of file WorkspaceGroup.cpp.

Referenced by export_WorkspaceGroup().

◆ group_end()

std::vector< Workspace_sptr >::iterator group_end ( WorkspaceGroup self)

Returns an iterator pointing to the past-the-end element in the group.

Parameters
self:: handle to the workspace group.
Returns
A non-const iterator pointing at end of workspace group, for use in python.

Definition at line 57 of file WorkspaceGroup.cpp.

References Mantid::API::WorkspaceGroup::end().

Referenced by export_WorkspaceGroup().

◆ makeWorkspaceGroup()

Workspace_sptr makeWorkspaceGroup ( )

Constructor function for WorkspaceGroup.

Definition at line 60 of file WorkspaceGroup.cpp.

Referenced by export_WorkspaceGroup().

◆ removeItem()

void removeItem ( WorkspaceGroup self,
const std::string &  name 
)