UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
ufo::WriteBuffer Class Reference
Inheritance diagram for ufo::WriteBuffer:
ufo::BaseBuffer ufo::Buffer

Classes

struct  FreeDeleter
 

Public Types

using offset_type = BaseBuffer::offset_type
 
using pos_type = BaseBuffer::pos_type
 
using size_type = BaseBuffer::size_type
 
- Public Types inherited from ufo::BaseBuffer
using offset_type = std::intmax_t
 
using pos_type = std::uintmax_t
 
using size_type = std::size_t
 

Public Member Functions

 WriteBuffer (WriteBuffer &&)=default
 
 WriteBuffer (WriteBuffer const &other)
 
size_type capacity () const noexcept
 
virtual void clear ()
 
std::byte * data ()
 
WriteBufferoperator= (WriteBuffer &&)=default
 
WriteBufferoperator= (WriteBuffer const &rhs)
 
void reserve (size_type new_cap)
 
WriteBufferwrite (std::istream &in, size_type count)
 
template<class T >
WriteBufferwrite (T const &t)
 
WriteBufferwrite (void const *src, size_type count)
 
void writeAt (offset_type off, IODir dir, std::istream &in, size_type count)
 
template<class T >
void writeAt (offset_type off, IODir dir, T const &t)
 
void writeAt (offset_type off, IODir dir, void const *src, size_type count)
 
void writeAt (pos_type pos, std::istream &in, size_type count)
 
template<class T >
void writeAt (pos_type pos, T const &t)
 
void writeAt (pos_type pos, void const *src, size_type count)
 
size_type writeLeft () const noexcept
 
pos_type writePos () const noexcept
 
WriteBufferwriteSeek (offset_type off, IODir dir) noexcept
 
WriteBufferwriteSeek (pos_type pos) noexcept
 
template<class T >
WriteBufferwriteSeek (T const &t, offset_type count_signed, IODir dir) noexcept
 
template<class T >
WriteBufferwriteSeek (T const &t, pos_type count) noexcept
 
- Public Member Functions inherited from ufo::BaseBuffer
constexpr std::byte const * data () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr size_type size () const noexcept
 

Protected Attributes

size_type cap_ {}
 
std::unique_ptr< std::byte, FreeDeleterdata_
 
pos_type pos_ {}
 
size_type size_ {}
 
- Protected Attributes inherited from ufo::BaseBuffer
std::byte const * data_ = nullptr
 
size_type size_ {}
 

Additional Inherited Members

- Protected Member Functions inherited from ufo::BaseBuffer
constexpr BaseBuffer (std::byte const *data, size_type size)
 
constexpr pos_type pos (pos_type pos, offset_type off, IODir dir) const noexcept
 

Detailed Description

Definition at line 56 of file write_buffer.hpp.

Member Typedef Documentation

◆ offset_type

using ufo::WriteBuffer::offset_type = BaseBuffer::offset_type

Definition at line 61 of file write_buffer.hpp.

◆ pos_type

using ufo::WriteBuffer::pos_type = BaseBuffer::pos_type

Definition at line 60 of file write_buffer.hpp.

◆ size_type

using ufo::WriteBuffer::size_type = BaseBuffer::size_type

Definition at line 59 of file write_buffer.hpp.

Constructor & Destructor Documentation

◆ WriteBuffer()

ufo::WriteBuffer::WriteBuffer ( WriteBuffer const &  other)

Definition at line 51 of file write_buffer.cpp.

Member Function Documentation

◆ capacity()

WriteBuffer::size_type ufo::WriteBuffer::capacity ( ) const
noexcept

Definition at line 144 of file write_buffer.cpp.

◆ clear()

void ufo::WriteBuffer::clear ( )
virtual

Definition at line 136 of file write_buffer.cpp.

◆ data()

std::byte * ufo::WriteBuffer::data ( )

Definition at line 142 of file write_buffer.cpp.

◆ operator=()

