summaryrefslogtreecommitdiff
path: root/swig/Dependencies.i
blob: f3fc44f60d9e6d0ef5cf7c586d46a162a36d50a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

%ignore Dependencies::operator[];

struct Dependencies
{
    Capabilities & operator[]( Dep idx_r )
    { return _capsets[idx_r]; }

    const Capabilities & operator[]( Dep idx_r ) const
    { return const_cast<std::map<Dep,Capabilities>&>(_capsets)[idx_r]; }
};