Class sdm::Item
Class List > sdm > Item
A public interface for actions, states and observations.
#include <item.hpp>
Inherits the following classes: std::inheritable_enable_shared_from_this
Inherited by the following classes: sdm::BaseItem, sdm::Observation
Public Functions
Type | Name |
---|---|
virtual std::shared_ptr< Item > | getPointer () Get the shared_ptr on current (this) item. |
virtual bool | isBaseItem () |
virtual std::string | str () const = 0 Get a string describing the current item. |
std::shared_ptr< T > | to () |
virtual std::shared_ptr< Action > | toAction () Cast the item into a pointer on action. |
virtual std::shared_ptr< Item > | toItem () Cast the item into a pointer on item. |
virtual std::shared_ptr< Observation > | toObservation () Cast the item into a pointer on observation. |
virtual std::shared_ptr< State > | toState () Cast the item into a pointer on state. |
Public Functions inherited from std::inheritable_enable_shared_from_this
See std::inheritable_enable_shared_from_this
Type | Name |
---|---|
std::shared_ptr< Down > | downcasted_shared_from_this () |
std::shared_ptr< T > | shared_from_this () |
Public Functions inherited from std::MultipleInheritableEnableSharedFromThis
See std::MultipleInheritableEnableSharedFromThis
Type | Name |
---|---|
virtual | ~MultipleInheritableEnableSharedFromThis () |
Public Functions Documentation
function getPointer
virtual std::shared_ptr< Item > sdm::Item::getPointer ()
Returns:
std::shared_ptr<Item>
function isBaseItem
inline virtual bool sdm::Item::isBaseItem ()
function str
virtual std::string sdm::Item::str () const = 0
Returns:
std::string the description of the item
function to
template<typename T typename T>
inline std::shared_ptr< T > sdm::Item::to ()
function toAction
virtual std::shared_ptr< Action > sdm::Item::toAction ()
function toItem
virtual std::shared_ptr< Item > sdm::Item::toItem ()
function toObservation
virtual std::shared_ptr< Observation > sdm::Item::toObservation ()
function toState
virtual std::shared_ptr< State > sdm::Item::toState ()
Friends Documentation
friend operator<<
inline friend std::ostream & sdm::Item::operator<< (
std::ostream & os,
const Item & item
)
The documentation for this class was generated from the following file src/sdm/core/item.hpp