Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chainbase::oid< T > Class Template Reference

#include <chainbase.hpp>

Public Member Functions

 oid (int64_t i=0)
 
oidoperator++ ()
 

Public Attributes

int64_t _id = 0
 

Friends

bool operator< (const oid &a, const oid &b)
 
bool operator> (const oid &a, const oid &b)
 
bool operator<= (const oid &a, const oid &b)
 
bool operator>= (const oid &a, const oid &b)
 
bool operator== (const oid &a, const oid &b)
 
bool operator!= (const oid &a, const oid &b)
 
std::ostream & operator<< (std::ostream &s, const oid &id)
 

Detailed Description

template<typename T>
class chainbase::oid< T >

Object ID type that includes the type of the object it references

Definition at line 70 of file chainbase.hpp.

Constructor & Destructor Documentation

◆ oid()

template<typename T >
chainbase::oid< T >::oid ( int64_t i = 0)
inline

Definition at line 72 of file chainbase.hpp.

72:_id(i){}

Member Function Documentation

◆ operator++()

template<typename T >
oid & chainbase::oid< T >::operator++ ( )
inline

Definition at line 74 of file chainbase.hpp.

74{ ++_id; return *this; }

Friends And Related Symbol Documentation

◆ operator!=

template<typename T >
bool operator!= ( const oid< T > & a,
const oid< T > & b )
friend

Definition at line 81 of file chainbase.hpp.

81{ return a._id != b._id; }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181

◆ operator<

template<typename T >
bool operator< ( const oid< T > & a,
const oid< T > & b )
friend

Definition at line 76 of file chainbase.hpp.

76{ return a._id < b._id; }

◆ operator<<

template<typename T >
std::ostream & operator<< ( std::ostream & s,
const oid< T > & id )
friend

Definition at line 82 of file chainbase.hpp.

82 {
83 s << boost::core::demangle(typeid(oid<T>).name()) << '(' << id._id << ')'; return s;
84 }
std::string name
oid(int64_t i=0)
Definition chainbase.hpp:72
char * s

◆ operator<=

template<typename T >
bool operator<= ( const oid< T > & a,
const oid< T > & b )
friend

Definition at line 78 of file chainbase.hpp.

78{ return a._id <= b._id; }

◆ operator==

template<typename T >
bool operator== ( const oid< T > & a,
const oid< T > & b )
friend

Definition at line 80 of file chainbase.hpp.

80{ return a._id == b._id; }

◆ operator>

template<typename T >
bool operator> ( const oid< T > & a,
const oid< T > & b )
friend

Definition at line 77 of file chainbase.hpp.

77{ return a._id > b._id; }

◆ operator>=

template<typename T >
bool operator>= ( const oid< T > & a,
const oid< T > & b )
friend

Definition at line 79 of file chainbase.hpp.

79{ return a._id >= b._id; }

Member Data Documentation

◆ _id

template<typename T >
int64_t chainbase::oid< T >::_id = 0

Definition at line 86 of file chainbase.hpp.


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