![]() |
fpmas 1.6
|
#include <model.h>
Public Member Functions | |
| Neighbor () | |
| Neighbor (AgentPtr *agent) | |
| Neighbor (AgentPtr *agent, AgentEdge *edge) | |
| operator AgentType * () const | |
| AgentType * | operator-> () const |
| AgentType & | operator* () const |
| AgentEdge * | edge () const |
| AgentType * | agent () const |
Helper class to represent an Agent as the neighbor of an other.
A Neighbor can be used through pointer like accesses, and the input Agent is automatically downcast to AgentType.
| AgentType | Type of the input agent |
|
inline |
|
inline |
|
inline |
Neighbor constructor.
| agent | pointer to a generic AgentPtr |
| edge | edge with wich the neighbor is linked to agent |
|
inline |
Implicit conversion operator to AgentType*.
|
inline |
Member of pointer access operator.
|
inline |
Indirection operator.
|
inline |
Returns the edge with which this neighbor is linked to agent.
|
inline |
Returns a pointer to the internal Agent, or a nullptr if the Neighbor is null.