Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
tesseract_common::AnyWrapper< T > Class Template Reference

#include <any_poly.h>

Inheritance diagram for tesseract_common::AnyWrapper< T >:
Inheritance graph
[legend]

Public Member Functions

 AnyWrapper ()=default
 
 AnyWrapper (const T &value_)
 
 AnyWrapper (T &&value_)
 
std::unique_ptr< AnyInterfaceclone () const override final
 Make a deep copy of the object. More...
 
bool equals (const AnyInterface &other) const override final
 Check if two objects are equal. More...
 
std::type_index getType () const override final
 Get the type index of the object stored. More...
 
- Public Member Functions inherited from tesseract_common::AnyInterface
bool operator!= (const AnyInterface &rhs) const
 
bool operator== (const AnyInterface &rhs) const
 
virtual ~AnyInterface ()=default
 

Public Attributes

value {}
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)
 

Friends

class boost::serialization::access
 
struct tesseract_common::Serialization
 

Additional Inherited Members

Detailed Description

template<typename T>
class tesseract_common::AnyWrapper< T >

Definition at line 80 of file any_poly.h.

Constructor & Destructor Documentation

◆ AnyWrapper() [1/3]

template<typename T >
tesseract_common::AnyWrapper< T >::AnyWrapper ( )
default

◆ AnyWrapper() [2/3]

template<typename T >
tesseract_common::AnyWrapper< T >::AnyWrapper ( const T &  value_)
inlineexplicit

Definition at line 84 of file any_poly.h.

◆ AnyWrapper() [3/3]

template<typename T >
tesseract_common::AnyWrapper< T >::AnyWrapper ( T &&  value_)
inlineexplicit

Definition at line 85 of file any_poly.h.

Member Function Documentation

◆ clone()

template<typename T >
std::unique_ptr<AnyInterface> tesseract_common::AnyWrapper< T >::clone ( ) const
inlinefinaloverridevirtual

Make a deep copy of the object.

Returns
A deep copy

Implements tesseract_common::AnyInterface.

Definition at line 89 of file any_poly.h.

◆ equals()

template<typename T >
bool tesseract_common::AnyWrapper< T >::equals ( const AnyInterface other) const
inlinefinaloverridevirtual

Check if two objects are equal.

Parameters
otherThe other object to compare with
Returns
True if equal, otherwise false

Implements tesseract_common::AnyInterface.

Definition at line 91 of file any_poly.h.

◆ getType()

template<typename T >
std::type_index tesseract_common::AnyWrapper< T >::getType ( ) const
inlinefinaloverridevirtual

Get the type index of the object stored.

Returns
The type index

Reimplemented from tesseract_common::AnyInterface.

Definition at line 87 of file any_poly.h.

◆ serialize()

template<typename T >
template<class Archive >
void tesseract_common::AnyWrapper< T >::serialize ( Archive &  ar,
const unsigned int   
)
inlineprivate

Definition at line 106 of file any_poly.h.

Friends And Related Function Documentation

◆ boost::serialization::access

template<typename T >
friend class boost::serialization::access
friend

Definition at line 103 of file any_poly.h.

◆ tesseract_common::Serialization

template<typename T >
friend struct tesseract_common::Serialization
friend

Definition at line 104 of file any_poly.h.

Member Data Documentation

◆ value

template<typename T >
T tesseract_common::AnyWrapper< T >::value {}

Definition at line 100 of file any_poly.h.


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


tesseract_common
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:40