• Main Page
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List

PathTable.hpp

00001 /* This file is part of Raul.
00002  * Copyright (C) 2007-2009 David Robillard <http://drobilla.net>
00003  *
00004  * Raul is free software; you can redistribute it and/or modify it under the
00005  * terms of the GNU General Public License as published by the Free Software
00006  * Foundation; either version 2 of the License, or (at your option) any later
00007  * version.
00008  *
00009  * Raul is distributed in the hope that it will be useful, but WITHOUT ANY
00010  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00011  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for details.
00012  *
00013  * You should have received a copy of the GNU General Public License along
00014  * with this program; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00016  */
00017 
00018 #ifndef RAUL_PATH_TABLE_HPP
00019 #define RAUL_PATH_TABLE_HPP
00020 
00021 #include "raul/Path.hpp"
00022 #include "raul/Table.hpp"
00023 
00024 namespace Raul {
00025 
00026 template <typename T>
00027 class PathTable : public Table<Path, T> {
00028 public:
00034     typename Table<Path, T>::iterator find_descendants_end(
00035             typename Table<Path, T>::iterator parent)
00036     {
00037         return find_range_end(parent, &Path::descendant_comparator);
00038     }
00039 
00040     typename Table<Path, T>::const_iterator find_descendants_end(
00041             typename Table<Path, T>::const_iterator parent) const
00042     {
00043         return find_range_end(parent, &Path::descendant_comparator);
00044     }
00045 };
00046 
00047 
00048 } // namespace Raul
00049 
00050 #endif // RAUL_PATH_TABLE_HPP
00051 

Generated on Sun Sep 12 2010 for RAUL by  doxygen 1.7.1