Metall v0.30
A persistent memory allocator for data-centric analytics
 
Loading...
Searching...
No Matches
metall Namespace Reference

The top level of namespace of Metall. More...

Namespaces

namespace  attraccs_detail
 Namespace for the details of attribute accessor.
 
namespace  container
 Namespace for Metall container.
 
namespace  json
 Namespace for Metall JSON container, which is in an experimental phase.
 
namespace  utility
 Namespace for utility items.
 

Classes

class  anonymous_object_attr_accessor
 
class  basic_manager
 A generalized Metall manager class. More...
 
struct  create_only_t
 Tag type to create the segment always. The existing segment with the same name is over written. More...
 
class  logger
 
class  named_object_attr_accessor
 Objet attribute accessor for named object. More...
 
struct  open_only_t
 Tag type to open an already created segment. More...
 
struct  open_read_only_t
 Tag type to open an already created segment as read only. More...
 
class  stl_allocator
 A STL compatible allocator. More...
 
class  unique_object_attr_accessor
 Objet attribute accessor for unique object. More...
 

Typedefs

using manager = basic_manager<>
 Default Metall manager class which is an alias of basic_manager with the default template parameters.
 
template<typename T >
using offset_ptr = boost::interprocess::offset_ptr< T >
 Holds an offset between the address pointing at and itself.
 
using version_type = uint32_t
 Variable type to handle a version data.
 

Functions

template<typename T , typename kernel >
bool operator== (const stl_allocator< T, kernel > &rhd, const stl_allocator< T, kernel > &lhd)
 
template<typename T , typename kernel >
bool operator!= (const stl_allocator< T, kernel > &rhd, const stl_allocator< T, kernel > &lhd)
 
std::string to_version_string (const version_type version)
 Converts a raw version number to a std::string with format 'MAJOR.MINOR.PATCH'.
 

Detailed Description

The top level of namespace of Metall.

Typedef Documentation

◆ manager

using metall::manager = typedef basic_manager<>

Default Metall manager class which is an alias of basic_manager with the default template parameters.

◆ offset_ptr

template<typename T >
using metall::offset_ptr = typedef boost::interprocess::offset_ptr<T>

Holds an offset between the address pointing at and itself.

Template Parameters
TA type.

◆ version_type

using metall::version_type = typedef uint32_t

Variable type to handle a version data.

Function Documentation

◆ operator==()

template<typename T , typename kernel >
bool metall::operator== ( const stl_allocator< T, kernel > &  rhd,
const stl_allocator< T, kernel > &  lhd 
)
inline

◆ operator!=()

template<typename T , typename kernel >
bool metall::operator!= ( const stl_allocator< T, kernel > &  rhd,
const stl_allocator< T, kernel > &  lhd 
)
inline

◆ to_version_string()

std::string metall::to_version_string ( const version_type  version)
inline

Converts a raw version number to a std::string with format 'MAJOR.MINOR.PATCH'.

// Example usage
std::string ver_string = to_version_string(METALL_VERSION);
std::string to_version_string(const version_type version)
Converts a raw version number to a std::string with format 'MAJOR.MINOR.PATCH'.
Definition version.hpp:42
#define METALL_VERSION
Metall version. Metall follows the Semantic Versioning 2.0.0.
Definition version.hpp:17
Parameters
versionA version number.
Returns
A version string.