WriteBuffer & ufo::WriteBuffer::operator= ( WriteBuffer const &  rhs)

Definition at line 58 of file write_buffer.cpp.

◆ reserve()

void ufo::WriteBuffer::reserve ( size_type  new_cap)

Definition at line 111 of file write_buffer.cpp.

◆ write() [1/3]

WriteBuffer & ufo::WriteBuffer::write ( std::istream &  in,
size_type  count 
)

Definition at line 75 of file write_buffer.cpp.

◆ write() [2/3]

template<class T >
WriteBuffer & ufo::WriteBuffer::write ( T const &  t)
inline

Definition at line 73 of file write_buffer.hpp.

◆ write() [3/3]

WriteBuffer & ufo::WriteBuffer::write ( void const *  src,
size_type  count 
)

Definition at line 68 of file write_buffer.cpp.

◆ writeAt() [1/6]

void ufo::WriteBuffer::writeAt ( offset_type  off,
IODir  dir,
std::istream &  in,
size_type  count 
)

Definition at line 106 of file write_buffer.cpp.

◆ writeAt() [2/6]

template<class T >
void ufo::WriteBuffer::writeAt ( offset_type  off,
IODir  dir,
T const &  t 
)
inline

Definition at line 93 of file write_buffer.hpp.

◆ writeAt() [3/6]

void ufo::WriteBuffer::writeAt ( offset_type  off,
IODir  dir,
void const *  src,
size_type  count 
)

Definition at line 101 of file write_buffer.cpp.

◆ writeAt() [4/6]

void ufo::WriteBuffer::writeAt ( pos_type  pos,
std::istream &  in,
size_type  count 
)

Definition at line 91 of file write_buffer.cpp.

◆ writeAt() [5/6]

template<class T >
void ufo::WriteBuffer::writeAt ( pos_type  pos,
T const &  t 
)
inline

Definition at line 83 of file write_buffer.hpp.

◆ writeAt() [6/6]

void ufo::WriteBuffer::writeAt ( pos_type  pos,
void const *  src,
size_type  count 
)

Definition at line 82 of file write_buffer.cpp.

◆ writeLeft()

WriteBuffer::size_type ufo::WriteBuffer::writeLeft ( ) const
noexcept

Definition at line 159 of file write_buffer.cpp.

◆ writePos()

WriteBuffer::pos_type ufo::WriteBuffer::writePos ( ) const
noexcept

Definition at line 146 of file write_buffer.cpp.

◆ writeSeek() [1/4]

WriteBuffer & ufo::WriteBuffer::writeSeek ( offset_type  off,
IODir  dir 
)
noexcept

Definition at line 154 of file write_buffer.cpp.

◆ writeSeek() [2/4]

WriteBuffer & ufo::WriteBuffer::writeSeek ( pos_type  pos)
noexcept

Definition at line 148 of file write_buffer.cpp.

◆ writeSeek() [3/4]

template<class T >
WriteBuffer & ufo::WriteBuffer::writeSeek ( T const &  t,
offset_type  count_signed,
IODir  dir 
)
inlinenoexcept

Definition at line 123 of file write_buffer.hpp.

◆ writeSeek() [4/4]

template<class T >
WriteBuffer & ufo::WriteBuffer::writeSeek ( T const &  t,
pos_type  count 
)
inlinenoexcept

Definition at line 117 of file write_buffer.hpp.

Member Data Documentation

◆ cap_

size_type ufo::WriteBuffer::cap_ {}
protected

Definition at line 137 of file write_buffer.hpp.

◆ data_

std::unique_ptr<std::byte, FreeDeleter> ufo::WriteBuffer::data_
protected

Definition at line 135 of file write_buffer.hpp.

◆ pos_

pos_type ufo::WriteBuffer::pos_ {}
protected

Definition at line 138 of file write_buffer.hpp.

◆ size_

size_type ufo::WriteBuffer::size_ {}
protected

Definition at line 136 of file write_buffer.hpp.


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