class gpr::capi::Atoms¶
#include <gpr/capi/gpridge.hpp>
class Atoms {
public:
// construction
Atoms();
Atoms(gpr_atoms_t h, adopt_t);
Atoms(gpr_atoms_t h, borrow_t);
Atoms(const Atoms&);
Atoms(Atoms&& other);
~Atoms();
// methods
Atoms& operator=(const Atoms&);
Atoms& operator=(Atoms&& other);
void reset();
gpr_atoms_t release();
bool owns() const;
gpr_atoms_t handle() const;
operator bool() const;
int n_moving() const;
int n_pairtypes() const;
static Atoms simple(int n_atoms);
static Atoms create(const AtomsConfig& config);
};