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

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::ReadBuffer
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 Types inherited from ufo::WriteBuffer
using offset_type = BaseBuffer::offset_type
 
using pos_type = BaseBuffer::pos_type
 
using size_type = BaseBuffer::size_type
 

Public Member Functions

virtual void clear ()
 
- Public Member Functions inherited from ufo::ReadBuffer
 ReadBuffer (std::byte const *data, size_type count)
 
ReadBufferread (std::ostream &out, size_type count)
 
template<class T >
ReadBufferread (T &t)
 
ReadBufferread (void *dest, size_type count)
 
void readAt (offset_type off, IODir dir, std::ostream &out, size_type count) const
 
template<class T >
void readAt (offset_type off, IODir dir, T &t) const
 
void readAt (offset_type off, IODir dir, void *dest, size_type count) const
 
void readAt (pos_type pos, std::ostream &out, size_type count) const
 
template<class T >
void readAt (pos_type pos, T &t) const
 
void readAt (pos_type pos, void *dest, size_type count) const
 
size_type readLeft () const noexcept
 
bool readLine (std::string &line)
 
pos_type readPos () const noexcept
 
ReadBufferreadSeek (offset_type off, IODir dir) noexcept
 
ReadBufferreadSeek (pos_type pos) noexcept
 
template<class T >
ReadBufferreadSeek (T const &t, offset_type count_signed, IODir dir) noexcept
 
template<class T >
ReadBufferreadSeek (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
 
- Public Member Functions inherited from ufo::WriteBuffer
 WriteBuffer (WriteBuffer &&)=default
 
 WriteBuffer (WriteBuffer const &other)
 
size_type capacity () const noexcept
 
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
 

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
 
- Protected Attributes inherited from ufo::ReadBuffer
pos_type pos_ {}
 
- Protected Attributes inherited from ufo::BaseBuffer
std::byte const * data_ = nullptr
 
size_type size_ {}
 
- Protected Attributes inherited from ufo::WriteBuffer
size_type cap_ {}
 
std::unique_ptr< std::byte, FreeDeleterdata_
 
pos_type pos_ {}
 
size_type size_ {}
 

Detailed Description

Definition at line 54 of file buffer.hpp.

Member Typedef Documentation

◆ offset_type

using ufo::Buffer::offset_type = BaseBuffer::offset_type

Definition at line 61 of file buffer.hpp.

◆ pos_type

using ufo::Buffer::pos_type = BaseBuffer::pos_type

Definition at line 60 of file buffer.hpp.

◆ size_type

using ufo::Buffer::size_type = BaseBuffer::size_type

Definition at line 59 of file buffer.hpp.

Member Function Documentation

◆ clear()

void ufo::Buffer::clear ( )
virtual

Reimplemented from ufo::WriteBuffer.

Definition at line 47 of file buffer.cpp.


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