| |
- mrpt.pymrpt.mrpt.Stringifyable(pybind11_builtins.pybind11_object)
-
- CListOfClasses
- pybind11_builtins.pybind11_object(builtins.object)
-
- CLASS_ID_impl_mrpt_maps_CBeaconMap_t
- CLASS_ID_impl_mrpt_maps_CColouredOctoMap_t
- CLASS_ID_impl_mrpt_maps_CColouredPointsMap_t
- CLASS_ID_impl_mrpt_maps_CGasConcentrationGridMap2D_t
- CLASS_ID_impl_mrpt_maps_CHeightGridMap2D_MRF_t
- CLASS_ID_impl_mrpt_maps_CHeightGridMap2D_t
- CLASS_ID_impl_mrpt_maps_CLandmarksMap_t
- CLASS_ID_impl_mrpt_maps_COccupancyGridMap2D_t
- CLASS_ID_impl_mrpt_maps_COccupancyGridMap3D_t
- CLASS_ID_impl_mrpt_maps_COctoMap_t
- CLASS_ID_impl_mrpt_maps_CPointsMapXYZI_t
- CLASS_ID_impl_mrpt_maps_CReflectivityGridMap2D_t
- CLASS_ID_impl_mrpt_maps_CSimplePointsMap_t
- CLASS_ID_impl_mrpt_maps_CWeightedPointsMap_t
- CLASS_ID_impl_mrpt_maps_CWirelessPowerGridMap2D_t
- CLASS_ID_impl_mrpt_obs_CObservation_t
- CLASS_ID_impl_mrpt_obs_CSensoryFrame_t
- CLASS_ID_impl_mrpt_rtti_CObject_t
- CObject
- TRuntimeClassId
class CListOfClasses(mrpt.pymrpt.mrpt.Stringifyable) |
|
A list (actually based on a std::set) of MRPT classes, capable of keeping
any class registered by the mechanism of CObject classes. Access to "data"
for the actual content, or use any of the helper methods in this class. |
|
- Method resolution order:
- CListOfClasses
- mrpt.pymrpt.mrpt.Stringifyable
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses, arg0: mrpt.pymrpt.mrpt.rtti.CListOfClasses) -> None
2. __init__(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses, arg0: mrpt.pymrpt.mrpt.rtti.CListOfClasses) -> None
3. __init__(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses) -> None
- asString(...)
- asString(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses) -> str
Return a string representation of the list, for example: "CPose2D,
CObservation, CPose3D".
C++: mrpt::rtti::CListOfClasses::asString() const --> std::string
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses, : mrpt.pymrpt.mrpt.rtti.CListOfClasses) -> mrpt.pymrpt.mrpt.rtti.CListOfClasses
C++: mrpt::rtti::CListOfClasses::operator=(const class mrpt::rtti::CListOfClasses &) --> class mrpt::rtti::CListOfClasses &
- contains(...)
- contains(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses, id: mrpt.pymrpt.mrpt.rtti.TRuntimeClassId) -> bool
Does the list contains this class?
C++: mrpt::rtti::CListOfClasses::contains(const struct mrpt::rtti::TRuntimeClassId *) const --> bool
- containsDerivedFrom(...)
- containsDerivedFrom(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses, id: mrpt.pymrpt.mrpt.rtti.TRuntimeClassId) -> bool
Does the list contains a class derived from...?
C++: mrpt::rtti::CListOfClasses::containsDerivedFrom(const struct mrpt::rtti::TRuntimeClassId *) const --> bool
- fromString(...)
- fromString(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses, s: str) -> None
Builds from a string representation of the list, for example: "CPose2D,
CObservation, CPose3D".
std::exception On unregistered class name found.
C++: mrpt::rtti::CListOfClasses::fromString(const std::string &) --> void
- insert(...)
- insert(self: mrpt.pymrpt.mrpt.rtti.CListOfClasses, id: mrpt.pymrpt.mrpt.rtti.TRuntimeClassId) -> None
Insert a class in the list. Example of usage:
C++: mrpt::rtti::CListOfClasses::insert(const struct mrpt::rtti::TRuntimeClassId *) --> void
Data descriptors defined here:
- data
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CObject(pybind11_builtins.pybind11_object) |
|
Virtual base to provide a compiler-independent RTTI system.
Each class named `Foo` will have associated smart pointer types:
- `Foo::Ptr` => `std::shared_ptr<Foo>` (the most commonly-used one)
- `Foo::ConstPtr` => `std::shared_ptr<const Foo>`
- `Foo::UniquePtr` => `std::unique_ptr<Foo>`
- `Foo::ConstUniquePtr` => `std::unique_ptr<const Foo>`
It is recommended to use MRPT-defined `std::make_shared<>` instead
of `std::make_shared<>` to create objects, to avoid memory alignment
problems caused by classes containing Eigen vectors or matrices. Example:
Or using the shorter auxiliary static method `::Create()` for conciseness or
to keep compatibility with MRPT 1.5.* code bases:
If a special memory allocator is needed, use `Foo::CreateAlloc(alloc,...);`.
mrpt::rtti::CObject |
|
- Method resolution order:
- CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
Returns information about the class of an object in runtime.
C++: mrpt::rtti::CObject::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.rtti.CObject, arg0: mrpt.pymrpt.mrpt.rtti.CObject) -> None
2. __init__(self: mrpt.pymrpt.mrpt.rtti.CObject) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.rtti.CObject, : mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::rtti::CObject::operator=(const class mrpt::rtti::CObject &) --> class mrpt::rtti::CObject &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods defined here:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::rtti::CObject::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
|