Skip to content

Commit

Permalink
remove extra friend classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkatie committed Nov 11, 2023
1 parent eaf4692 commit 3d8bd41
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 16 deletions.
2 changes: 0 additions & 2 deletions src/agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#endif

class SimInitTest;
class RandomTest;

namespace cyclus {

Expand Down Expand Up @@ -50,7 +49,6 @@ typedef std::map<std::string, std::vector<Resource::Ptr> > Inventories;
class Agent : public StateWrangler, virtual public Ider {
friend class SimInit;
friend class ::SimInitTest;
friend class ::RandomTest;

public:
/// Creates a new agent that is managed by the given context. Note that the
Expand Down
2 changes: 0 additions & 2 deletions src/composition.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <boost/shared_ptr.hpp>

class SimInitTest;
class RandomTest;

namespace cyclus {

Expand Down Expand Up @@ -39,7 +38,6 @@ typedef std::map<Nuc, double> CompMap;
class Composition {
friend class SimInit;
friend class ::SimInitTest;
friend class ::RandomTest;

public:
typedef boost::shared_ptr<Composition> Ptr;
Expand Down
2 changes: 0 additions & 2 deletions src/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const uint64_t kDefaultSeed = 20160212;
const uint64_t kDefaultStride = 10000;

class SimInitTest;
class RandomTest;

namespace cyclus {

Expand Down Expand Up @@ -145,7 +144,6 @@ class SimInfo {
class Context {
public:
friend class ::SimInitTest;
friend class ::RandomTest;
friend class SimInit;
friend class Agent;
friend class Timer;
Expand Down
5 changes: 1 addition & 4 deletions src/dynamic_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// for testing
class SimInitTest;
class RandomTest;

namespace cyclus {

Expand Down Expand Up @@ -95,10 +94,8 @@ class DynamicModule {
/// added to this map when loaded.
static std::map<std::string, DynamicModule*> modules_;

/// for testing - see sim_init_tests and random_tests
/// for testing - see sim_init_tests
friend class ::SimInitTest;
friend class ::RandomTest;
/// for testing - see sim_init_tests and random_tests
static std::map<std::string, AgentCtor*> man_ctors_;

/// the name of the module
Expand Down
2 changes: 0 additions & 2 deletions src/product.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "res_tracker.h"

class SimInitTest;
class RandomTest;

namespace cyclus {

Expand All @@ -19,7 +18,6 @@ namespace cyclus {
class Product : public Resource {
friend class SimInit;
friend class ::SimInitTest;
friend class ::RandomTest;

public:
typedef
Expand Down
2 changes: 0 additions & 2 deletions src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <boost/shared_ptr.hpp>

class SimInitTest;
class RandomTest;

namespace cyclus {

Expand All @@ -20,7 +19,6 @@ typedef std::string ResourceType;
class Resource {
friend class SimInit;
friend class ::SimInitTest;
friend class ::RandomTest;

public:
typedef boost::shared_ptr<Resource> Ptr;
Expand Down
2 changes: 0 additions & 2 deletions src/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "comp_math.h"

class SimInitTest;
class RandomTest;

namespace cyclus {

Expand All @@ -22,7 +21,6 @@ class Agent;
/// Controls simulation timestepping and inter-timestep phases.
class Timer {
friend class ::SimInitTest;
friend class ::RandomTest;
public:
Timer();

Expand Down

0 comments on commit 3d8bd41

Please sign in to comment.