 |
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_fs_SmartFd_h
7 #define swcdb_fs_SmartFd_h
37 typedef std::shared_ptr<SmartFd>
Ptr;
41 int32_t
fd=-1, uint64_t
pos=0) {
47 int32_t
fd=-1, uint64_t
pos=0) {
53 int32_t
fd=-1, uint64_t
pos=0)
59 int32_t
fd=-1, uint64_t
pos=0) noexcept
77 uint32_t
flags() const noexcept {
82 void fd(int32_t
fd) noexcept {
87 int32_t
fd() const noexcept {
108 uint64_t
pos() const noexcept {
119 void print(std::ostream& out)
const;
137 #ifdef SWC_IMPL_SOURCE
141 #endif // swcdb_fs_SmartFd_h
static SWC_CAN_INLINE Ptr make_ptr(std::string &&filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0)
Core::Atomic< int32_t > m_fd
constexpr SWC_CAN_INLINE int32_t invalidate() noexcept
SWC_CAN_INLINE SmartFd(const std::string &filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0)
constexpr SWC_CAN_INLINE uint64_t pos() const noexcept
constexpr SWC_CAN_INLINE void pos(uint64_t pos) noexcept
static SWC_CAN_INLINE Ptr make_ptr(const std::string &filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0)
Core::Atomic< uint32_t > m_flags
SWC_CAN_INLINE SmartFd(std::string &&filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0) noexcept
Core::Atomic< uint64_t > m_pos
constexpr SWC_CAN_INLINE void store(T v) noexcept
const std::string m_filepath
The SWC-DB C++ namespace 'SWC'.
constexpr SWC_CAN_INLINE bool valid() const noexcept
constexpr SWC_CAN_INLINE uint32_t flags() const noexcept
constexpr SWC_CAN_INLINE T exchange(T value) noexcept
constexpr SWC_CAN_INLINE void forward(uint64_t nbytes) noexcept
constexpr SWC_CAN_INLINE const std::string & filepath() const noexcept
std::shared_ptr< SmartFd > Ptr
std::string to_string() const
constexpr SWC_CAN_INLINE void fd(int32_t fd) noexcept
constexpr SWC_CAN_INLINE void flags(uint32_t flags) noexcept
constexpr SWC_CAN_INLINE int32_t fd() const noexcept
constexpr SWC_CAN_INLINE T fetch_add(T v) noexcept
void print(std::ostream &out) const
virtual ~SmartFd() noexcept