File: atom.hpp

package info (click to toggle)
polybar 3.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,108 kB
  • sloc: cpp: 30,424; python: 3,750; sh: 284; makefile: 83
file content (34 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef XPP_ATOM_HPP
#define XPP_ATOM_HPP

#include "xpp/proto/x.hpp"
#include "generic/resource.hpp"

namespace xpp {

template<typename Connection, template<typename, typename> class ... Interfaces>
class atom
  : public xpp::generic::resource<Connection, xcb_atom_t,
                                  xpp::x::atom, Interfaces ...>
{
  protected:
    using base = xpp::generic::resource<Connection, xcb_atom_t, Interfaces ...>;

  public:
    using base::base;
    using base::operator=;
};

namespace generic {

template<typename Connection, template<typename, typename> class ... Interfaces>
struct traits<xpp::atom<Connection, Interfaces ...>>
{
  typedef xcb_atom_t type;
};

} // namespace generic

} // namespace xpp

#endif // XPP_ATOM_HPP