Skip to content

Commit

Permalink
changes from rajatbhatia1
Browse files Browse the repository at this point in the history
switch cout to imsg in callback proxies
default name for context added
  • Loading branch information
Jeff Nye committed Feb 7, 2024
1 parent a00a737 commit bf25784
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions fusion/fusion/FusionContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace fusion
}
}

//! \brief insert each group w/ catch
//! \brief insert each group in current context w/ catch
void insertGroup(const FusionGroupType & group)
{
fusion::HashType hash = group.hash();
Expand All @@ -80,7 +80,7 @@ namespace fusion
//!
//! When this is used in (future) multi-context implementations
//! the name must be unique
std::string name_{""};
std::string name_{"base_ctx"};
//! \brief this is an alias for map in this version
FusionGroupContainerType container_;
// Future: LookupType lookup_;
Expand Down
23 changes: 12 additions & 11 deletions fusion/test/TestBench.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
//! \file TestBench.hpp testbench interface and utils
#pragma once
#include "Msg.hpp"
#include "FieldExtractor.hpp"
#include "Fusion.hpp"
#include "FusionGroup.hpp"
Expand Down Expand Up @@ -161,77 +162,77 @@ struct TestBench::cbProxy
//! \brief ...
static bool uf1_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf1_func called" << endl;
msg->imsg("uf1_func called");
return true;
}

//! \brief ...
static bool uf1_1_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf1_1_func called" << endl;
msg->imsg("uf1_1_func called");
return true;
}

//! \brief ...
static bool uf1_2_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf1_2_func called" << endl;
msg->imsg("uf1_2_func called");
return true;
}

//! \brief ...
static bool uf1_3_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf1_3_func called" << endl;
msg->imsg("uf1_3_func called");
return true;
}

//! \brief ...
static bool uf2_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf2_func called" << endl;
msg->imsg("uf2_func called");
return true;
}

//! \brief ...
static bool uf3_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf3_func called" << endl;
msg->imsg("uf3_func called");
return true;
}

//! \brief ...
static bool uf4_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf4_func called" << endl;
msg->imsg("uf4_func called");
return true;
}

//! \brief ...
static bool uf5_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf5_func called" << endl;
msg->imsg("uf5_func called");
return true;
}

//! \brief ...
static bool uf5_1_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf5_1_func called" << endl;
msg->imsg("uf5_1_func called");
return true;
}

//! \brief ...
static bool uf5_2_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf5_2_func called" << endl;
msg->imsg("uf5_2_func called");
return true;
}

//! \brief ...
static bool uf5_3_func(FusionGroupType &, InstPtrListType &, InstPtrListType &)
{
cout << "HERE uf5_3_func called" << endl;
msg->imsg("uf5_3_func called");
return true;
}
};

0 comments on commit bf25784

Please sign in to comment.