RAUL
0.8.0
Main Page
Modules
Namespaces
Classes
Files
File List
raul
PathTable.hpp
1
/* This file is part of Raul.
2
* Copyright (C) 2007-2009 David Robillard <http://drobilla.net>
3
*
4
* Raul is free software; you can redistribute it and/or modify it under the
5
* terms of the GNU General Public License as published by the Free Software
6
* Foundation; either version 2 of the License, or (at your option) any later
7
* version.
8
*
9
* Raul is distributed in the hope that it will be useful, but WITHOUT ANY
10
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
12
*
13
* You should have received a copy of the GNU General Public License along
14
* with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
*/
17
18
#ifndef RAUL_PATH_TABLE_HPP
19
#define RAUL_PATH_TABLE_HPP
20
21
#include "raul/Path.hpp"
22
#include "raul/Table.hpp"
23
24
namespace
Raul {
25
29
template
<
typename
T>
30
class
PathTable
:
public
Table
<Path, T> {
31
public
:
37
typename
Table<Path, T>::iterator
find_descendants_end
(
38
typename
Table<Path, T>::iterator
parent)
39
{
40
return
find_range_end
(parent, &
Path::descendant_comparator
);
41
}
42
43
typename
Table<Path, T>::const_iterator
find_descendants_end
(
44
typename
Table<Path, T>::const_iterator
parent)
const
45
{
46
return
find_range_end
(parent, &
Path::descendant_comparator
);
47
}
48
};
49
50
51
}
// namespace Raul
52
53
#endif // RAUL_PATH_TABLE_HPP
54
Generated on Sat Mar 15 2014 20:35:30 for RAUL by
1.8.1.2