Public Member Functions | Protected Member Functions | Private Member Functions | Friends | List of all members
tesseract_common::AnyInterface Class Referenceabstract

#include <any_poly.h>

Inheritance diagram for tesseract_common::AnyInterface:
Inheritance graph
[legend]

Public Member Functions

virtual std::unique_ptr< AnyInterfaceclone () const =0
 Make a deep copy of the object. More...
 
virtual std::type_index getType () const
 Get the type index of the object stored. More...
 
bool operator!= (const AnyInterface &rhs) const
 
bool operator== (const AnyInterface &rhs) const
 
virtual ~AnyInterface ()=default
 

Protected Member Functions

virtual bool equals (const AnyInterface &other) const =0
 Check if two objects are equal. More...
 

Private Member Functions

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

Friends

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

Detailed Description

Definition at line 43 of file any_poly.h.

Constructor & Destructor Documentation

◆ ~AnyInterface()

virtual tesseract_common::AnyInterface::~AnyInterface ( )
virtualdefault

Member Function Documentation

◆ clone()

virtual std::unique_ptr<AnyInterface> tesseract_common::AnyInterface::clone ( ) const
pure virtual

Make a deep copy of the object.

Returns
A deep copy

Implemented in tesseract_common::AnyWrapper< T >.

◆ equals()

virtual bool tesseract_common::AnyInterface::equals ( const AnyInterface other) const
protectedpure virtual

Check if two objects are equal.

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

Implemented in tesseract_common::AnyWrapper< T >.

◆ getType()

std::type_index tesseract_common::AnyInterface::getType ( ) const
virtual

Get the type index of the object stored.

Returns
The type index

Reimplemented in tesseract_common::AnyWrapper< T >.

Definition at line 41 of file any_poly.cpp.

◆ operator!=()

bool tesseract_common::AnyInterface::operator!= ( const AnyInterface rhs) const

Definition at line 47 of file any_poly.cpp.

◆ operator==()

bool tesseract_common::AnyInterface::operator== ( const AnyInterface rhs) const

Definition at line 44 of file any_poly.cpp.

◆ serialize()

template<class Archive >
void tesseract_common::AnyInterface::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Definition at line 51 of file any_poly.cpp.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 73 of file any_poly.h.

◆ tesseract_common::Serialization

friend struct tesseract_common::Serialization
friend

Definition at line 74 of file any_poly.h.


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


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