fpmas 1.6
Public Member Functions | List of all members
fpmas::api::graph::NodeBuilder< T > Class Template Referenceabstract

#include <graph_builder.h>

Inheritance diagram for fpmas::api::graph::NodeBuilder< T >:
Inheritance graph
[legend]

Public Member Functions

virtual std::size_t nodeCount ()=0
 
virtual DistributedNode< T > * buildNode (DistributedGraph< T > &graph)=0
 

Detailed Description

template<typename T>
class fpmas::api::graph::NodeBuilder< T >

An utility class used to automatically generate some nodes, that can be provided to a GraphBuilder.

Template Parameters
Tgraph datatype

Member Function Documentation

◆ nodeCount()

template<typename T >
virtual std::size_t fpmas::api::graph::NodeBuilder< T >::nodeCount ( )
pure virtual

Returns the count of nodes that the NodeBuilder can generate.

The value returned by this function is expected to be updated while buildNode() calls are performed.

Returns
count of nodes that can be built

Implemented in fpmas::graph::DistributedNodeBuilder< T >, fpmas::graph::DistributedNodeBuilder< int >, fpmas::graph::DistributedNodeBuilder< AgentPtr >, and fpmas::model::AgentNodeBuilder.

◆ buildNode()

template<typename T >
virtual DistributedNode< T > * fpmas::api::graph::NodeBuilder< T >::buildNode ( DistributedGraph< T > &  graph)
pure virtual

Builds a node in the specified graph.

Parameters
graphgraph in which the node must be built
Returns
pointer to built node

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