Ardour  9.0-pre0-582-g084a23a80d
PBD::ID Class Reference

#include <id.h>

Public Member Functions

 ID ()
 
 ID (std::string)
 
 ID (const ID &)
 
 ID (uint64_t)
 
void reset ()
 
bool operator== (const ID &other) const
 
bool operator!= (const ID &other) const
 
bool operator== (const std::string &) const
 
bool operator== (uint64_t n) const
 
IDoperator= (std::string)
 
IDoperator= (const ID &)
 
bool operator< (const ID &other) const
 
std::string to_s () const
 

Static Public Member Functions

static uint64_t counter ()
 
static void init_counter (uint64_t val)
 
static void init ()
 

Private Member Functions

bool string_assign (std::string)
 

Private Attributes

uint64_t _id
 

Static Private Attributes

static Glib::Threads::Mutex * counter_lock
 
static uint64_t _counter
 

Detailed Description

a unique ID to identify objects numerically

Definition at line 34 of file id.h.

Constructor & Destructor Documentation

◆ ID() [1/4]

PBD::ID::ID ( )

◆ ID() [2/4]

PBD::ID::ID ( std::string  )

◆ ID() [3/4]

PBD::ID::ID ( const ID )

◆ ID() [4/4]

PBD::ID::ID ( uint64_t  )

Member Function Documentation

◆ counter()

static uint64_t PBD::ID::counter ( )
inlinestatic

Definition at line 65 of file id.h.

◆ init()

static void PBD::ID::init ( )
static

◆ init_counter()

static void PBD::ID::init_counter ( uint64_t  val)
inlinestatic

Definition at line 66 of file id.h.

◆ operator!=()

bool PBD::ID::operator!= ( const ID other) const
inline

Definition at line 47 of file id.h.

◆ operator<()

bool PBD::ID::operator< ( const ID other) const
inline

Definition at line 59 of file id.h.

◆ operator=() [1/2]

ID& PBD::ID::operator= ( const ID )

◆ operator=() [2/2]

ID& PBD::ID::operator= ( std::string  )

◆ operator==() [1/3]

bool PBD::ID::operator== ( const ID other) const
inline

Definition at line 43 of file id.h.

◆ operator==() [2/3]

bool PBD::ID::operator== ( const std::string &  ) const

◆ operator==() [3/3]

bool PBD::ID::operator== ( uint64_t  n) const
inline

Definition at line 52 of file id.h.

◆ reset()

void PBD::ID::reset ( )

◆ string_assign()

bool PBD::ID::string_assign ( std::string  )
private

◆ to_s()

std::string PBD::ID::to_s ( ) const

Member Data Documentation

◆ _counter

uint64_t PBD::ID::_counter
staticprivate

Definition at line 74 of file id.h.

◆ _id

uint64_t PBD::ID::_id
private

Definition at line 70 of file id.h.

◆ counter_lock

Glib::Threads::Mutex* PBD::ID::counter_lock
staticprivate

Definition at line 73 of file id.h.


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