MRPT
1.9.9
|
Namespaces | |
detail | |
internal | |
metaprogramming | |
Classes | |
class | CArchive |
Virtual base class for "archives": classes abstracting I/O streams. More... | |
class | CArchiveStreamBase |
CArchive for mrpt::io::CStream classes (use as template argument). More... | |
class | CArchiveStreamBase< const std::vector< uint8_t > > |
Read-only version of the wrapper. More... | |
class | CArchiveStreamBase< std::iostream > |
Specialization for std::iostream. More... | |
class | CArchiveStreamBase< std::istream > |
Specialization for std::istream. More... | |
class | CArchiveStreamBase< std::ostream > |
Specialization for std::ostream. More... | |
class | CArchiveStreamBase< std::vector< uint8_t > > |
Specialization for std::vector, suitable for read/write, using the vector<uint8_t> as the underlaying stream container. More... | |
class | CExceptionEOF |
Used in mrpt::serialization::CArchive. More... | |
class | CMessage |
A class that contain generic messages, that can be sent and received from a "CClientTCPSocket" object. More... | |
class | CSchemeArchive |
Base template class for schema-capable "archives", e.g. More... | |
class | CSchemeArchiveBase |
Virtual base class for "schematic archives" (JSON, XML,...) More... | |
class | CSchemeArchiveBase_impl |
Pure virtual class carrying the implementation of CSchemeArchiveBase as per the PIMPL idiom. More... | |
class | CSerializable |
The virtual base class which provides a unified interface for all persistent objects in MRPT. More... | |
Typedefs | |
template<class T , class... Ts> | |
using | is_any = std::disjunction< std::is_same< T, Ts >... > |
template<typename T > | |
using | is_simple_type = is_any< T, bool, uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t, float, double, long double > |
template<typename T > | |
using | is_map_like = std::is_same< typename T::value_type, std::pair< const typename T::key_type, typename T::mapped_type > > |
template<typename T > | |
using | is_map = std::is_same< T, typename std::map< typename T::key_type, typename T::mapped_type, typename T::key_compare, typename T::allocator_type > > |
template<typename T > | |
using | is_multimap = std::is_same< T, typename std::multimap< typename T::key_type, typename T::mapped_type, typename T::key_compare, typename T::allocator_type > > |
Functions | |
CArchive & | operator>> (CArchive &s, mrpt::aligned_std_vector< float > &a) |
CArchive & | operator<< (CArchive &s, const mrpt::aligned_std_vector< float > &a) |
CArchive & | operator>> (CArchive &s, std::vector< float > &a) |
CArchive & | operator<< (CArchive &s, const std::vector< float > &a) |
template<typename T , std::enable_if_t< is_simple_type< T >::value, int > = 0> | |
CArchive & | operator<< (CArchive &out, const T &obj) |
Template method to serialize an associative STL container. More... | |
template<typename T , std::enable_if_t< is_simple_type< T >::value, int > = 0> | |
CArchive & | operator>> (CArchive &in, T &obj) |
Template method to deserialize an associative STL container. More... | |
CArchive & | operator<< (CArchive &out, const mrpt::Clock::time_point &a) |
CArchive & | operator>> (CArchive &in, mrpt::Clock::time_point &a) |
CArchive & | operator<< (CArchive &s, const std::string &str) |
CArchive & | operator<< (CArchive &, const std::vector< int32_t > &a) |
CArchive & | operator<< (CArchive &, const std::vector< uint32_t > &a) |
CArchive & | operator<< (CArchive &, const std::vector< uint16_t > &a) |
CArchive & | operator<< (CArchive &, const std::vector< int16_t > &a) |
CArchive & | operator<< (CArchive &, const std::vector< int64_t > &a) |
CArchive & | operator<< (CArchive &, const std::vector< uint8_t > &a) |
CArchive & | operator<< (CArchive &, const std::vector< int8_t > &a) |
CArchive & | operator<< (CArchive &, const std::vector< bool > &a) |
CArchive & | operator<< (CArchive &, const std::vector< std::string > &) |
CArchive & | operator<< (CArchive &, const std::vector< size_t > &a) |
CArchive & | operator>> (CArchive &in, std::string &str) |
CArchive & | operator>> (CArchive &in, std::vector< int32_t > &a) |
CArchive & | operator>> (CArchive &in, std::vector< uint32_t > &a) |
CArchive & | operator>> (CArchive &in, std::vector< uint16_t > &a) |
CArchive & | operator>> (CArchive &in, std::vector< int16_t > &a) |
CArchive & | operator>> (CArchive &in, std::vector< int64_t > &a) |
CArchive & | operator>> (CArchive &in, std::vector< uint8_t > &a) |
CArchive & | operator>> (CArchive &in, std::vector< int8_t > &a) |
CArchive & | operator>> (CArchive &in, std::vector< bool > &a) |
CArchive & | operator>> (CArchive &in, std::vector< std::string > &a) |
CArchive & | operator>> (CArchive &s, std::vector< double > &a) |
CArchive & | operator<< (CArchive &s, const std::vector< double > &a) |
CArchive & | operator>> (CArchive &s, std::vector< size_t > &a) |
template<typename T , std::enable_if_t< std::is_base_of_v< mrpt::serialization::CSerializable, T >> * = nullptr> | |
CArchive & | operator>> (CArchive &in, std::shared_ptr< T > &pObj) |
Read a smart pointer to a non-CSerializable (POD,...) data type. More... | |
template<typename... T> | |
CArchive & | operator>> (CArchive &in, typename std::variant< T... > &pObj) |
template<typename... T> | |
CArchive & | operator<< (CArchive &out, const typename std::variant< T... > &pObj) |
template<class T , std::enable_if_t<!std::is_base_of_v< mrpt::serialization::CSerializable, T >> * = nullptr> | |
CArchive & | operator<< (CArchive &out, const std::shared_ptr< T > &pObj) |
Write a shared_ptr to a non-CSerializable object. More... | |
template<class STREAM > | |
CArchiveStreamBase< STREAM > | archiveFrom (STREAM &s) |
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream , std::istream , std::ostream , std::stringstream . More... | |
template<class STREAM > | |
CArchive::Ptr | archivePtrFrom (STREAM &s) |
Like archiveFrom(), returning a shared_ptr<>. More... | |
template<class STREAM > | |
CArchive::UniquePtr | archiveUniquePtrFrom (STREAM &s) |
Like archiveFrom(), returning a unique_ptr<>. More... | |
CSchemeArchiveBase | archiveJSON () |
Returns an archive for reading/writing in JSON format. More... | |
std::ostream & | operator<< (std::ostream &out, const CSchemeArchiveBase &a) |
std::istream & | operator>> (std::istream &in, CSchemeArchiveBase &a) |
void | ObjectToOctetVector (const CSerializable *o, std::vector< uint8_t > &out_vector) |
Converts (serializes) an MRPT object into an array of bytes. More... | |
void | OctetVectorToObject (const std::vector< uint8_t > &in_data, CSerializable::Ptr &obj) |
Converts back (de-serializes) a sequence of binary data into a MRPT object, without prior information about the object's class. More... | |
template<class T > | |
CArchive & | operator<< (CArchive &out, const std::optional< T > &obj) |
Template to serialize a std::optional<T> More... | |
template<class T > | |
CArchive & | operator>> (CArchive &in, std::optional< T > &obj) |
Template to deserialize a std::optional<T> More... | |
template<typename T , std::enable_if_t< is_map< T >::value, int > = 0> | |
std::string | containerName () |
template<class T , size_t N> | |
CArchive & | operator<< (CArchive &out, const std::array< T, N > &obj) |
Template method to serialize a std::array<T,N> More... | |
template<class T , size_t N> | |
CArchive & | operator>> (CArchive &in, std::array< T, N > &obj) |
Template method to deserialize a std::array<T,N> More... | |
template<class T1 , class T2 > | |
CArchive & | operator<< (CArchive &out, const std::pair< T1, T2 > &obj) |
Template method to serialize a STL pair. More... | |
template<class T1 , class T2 > | |
CArchive & | operator>> (CArchive &in, std::pair< T1, T2 > &obj) |
Template method to deserialize a STL pair. More... | |
template<typename ZMQ_SOCKET_TYPE > | |
void | mrpt_send_to_zmq (ZMQ_SOCKET_TYPE zmq_socket, const mrpt::serialization::CSerializable &obj, const size_t max_packet_len=0) |
Send an MRPT object to a ZMQ socket. More... | |
template<typename ZMQ_SOCKET_TYPE , typename VECTOR_MSG_T > | |
bool | mrpt_recv_from_zmq_buf (ZMQ_SOCKET_TYPE zmq_socket, VECTOR_MSG_T &out_lst_msgs, mrpt::io::CMemoryStream &target_buf, bool dont_wait, size_t *rx_obj_length_in_bytes) |
Users may normally call mrpt_recv_from_zmq() and mrpt_recv_from_zmq_into(). More... | |
template<typename ZMQ_SOCKET_TYPE > | |
mrpt::serialization::CSerializable::Ptr | mrpt_recv_from_zmq (ZMQ_SOCKET_TYPE zmq_socket, bool dont_wait=false, size_t *rx_obj_length_in_bytes=nullptr) |
Receives an MRPT object from a ZMQ socket, determining the type of the object on-the-fly. More... | |
template<typename ZMQ_SOCKET_TYPE > | |
bool | mrpt_recv_from_zmq_into (ZMQ_SOCKET_TYPE zmq_socket, mrpt::serialization::CSerializable &target_object, bool dont_wait=false, size_t *rx_obj_length_in_bytes=nullptr) |
Like mrpt_recv_from_zmq() but without dynamically allocating the received object, more efficient to use if the type of the received object is known in advance. More... | |
using mrpt::serialization::is_any = typedef std::disjunction<std::is_same<T, Ts>...> |
Definition at line 398 of file CArchive.h.
using mrpt::serialization::is_simple_type = typedef is_any< T, bool, uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t, float, double, long double> |
Definition at line 403 of file CArchive.h.
CArchiveStreamBase<STREAM> mrpt::serialization::archiveFrom | ( | STREAM & | s | ) |
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream
, std::istream
, std::ostream
, std::stringstream
.
std::{.*}stream
requires including <mrpt/serialization/archiveFrom_std_streams.h>
and explicitly specifying the template parameter like: archiveFrom<std::istream>
or archiveFrom<std::ostream>
. Definition at line 592 of file CArchive.h.
Referenced by mrpt::hmtslam::CTopLCDetector_GridMatching::computeTopologicalObservationModel(), mrpt::hwdrivers::CServoeNeck::disableServo(), mrpt::apps::MonteCarloLocalization_Base::do_pf_localization(), mrpt::hwdrivers::CServoeNeck::enableServo(), mrpt::obs::stock_observations::exampleImage(), CGraphSlamHandler< GRAPH_T >::execute(), mrpt::hmtslam::CHMTSLAM::generateLogFiles(), mrpt::hwdrivers::CRoboticHeadInterface::Get3SoundBuffer(), mrpt::hwdrivers::CRoboticHeadInterface::GetGain(), mrpt::hwdrivers::CCameraSensor::getNextFrame(), mrpt::hwdrivers::CBoardSonars::getObservation(), mrpt::hwdrivers::CEnoseModular::getObservation(), mrpt::hwdrivers::CBoardENoses::getObservation(), mrpt::hwdrivers::CServoeNeck::getRegisterValue(), mrpt::hwdrivers::CRoboticHeadInterface::GetSoundLocation(), mrpt::obs::gnss::gnss_message_ptr::gnss_message_ptr(), mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6(), mrpt::maps::CRandomFieldGridMap2D::internal_clear(), mrpt::obs::CObservationPointCloud::load(), mrpt::obs::CObservation3DRangeScan::load(), mrpt::maps::CGasConcentrationGridMap2D::load_Gaussian_Wind_Grid_From_File(), mrpt::nav::CPTG_DiffDrive_CollisionGridBased::loadColGridsFromFile(), mrpt::slam::CMetricMapBuilder::loadCurrentMapFromFile(), mrpt::maps::CSimpleMap::loadFromFile(), mrpt::opengl::COpenGLScene::loadFromFile(), mrpt::obs::CRawlog::loadFromRawLogFile(), mrpt::ros1bridge::MapHdl::loadMap(), mrpt::hmtslam::CHMTSLAM::LSLAM_process_message_from_AA(), ObjectToOctetVector(), OctetVectorToObject(), mrpt::obs::gnss::gnss_message_ptr::operator=(), mrpt::nav::CAbstractPTGBasedReactive::performNavigationStep(), mrpt::obs::CObservation3DRangeScan::points3D_convertToExternalStorage(), mrpt::hwdrivers::CBoardSonars::programI2CAddress(), mrpt::hwdrivers::CServoeNeck::queryFirmwareVersion(), mrpt::hwdrivers::CBoardSonars::queryFirmwareVersion(), mrpt::hwdrivers::CBoardENoses::queryFirmwareVersion(), mrpt::obs::CObservation3DRangeScan::rangeImage_convertToExternalStorage(), mrpt::hwdrivers::CNationalInstrumentsDAQ::readFromDAQ(), mrpt::apps::CGridMapAlignerApp::run(), mrpt::apps::RawlogGrabberApp::run(), mrpt::apps::RBPF_SLAM_App_Base::run(), mrpt::apps::ICP_SLAM_App_Base::run(), mrpt::apps::KFSLAMApp::Run_KF_SLAM(), run_test_pf_localization(), mrpt::maps::CGasConcentrationGridMap2D::save_Gaussian_Wind_Grid_To_File(), mrpt::nav::CPTG_DiffDrive_CollisionGridBased::saveColGridsToFile(), mrpt::slam::CMetricMapBuilder::saveCurrentMapToFile(), mrpt::maps::CSimpleMap::saveToFile(), mrpt::opengl::COpenGLScene::saveToFile(), mrpt::obs::CRawlog::saveToRawLogFile(), mrpt::hwdrivers::CBoardSonars::sendConfigCommands(), mrpt::hwdrivers::CRoboticHeadInterface::SetGain(), mrpt::hwdrivers::CServoeNeck::setRegisterValue(), mrpt::hwdrivers::CServoeNeck::setRegisterValueAndSpeed(), mrpt::nav::CAbstractPTGBasedReactive::STEP8_GenerateLogRecord(), TEST(), GraphTester< my_graph_t >::test_graph_bin_serialization(), and mrpt::obs::CObservationPointCloud::unload().
CArchive::Ptr mrpt::serialization::archivePtrFrom | ( | STREAM & | s | ) |
Like archiveFrom(), returning a shared_ptr<>.
Definition at line 599 of file CArchive.h.
CArchive::UniquePtr mrpt::serialization::archiveUniquePtrFrom | ( | STREAM & | s | ) |
Like archiveFrom(), returning a unique_ptr<>.
Definition at line 606 of file CArchive.h.
Referenced by mrpt::apps::DataSourceRawlog::impl_get_next_observations().
CArchive & mrpt::serialization::operator<< | ( | CArchive & | s, |
const mrpt::aligned_std_vector< float > & | a | ||
) |
Definition at line 199 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 194 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
|
inline |
Definition at line 176 of file CSchemeArchiveBase.h.
References out, and mrpt::serialization::CSchemeArchiveBase::pimpl.
CArchive & mrpt::serialization::operator<< | ( | CArchive & | out, |
const mrpt::Clock::time_point & | a | ||
) |
Definition at line 57 of file CArchive.cpp.
References out.
Definition at line 90 of file CArchive.cpp.
References out.
Definition at line 209 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 214 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 219 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 224 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 229 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 234 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 239 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 73 of file CArchive.cpp.
References out.
Definition at line 502 of file CArchive.cpp.
Definition at line 289 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
Definition at line 204 of file CArchive.cpp.
References mrpt::serialization::detail::writeStdVectorToStream().
CArchive& mrpt::serialization::operator<< | ( | CArchive & | out, |
const typename std::variant< T... > & | pObj | ||
) |
Definition at line 521 of file CArchive.h.
References out.
CArchive& mrpt::serialization::operator<< | ( | CArchive & | out, |
const std::shared_ptr< T > & | pObj | ||
) |
Write a shared_ptr to a non-CSerializable object.
Definition at line 531 of file CArchive.h.
References out.
CArchive & mrpt::serialization::operator>> | ( | CArchive & | s, |
mrpt::aligned_std_vector< float > & | a | ||
) |
Definition at line 250 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 246 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
|
inline |
Definition at line 181 of file CSchemeArchiveBase.h.
References mrpt::serialization::CSchemeArchiveBase::pimpl.
CArchive & mrpt::serialization::operator>> | ( | CArchive & | in, |
mrpt::Clock::time_point & | a | ||
) |
Definition at line 64 of file CArchive.cpp.
Definition at line 317 of file CArchive.cpp.
References mrpt::serialization::CArchive::ReadBuffer().
Definition at line 259 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 263 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 267 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 271 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 275 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 279 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 283 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 300 of file CArchive.cpp.
References mrpt::serialization::CArchive::ReadBuffer().
Definition at line 511 of file CArchive.cpp.
Definition at line 255 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
Definition at line 294 of file CArchive.cpp.
References mrpt::serialization::detail::readStdVectorToStream().
CArchive & mrpt::serialization::operator>> | ( | CArchive & | in, |
typename std::shared_ptr< T > & | pObj | ||
) |
Read a smart pointer to a non-CSerializable (POD,...) data type.
Definition at line 507 of file CArchive.h.
References mrpt::serialization::CArchive::ReadObject().
CArchive& mrpt::serialization::operator>> | ( | CArchive & | in, |
typename std::variant< T... > & | pObj | ||
) |
Definition at line 514 of file CArchive.h.
References mrpt::serialization::CArchive::ReadVariant().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |