Everett
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
everett::private_construction< P > Struct Template Reference

#include <private_construction.h>

Classes

struct  held
 

Public Member Functions

 private_construction (private_construction const &)=delete
 
private_construction & operator= (private_construction const &)=delete
 
 ~private_construction ()
 
catalog_options options () const
 
object_id const & identity () const &noexcept
 
object_id const & identity () const &&=delete
 

Static Public Member Functions

static std::shared_ptr< private_construction > create (std::filesystem::path const &root)
 
static std::size_t recover (std::filesystem::path const &root)
 

Private Member Functions

 private_construction (std::filesystem::path root, object_id id)
 
std::filesystem::path path () const
 

Static Private Member Functions

static std::filesystem::path path (std::filesystem::path const &root, object_id const &id)
 
static void close (int fd) noexcept
 
static int acquire (std::filesystem::path const &path, bool create)
 
static void sync_name (std::filesystem::path const &root, int fd)
 
static void remove_name (std::filesystem::path const &root, std::filesystem::path const &path)
 

Private Attributes

std::filesystem::path root_
 
object_id id_
 
int lease_ = -1
 

Constructor & Destructor Documentation

◆ private_construction() [1/2]

template<class P >
everett::private_construction< P >::private_construction ( private_construction< P > const &  )
delete

◆ ~private_construction()

template<class P >
everett::private_construction< P >::~private_construction ( )
inline

◆ private_construction() [2/2]

template<class P >
everett::private_construction< P >::private_construction ( std::filesystem::path  root,
object_id  id 
)
inlineprivate

Member Function Documentation

◆ acquire()

template<class P >
static int everett::private_construction< P >::acquire ( std::filesystem::path const &  path,
bool  create 
)
inlinestaticprivate

◆ close()

template<class P >
static void everett::private_construction< P >::close ( int  fd)
inlinestaticprivatenoexcept

◆ create()

template<class P >
static std::shared_ptr< private_construction > everett::private_construction< P >::create ( std::filesystem::path const &  root)
inlinestatic

◆ identity() [1/2]

template<class P >
object_id const & everett::private_construction< P >::identity ( ) const &&
delete

◆ identity() [2/2]

template<class P >
object_id const & everett::private_construction< P >::identity ( ) const &
inlinenoexcept

◆ operator=()

template<class P >
private_construction & everett::private_construction< P >::operator= ( private_construction< P > const &  )
delete

◆ options()

template<class P >
catalog_options everett::private_construction< P >::options ( ) const
inline

◆ path() [1/2]

template<class P >
std::filesystem::path everett::private_construction< P >::path ( ) const
inlineprivate

◆ path() [2/2]

template<class P >
static std::filesystem::path everett::private_construction< P >::path ( std::filesystem::path const &  root,
object_id const &  id 
)
inlinestaticprivate

◆ recover()

template<class P >
static std::size_t everett::private_construction< P >::recover ( std::filesystem::path const &  root)
inlinestatic

◆ remove_name()

template<class P >
static void everett::private_construction< P >::remove_name ( std::filesystem::path const &  root,
std::filesystem::path const &  path 
)
inlinestaticprivate

◆ sync_name()

template<class P >
static void everett::private_construction< P >::sync_name ( std::filesystem::path const &  root,
int  fd 
)
inlinestaticprivate

Member Data Documentation

◆ id_

template<class P >
object_id everett::private_construction< P >::id_
private

◆ lease_

template<class P >
int everett::private_construction< P >::lease_ = -1
private

◆ root_

template<class P >
std::filesystem::path everett::private_construction< P >::root_
private

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