From c9a61734c5da8a562a54947533fd7285e73e25b4 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Fri, 11 Nov 2016 15:18:48 +0100
Subject: [PATCH] introduce a ProfileHandleList typedef

---
 modules/seq/base/doc/seq.rst                    | 3 +++
 modules/seq/base/pymod/export_profile_handle.cc | 4 ++++
 modules/seq/base/src/profile_handle.hh          | 1 +
 3 files changed, 8 insertions(+)

diff --git a/modules/seq/base/doc/seq.rst b/modules/seq/base/doc/seq.rst
index 3d112dfa9..533550913 100644
--- a/modules/seq/base/doc/seq.rst
+++ b/modules/seq/base/doc/seq.rst
@@ -553,6 +553,9 @@ residue. It mainly contains:
 
     :type: :class:`float`
 
+.. class:: ProfileHandleList
+
+  Represents a list of :class:`ProfileHandle` objects
 
 .. class:: ProfileDB
 
diff --git a/modules/seq/base/pymod/export_profile_handle.cc b/modules/seq/base/pymod/export_profile_handle.cc
index 111442f6c..31c09178d 100644
--- a/modules/seq/base/pymod/export_profile_handle.cc
+++ b/modules/seq/base/pymod/export_profile_handle.cc
@@ -58,6 +58,10 @@ void export_profile_handle()
     .def(vector_indexing_suite<ProfileColumnList>())
   ;
 
+  class_<ProfileHandleList>("ProfileHandleList", init<>())
+    .def(vector_indexing_suite<ProfileHandleList>())
+  ;
+
   class_<ProfileHandle, ProfileHandlePtr>("ProfileHandle", init<>())
     .def("__len__",&ProfileHandle::size)
     .def("AddColumn", &ProfileHandle::push_back)
diff --git a/modules/seq/base/src/profile_handle.hh b/modules/seq/base/src/profile_handle.hh
index e1ce34b80..367eaa1a2 100644
--- a/modules/seq/base/src/profile_handle.hh
+++ b/modules/seq/base/src/profile_handle.hh
@@ -41,6 +41,7 @@ class ProfileHandle;
 class ProfileColumn;
 class ProfileDB;
 typedef boost::shared_ptr<ProfileHandle> ProfileHandlePtr;
+typedef std::vector<ProfileHandle> ProfileHandleList;
 typedef boost::shared_ptr<ProfileDB> ProfileDBPtr;
 typedef std::vector<ProfileColumn> ProfileColumnList;
 
-- 
GitLab