| 
	      
		 A Discrete-Event Network Simulator 
		
	       | 
	      
	      
		API
	       | 
	    
	  
	
	
       
 
Go to the documentation of this file.
   20 #include "ns3/callback.h" 
   21 #include "ns3/unused.h" 
   59   virtual void DoRun (
void);
 
   60   virtual void DoSetup (
void);
 
   92   : 
TestCase (
"Check basic Callback mechansim")
 
  206   virtual void DoRun (
void);
 
  239   : 
TestCase (
"Check MakeCallback() mechanism")
 
  331   virtual void DoRun (
void);
 
  430   : 
TestCase (
"Check MakeBoundCallback() mechanism")
 
  497   int result = target3 (2468);
 
  511   int resultTwoA = target5 ();
 
  517   int resultTwoB = target6 (6789);
 
  533   int resultThreeA = target8 ();
 
  540   int resultThreeB = target9 (5678);
 
  564   virtual void DoRun (
void);
 
  571   : 
TestCase (
"Check Nullify() and IsNull()")
 
  615   virtual void DoRun (
void);
 
  634 void TestFRSix (
int &, 
int &, 
int &, 
int &, 
int &, 
int &) {}
 
  664   void TestSix (
int, 
int, 
int, 
int, 
int, 
int) {}
 
  671   void TestCSix (
int, 
int, 
int, 
int, 
int, 
int)
 const {}
 
  688   : 
TestCase (
"Check various MakeCallback() template functions")
 
  
 
void TestCThree(int, int, int) const
 
void BasicCallbackTarget6(int)
 
int Target4(double a, int b)
 
void TestFRFive(int &, int &, int &, int &, int &)
 
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
 
static int gMakeBoundCallbackTest4a
 
static int gMakeBoundCallbackTest7a
 
virtual void DoSetup(void)
Implementation to do any local setup required for this TestCase.
 
void TestCFive(int, int, int, int, int) const
 
static int gMakeBoundCallbackTest6a
 
static int gMakeBoundCallbackTest4b
 
static bool gMakeCallbackTest7
 
void MakeCallbackTarget5(void)
 
void TestFRSix(int &, int &, int &, int &, int &, int &)
 
static void StaticProtectedParent(void)
 
Every class exported by the ns3 library is enclosed in the ns3 namespace.
 
void TestThree(int, int, int)
 
bool IsNull(void) const
Check for null implementation.
 
void TestFRFour(int &, int &, int &, int &)
 
static bool * gMakeBoundCallbackTest3a
 
int MakeBoundCallbackTarget3(bool *a, int b)
 
int MakeBoundCallbackTarget9(int a, int b, int c, int d)
 
static int gMakeBoundCallbackTest7b
 
virtual ~MakeCallbackTestCase()
 
void BasicCallbackTarget5(void)
 
virtual void DoRun(void)
Implementation to actually run this TestCase.
 
virtual ~NullifyCallbackTestCase()
 
virtual ~MakeBoundCallbackTestCase()
 
void CheckParentalRights(void)
 
void TestFSix(int, int, int, int, int, int)
 
void TestFThree(int, int, int)
 
void MakeBoundCallbackTarget4(int a, int b)
 
virtual ~BasicCallbackTestCase()
 
static bool gMakeCallbackTest6
 
static bool gBasicCallbackTest6
 
void MakeBoundCallbackTarget7(int a, int b, int c)
 
int Target4(double a, int b)
 
void MakeCallbackTarget6(int)
 
void TestCTwo(int, int) const
 
virtual void DoSetup(void)
Implementation to do any local setup required for this TestCase.
 
static int gMakeBoundCallbackTest6c
 
MakeCallbackTemplatesTestCase()
 
virtual void DoRun(void)
Implementation to actually run this TestCase.
 
int MakeCallbackTarget7(int a)
 
int BasicCallbackTarget7(int a)
 
void TestFive(int, int, int, int, int)
 
static bool gMakeCallbackTest5
 
void TestSix(int, int, int, int, int, int)
 
void TestCSix(int, int, int, int, int, int) const
 
static int gMakeBoundCallbackTest3b
 
#define NS_UNUSED(x)
Mark a local variable as unused.
 
virtual void DoRun(void)
Implementation to actually run this TestCase.
 
static int gMakeBoundCallbackTest5b
 
void TestCZero(void) const
 
static int gMakeBoundCallbackTest5a
 
static int gMakeBoundCallbackTest6b
 
virtual void DoSetup(void)
Implementation to do any local setup required for this TestCase.
 
static int gMakeBoundCallbackTest8c
 
void MakeBoundCallbackTarget1(int a)
 
void TestFRTwo(int &, int &)
 
virtual ~MakeCallbackTemplatesTestCase()
 
static int gMakeBoundCallbackTest9c
 
static int gMakeBoundCallbackTest9d
 
Callback< R, Ts... > MakeCallback(R(T::*memPtr)(Ts...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...
 
virtual void DoRun(void)
Implementation to actually run this TestCase.
 
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
 
static bool gBasicCallbackTest7
 
virtual void DoSetup(void)
Implementation to do any local setup required for this TestCase.
 
static int gMakeBoundCallbackTest8a
 
int MakeBoundCallbackTarget5(int a, int b)
 
static int gMakeBoundCallbackTest1
 
static int gMakeBoundCallbackTest8b
 
Callback< R > MakeBoundCallback(R(*fnPtr)(TX), ARG a1)
Make Callbacks with one bound argument.
 
static int gMakeBoundCallbackTest9a
 
void TestFFive(int, int, int, int, int)
 
static int gMakeBoundCallbackTest9b
 
int MakeBoundCallbackTarget8(int a, int b, int c)
 
static bool * gMakeBoundCallbackTest2
 
static int gMakeBoundCallbackTest7c
 
void MakeBoundCallbackTarget2(bool *a)
 
static bool gBasicCallbackTest5
 
void TestCFour(int, int, int, int) const
 
virtual void DoRun(void)
Implementation to actually run this TestCase.
 
void ProtectedParent(void)
 
int MakeBoundCallbackTarget6(int a, int b, int c)
 
MakeBoundCallbackTestCase()
 
static CallbackTestSuite CallbackTestSuite
 
void TestFFour(int, int, int, int)
 
static int gMakeBoundCallbackTest5c
 
void TestFour(int, int, int, int)
 
void TestFRThree(int &, int &, int &)
 
NullifyCallbackTestCase()
 
void Nullify(void)
Discard the implementation, set it to null.