26 #ifndef ICL_CORE_EXPECTED_TYPE_H_INCLUDED 27 #define ICL_CORE_EXPECTED_TYPE_H_INCLUDED 29 #include <boost/shared_ptr.hpp> 61 typedef boost::shared_ptr<const ExpectedType>
Ptr;
71 return this->
equals(&other);
77 return !this->
equals(&other);
111 template <
typename T>
bool is() const
Check if an actual type equals this expected type.
virtual bool equals(const ExpectedType *other) const =0
boost::shared_ptr< const ExpectedType > Ptr
bool operator!=(const ExpectedType &other) const
Directly compare two ExpectedType objects.
bool equals(const ExpectedType *other) const
bool operator==(const ExpectedType &other) const
Directly compare two ExpectedType objects.