MRPT
1.9.9
|
Classes | |
struct | mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER > |
A generic proxy accessor template that only allows read-only access to the original binded STL container object. More... | |
class | mrpt::containers::MT_buffer |
This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations. More... | |
struct | mrpt::containers::map_traits_stdmap |
Traits for using a std::map<> (sparse representation) More... | |
struct | mrpt::containers::map_traits_map_as_vector |
Traits for using a mrpt::containers::map_as_vector<> (dense, fastest representation) More... | |
struct | mrpt::serialization::metaprogramming::ObjectReadFromStream |
An object for reading objects from a stream, intended for being used in STL algorithms. More... | |
struct | mrpt::serialization::metaprogramming::ObjectReadFromStreamToPtrs< ptr_t > |
struct | mrpt::serialization::metaprogramming::ObjectWriteToStream |
An object for writing objects to a stream, intended for being used in STL algorithms. More... | |
Macros | |
#define | MRPTSTL_SERIALIZABLE_SEQ_CONTAINER(CONTAINER) |
#define | MRPTSTL_SERIALIZABLE_SIMPLE_ASSOC_CONTAINER(CONTAINER) |
Typedefs | |
template<typename T > | |
using | mrpt::serialization::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 | mrpt::serialization::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 | mrpt::serialization::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 | |
template<class T , class CONTAINER > | |
size_t | mrpt::containers::find_in_vector (const T &value, const CONTAINER &vect) |
Returns the index of the value "T" in the container "vect" (std::vector,std::deque,etc), or string::npos if not found. More... | |
template<class T > | |
std::list< T >::iterator | mrpt::containers::erase_return_next (std::list< T > &cont, typename std::list< T >::iterator &it) |
Calls the standard "erase" method of a STL container, but also returns an iterator to the next element in the container (or end if none) More... | |
template<class K , class V > | |
std::map< K, V >::iterator | mrpt::containers::erase_return_next (std::map< K, V > &cont, typename std::map< K, V >::iterator &it) |
template<class K , class V > | |
std::multimap< K, V >::iterator | mrpt::containers::erase_return_next (std::multimap< K, V > &cont, typename std::multimap< K, V >::iterator &it) |
template<class T > | |
std::set< T >::iterator | mrpt::containers::erase_return_next (std::set< T > &cont, typename std::set< T >::iterator &it) |
template<class T > | |
std::string | mrpt::containers::getSTLContainerAsString (const T &t) |
Return a STL container in std::string form. More... | |
template<class T > | |
void | mrpt::containers::printSTLContainer (const T &t) |
Print the given vector t. More... | |
template<class T > | |
void | mrpt::containers::printSTLContainerOfContainers (const T &t) |
Print the given STL container of containers t. More... | |
template<class T1 , class T2 > | |
std::string | mrpt::containers::getMapAsString (const std::map< T1, T2 > &m, const std::string &sep=" => ") |
Return contents of map in a string representation. More... | |
template<class T1 , class T2 > | |
void | mrpt::containers::printMap (const std::map< T1, T2 > &m) |
Print the given map m. More... | |
template<class CONTAINER > | |
void | mrpt::containers::deep_clear (CONTAINER &c) |
Deep clear for a std vector container. More... | |
template<class T > | |
CArchive & | mrpt::serialization::operator<< (CArchive &out, const std::optional< T > &obj) |
Template to serialize a std::optional<T> More... | |
template<class T > | |
CArchive & | mrpt::serialization::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 | mrpt::serialization::containerName () |
template<typename T , std::enable_if_t< is_simple_type< T >::value, int > = 0> | |
CArchive & | mrpt::serialization::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 & | mrpt::serialization::operator>> (CArchive &in, T &obj) |
Template method to deserialize an associative STL container. More... | |
template<class T , size_t N> | |
CArchive & | mrpt::serialization::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 & | mrpt::serialization::operator>> (CArchive &in, std::array< T, N > &obj) |
Template method to deserialize a std::array<T,N> More... | |
template<class T1 , class T2 > | |
CArchive & | mrpt::serialization::operator<< (CArchive &out, const std::pair< T1, T2 > &obj) |
Template method to serialize a STL pair. More... | |
template<class T1 , class T2 > | |
CArchive & | mrpt::serialization::operator>> (CArchive &in, std::pair< T1, T2 > &obj) |
Template method to deserialize a STL pair. More... | |
#define MRPTSTL_SERIALIZABLE_SEQ_CONTAINER | ( | CONTAINER | ) |
Definition at line 27 of file stl_serialization.h.
#define MRPTSTL_SERIALIZABLE_SIMPLE_ASSOC_CONTAINER | ( | CONTAINER | ) |
Definition at line 153 of file stl_serialization.h.
using mrpt::serialization::is_map = typedef std::is_same< T, typename std::map< typename T::key_type, typename T::mapped_type, typename T::key_compare, typename T::allocator_type> > |
Definition at line 76 of file stl_serialization.h.
using mrpt::serialization::is_map_like = typedef std::is_same< typename T::value_type, std::pair<const typename T::key_type, typename T::mapped_type> > |
Definition at line 70 of file stl_serialization.h.
using mrpt::serialization::is_multimap = typedef std::is_same< T, typename std::multimap< typename T::key_type, typename T::mapped_type, typename T::key_compare, typename T::allocator_type> > |
Definition at line 82 of file stl_serialization.h.
std::string mrpt::serialization::containerName | ( | ) |
Definition at line 85 of file stl_serialization.h.
void mrpt::containers::deep_clear | ( | CONTAINER & | c | ) |
Deep clear for a std vector container.
Definition at line 139 of file stl_containers_utils.h.
References mrpt::containers::empty().
Referenced by mrpt::system::CTimeLogger::clear(), and mrpt::obs::CObservationVelodyneScan::TPointCloud::clear_deep().
|
inline |
Calls the standard "erase" method of a STL container, but also returns an iterator to the next element in the container (or end if none)
Definition at line 37 of file stl_containers_utils.h.
Referenced by mrpt::vision::TSequenceFeatureObservations::decimateCameraFrames(), and mrpt::hmtslam::CHMTSLAM::LSLAM_process_message_from_AA().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 44 of file stl_containers_utils.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 54 of file stl_containers_utils.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 64 of file stl_containers_utils.h.
size_t mrpt::containers::find_in_vector | ( | const T & | value, |
const CONTAINER & | vect | ||
) |
Returns the index of the value "T" in the container "vect" (std::vector,std::deque,etc), or string::npos if not found.
Definition at line 26 of file stl_containers_utils.h.
References mrpt::math::distance().
Referenced by mrpt::slam::CRangeBearingKFSLAM2D::OnGetObservationsAndDataAssociation(), mrpt::graphslam::optimize_graph_spa_levmarq(), and mrpt::bayes::CKalmanFilterCapable< 7, 3, 3, 7 >::runOneKalmanIteration().
std::string mrpt::containers::getMapAsString | ( | const std::map< T1, T2 > & | m, |
const std::string & | sep = " => " |
||
) |
Return contents of map in a string representation.
[in] | m | Template map |
[in] | sep | String that seperates visually each key and its value. Defaults to " => " |
Definition at line 118 of file stl_containers_utils.h.
Referenced by mrpt::containers::printMap().
std::string mrpt::containers::getSTLContainerAsString | ( | const T & | t | ) |
Return a STL container in std::string form.
[in] | t | Template STL container (e.g. vector) |
Definition at line 79 of file stl_containers_utils.h.
Referenced by mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::checkPartitionsForLC(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::generateHypotsPool(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::generatePWConsistenciesMatrix(), mrpt::graphslam::TUncertaintyPath< GRAPH_T >::getAsString(), and mrpt::containers::printSTLContainer().
CArchive& mrpt::serialization::operator<< | ( | CArchive & | out, |
const std::optional< T > & | obj | ||
) |
Template to serialize a std::optional<T>
Definition at line 22 of file optional_serialization.h.
References mrpt::typemeta::TTypeName< T >::get(), and out.
CArchive& mrpt::serialization::operator<< | ( | CArchive & | out, |
const std::array< T, N > & | obj | ||
) |
Template method to serialize a std::array<T,N>
Definition at line 205 of file stl_serialization.h.
References out.
CArchive& mrpt::serialization::operator<< | ( | CArchive & | out, |
const std::pair< T1, T2 > & | obj | ||
) |
Template method to serialize a STL pair.
Definition at line 239 of file stl_serialization.h.
References mrpt::typemeta::TTypeName< T >::get(), and out.
CArchive & mrpt::serialization::operator<< | ( | CArchive & | out, |
const T & | a | ||
) |
Template method to serialize an associative STL container.
Definition at line 428 of file CArchive.h.
References out.
CArchive& mrpt::serialization::operator>> | ( | CArchive & | in, |
std::optional< T > & | obj | ||
) |
Template to deserialize a std::optional<T>
Definition at line 32 of file optional_serialization.h.
References mrpt::format(), mrpt::typemeta::TTypeName< T >::get(), THROW_EXCEPTION, and val.
CArchive& mrpt::serialization::operator>> | ( | CArchive & | in, |
std::array< T, N > & | obj | ||
) |
Template method to deserialize a std::array<T,N>
Definition at line 216 of file stl_serialization.h.
References mrpt::typemeta::TTypeName< T >::get(), and THROW_EXCEPTION_FMT.
CArchive& mrpt::serialization::operator>> | ( | CArchive & | in, |
std::pair< T1, T2 > & | obj | ||
) |
Template method to deserialize a STL pair.
Definition at line 248 of file stl_serialization.h.
References mrpt::format(), mrpt::typemeta::TTypeName< T >::get(), and THROW_EXCEPTION.
CArchive & mrpt::serialization::operator>> | ( | CArchive & | in, |
T & | a | ||
) |
Template method to deserialize an associative STL container.
Definition at line 435 of file CArchive.h.
References mrpt::serialization::CArchive::ReadBuffer().
void mrpt::containers::printMap | ( | const std::map< T1, T2 > & | m | ) |
Print the given map m.
[in] | m | Template map |
Definition at line 131 of file stl_containers_utils.h.
References mrpt::containers::getMapAsString().
void mrpt::containers::printSTLContainer | ( | const T & | t | ) |
Print the given vector t.
[in] | t | Template vector |
Definition at line 90 of file stl_containers_utils.h.
References mrpt::containers::getSTLContainerAsString().
Referenced by mrpt::containers::printSTLContainerOfContainers().
void mrpt::containers::printSTLContainerOfContainers | ( | const T & | t | ) |
Print the given STL container of containers t.
[in] | t | Template STL container (containing other containers) |
Definition at line 99 of file stl_containers_utils.h.
References mrpt::containers::printSTLContainer().
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 |