Utopia 2
Framework for studying models of complex & adaptive systems.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Utopia::Models::Opinionet::Utils::TestNetworkD_small Struct Reference
Inheritance diagram for Utopia::Models::Opinionet::Utils::TestNetworkD_small:
Inheritance graph
[legend]
Collaboration diagram for Utopia::Models::Opinionet::Utils::TestNetworkD_small:
Collaboration graph
[legend]

Public Types

using vertex = boost::graph_traits< NetworkDirected >::vertex_descriptor
 
- Public Types inherited from Utopia::TestTools::BaseInfrastructure< RNGType >
using RNG = RNGType
 The random number generator type to use.
 
using Config = DataIO::Config
 Make the config type more easily available.
 

Public Member Functions

 TestNetworkD_small ()
 
- Public Member Functions inherited from Utopia::Models::Opinionet::Utils::Infrastructure
 Infrastructure ()
 
- Public Member Functions inherited from Utopia::TestTools::BaseInfrastructure< RNGType >
 BaseInfrastructure (const std::string &config_file_path="")
 Construct the BaseInfrastructure fixture.
 
 ~BaseInfrastructure ()
 Destruct the BaseInfrastructure fixture, tearing down the test logger.
 

Public Attributes

NetworkDirected nw
 
vertex v1 = boost::add_vertex(nw)
 
vertex v2 = boost::add_vertex(nw)
 
vertex v3 = boost::add_vertex(nw)
 
vertex v4 = boost::add_vertex(nw)
 
- Public Attributes inherited from Utopia::TestTools::BaseInfrastructure< RNGType >
const Config cfg
 The test configuration.
 
std::shared_ptr< spdlog::logger > log
 A logger to use during the test or to pass to entities that need it.
 
std::shared_ptr< RNGrng
 The shared random number generator instance, randomly seeded.
 

Member Typedef Documentation

◆ vertex

Constructor & Destructor Documentation

◆ TestNetworkD_small()

Utopia::Models::Opinionet::Utils::TestNetworkD_small::TestNetworkD_small ( )
inline
68 {
69 boost::add_edge(v1, v2, nw);
70 boost::add_edge(v1, v3, nw);
71 boost::add_edge(v4, v1, nw);
72 boost::add_edge(v4, v2, nw);
73 }
NetworkDirected nw
Definition test_utils.cc:62

Member Data Documentation

◆ nw

NetworkDirected Utopia::Models::Opinionet::Utils::TestNetworkD_small::nw

◆ v1

vertex Utopia::Models::Opinionet::Utils::TestNetworkD_small::v1 = boost::add_vertex(nw)

◆ v2

vertex Utopia::Models::Opinionet::Utils::TestNetworkD_small::v2 = boost::add_vertex(nw)

◆ v3

vertex Utopia::Models::Opinionet::Utils::TestNetworkD_small::v3 = boost::add_vertex(nw)

◆ v4

vertex Utopia::Models::Opinionet::Utils::TestNetworkD_small::v4 = boost::add_vertex(nw)

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