foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields
pfc::fdSet

#include <nix-objects.h>

Public Member Functions

void clear ()
 
void operator+= (int fd)
 
void operator+= (fdSet const &other)
 
void operator-= (int fd)
 
bool operator[] (int fd)
 

Data Fields

std::set< int > m_fds
 

Detailed Description

Definition at line 39 of file nix-objects.h.

Member Function Documentation

void pfc::fdSet::clear ( )

Definition at line 84 of file nix-objects.cpp.

84  {
85  m_fds.clear();
86  }
std::set< int > m_fds
Definition: nix-objects.h:49
void pfc::fdSet::operator+= ( int  fd)

Definition at line 75 of file nix-objects.cpp.

75  {
76  m_fds.insert( fd );
77  }
std::set< int > m_fds
Definition: nix-objects.h:49
void pfc::fdSet::operator+= ( fdSet const &  other)

Definition at line 88 of file nix-objects.cpp.

88  {
89  for(auto i = other.m_fds.begin(); i != other.m_fds.end(); ++ i ) {
90  (*this) += *i;
91  }
92  }
void pfc::fdSet::operator-= ( int  fd)

Definition at line 78 of file nix-objects.cpp.

78  {
79  m_fds.erase(fd);
80  }
std::set< int > m_fds
Definition: nix-objects.h:49
bool pfc::fdSet::operator[] ( int  fd)

Definition at line 81 of file nix-objects.cpp.

81  {
82  return m_fds.find( fd ) != m_fds.end();
83  }
std::set< int > m_fds
Definition: nix-objects.h:49

Field Documentation

std::set<int> pfc::fdSet::m_fds

Definition at line 49 of file nix-objects.h.


The documentation for this class was generated from the following files: