Cbeam
Loading...
Searching...
No Matches
cbeam::memory Namespace Reference

Houses abstractions for shared-memory and interprocess data exchange. This includes interprocess_shared_memory for OS-level memory segments and unified resource sharing, along with helper classes in other namespaces. It highlights stable reference counting and safe pointer conversions for robust cross-process operations. More...

Classes

class  interprocess_shared_memory
 Provides a unified, platform-independent interface for managing shared memory segments. More...
 
class  pointer
 The pointer class is one of the types supported by container::xpod::type. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const pointer &p)
 Outputs the pointer object as its hex string representation.
 
bool operator== (const pointer &lhs, const pointer &rhs)
 Equality comparison operator for pointer.
 
bool operator!= (const pointer &lhs, const pointer &rhs)
 Inequality comparison operator for pointer.
 
bool operator< (const pointer &lhs, const pointer &rhs)
 Less-than comparison operator for pointer.
 
bool operator<= (const pointer &lhs, const pointer &rhs)
 Less-or-equal comparison operator for pointer.
 
bool operator> (const pointer &lhs, const pointer &rhs)
 Greater-than comparison operator for pointer.
 
bool operator>= (const pointer &lhs, const pointer &rhs)
 Greater-or-equal comparison operator for pointer.
 

Detailed Description

Houses abstractions for shared-memory and interprocess data exchange. This includes interprocess_shared_memory for OS-level memory segments and unified resource sharing, along with helper classes in other namespaces. It highlights stable reference counting and safe pointer conversions for robust cross-process operations.

Function Documentation

◆ operator!=()

bool cbeam::memory::operator!= ( const pointer & lhs,
const pointer & rhs )
inline

Inequality comparison operator for pointer.

◆ operator<()

bool cbeam::memory::operator< ( const pointer & lhs,
const pointer & rhs )
inline

Less-than comparison operator for pointer.

Compares the underlying memory addresses.

◆ operator<<()

std::ostream & cbeam::memory::operator<< ( std::ostream & os,
const pointer & p )
inline

Outputs the pointer object as its hex string representation.

Parameters
osThe output stream.
pThe pointer object to output.
Returns
std::ostream& A reference to the output stream for chaining.

◆ operator<=()

bool cbeam::memory::operator<= ( const pointer & lhs,
const pointer & rhs )
inline

Less-or-equal comparison operator for pointer.

◆ operator==()

bool cbeam::memory::operator== ( const pointer & lhs,
const pointer & rhs )
inline

Equality comparison operator for pointer.

Parameters
lhsLeft-hand side pointer.
rhsRight-hand side pointer.
Returns
true if both pointers refer to the same memory address, false otherwise.

◆ operator>()

bool cbeam::memory::operator> ( const pointer & lhs,
const pointer & rhs )
inline

Greater-than comparison operator for pointer.

◆ operator>=()

bool cbeam::memory::operator>= ( const pointer & lhs,
const pointer & rhs )
inline

Greater-or-equal comparison operator for pointer.