[niepce] fwk/utils: un-inline some function for linkage



commit c89e581fd8eb583cad80adca24a5626e20f14dc5
Author: Hubert Figuière <hub figuiere net>
Date:   Fri Jan 12 00:01:48 2018 -0500

    fwk/utils: un-inline some function for linkage

 src/fwk/utils/files.cpp | 36 +++++++++++++++++++++++++++++++++++-
 src/fwk/utils/files.hpp | 23 ++++++++---------------
 2 files changed, 43 insertions(+), 16 deletions(-)
---
diff --git a/src/fwk/utils/files.cpp b/src/fwk/utils/files.cpp
index c136b0f..02f8abe 100644
--- a/src/fwk/utils/files.cpp
+++ b/src/fwk/utils/files.cpp
@@ -2,7 +2,7 @@
 /*
  * niepce - fwk/utils/files.cpp
  *
- * Copyright (C) 2007-2017 Hubert Figuiere
+ * Copyright (C) 2007-2018 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -68,17 +68,46 @@ bool filter_xmp_out(const Glib::RefPtr<Gio::FileInfo> & file)
 }
 
 
+FileList::FileList()
+{
+}
+
 FileList::FileList( const _impltype_t & v )
     : _impltype_t( v )
 {
 }
 
+FileList::value_type FileList::at(size_type index) const
+{
+    return _impltype_t::at(index);
+}
+
 const FileList::value_type::value_type*
 FileList::at_cstr(size_type index) const
 {
     return _impltype_t::at(index).c_str();
 }
 
+FileList::const_iterator FileList::begin() const
+{
+    return _impltype_t::cbegin();
+}
+
+FileList::const_iterator FileList::end() const
+{
+    return _impltype_t::cend();
+}
+
+FileList::const_iterator FileList::cbegin() const
+{
+    return _impltype_t::cbegin();
+}
+
+FileList::const_iterator FileList::cend() const
+{
+    return _impltype_t::cend();
+}
+
 FileList::size_type FileList::size() const
 {
     return _impltype_t::size();
@@ -89,6 +118,11 @@ void FileList::sort()
     std::sort(_impltype_t::begin(), _impltype_t::end());
 }
 
+void FileList::push_back(const value_type & v)
+{
+    _impltype_t::push_back(v);
+}
+
 FileList::Ptr FileList::getFilesFromDirectory(const FileList::value_type& p, std::function<bool (const 
Glib::RefPtr<Gio::FileInfo>&)> filter)
 {
 //             if(!exists( p ) ) {
diff --git a/src/fwk/utils/files.hpp b/src/fwk/utils/files.hpp
index 9b999b4..34c7f58 100644
--- a/src/fwk/utils/files.hpp
+++ b/src/fwk/utils/files.hpp
@@ -2,7 +2,7 @@
 /*
  * niepce - fwk/utils/files.hpp
  *
- * Copyright (C) 2007-2017 Hubert Figuiere
+ * Copyright (C) 2007-2018 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -59,8 +59,7 @@ public:
     typedef _impltype_t::const_iterator   const_iterator;
     typedef _impltype_t::size_type        size_type;
 
-    FileList()
-        {}
+    FileList();
     FileList(const _impltype_t&);
 
 #if !RUST_BINDGEN
@@ -68,21 +67,15 @@ public:
                                      std::function<bool (const Glib::RefPtr<Gio::FileInfo>&)> filter);
 #endif
 
-    value_type at(size_type index) const
-        { return _impltype_t::at(index); }
+    value_type at(size_type index) const;
     const value_type::value_type* at_cstr(size_type index) const;
-    const_iterator begin() const
-        { return _impltype_t::cbegin(); }
-    const_iterator end() const
-        { return _impltype_t::cend(); }
-    const_iterator cbegin() const
-        { return _impltype_t::cbegin(); }
-    const_iterator cend() const
-        { return _impltype_t::cend(); }
+    const_iterator begin() const;
+    const_iterator end() const;
+    const_iterator cbegin() const;
+    const_iterator cend() const;
     size_type size() const;
     void sort();
-    void push_back(const value_type & v)
-        { _impltype_t::push_back(v); }
+    void push_back(const value_type & v);
 };
 
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]