demux: adaptive: remove left indirect returns since lock removal
[vlc.git] / modules / demux / adaptive / ID.hpp
blobbd73a5923db6259c22d33295d6cb1ef882dfef55
1 /*
2 * ID.hpp
3 *****************************************************************************
4 * Copyright (C) 2015 - VideoLAN and VLC authors
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
20 #ifndef ID_HPP
21 #define ID_HPP
23 #include <string>
24 #include <inttypes.h>
26 namespace adaptive
28 class ID
30 public:
31 ID(const std::string &);
32 ID(uint64_t = 0);
33 bool operator==(const ID &) const;
34 bool operator<(const ID &) const;
35 std::string str() const;
37 private:
38 std::string id;
41 class Unique
43 public:
44 const ID & getID() const;
45 void setID(const ID &);
47 protected:
48 ID id;
52 #endif // ID_HPP