MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Test Class Reference
+ Collaboration diagram for Test:

Public Member Functions

void handleS0 ()
 
void handleS1 (const Eref &e, string s)
 
void handleS2 (const Eref &e, int i1, int i2)
 
void process (const Eref &e, ProcPtr p)
 
 Test ()
 

Static Public Member Functions

static const CinfoinitCinfo ()
 

Public Attributes

int i1_
 
int i2_
 
int numAcks_
 
string s_
 

Static Public Attributes

static FinfosharedVec [6]
 

Detailed Description

Definition at line 987 of file testAsync.cpp.

Constructor & Destructor Documentation

Test::Test ( )
inline

Definition at line 990 of file testAsync.cpp.

991  : numAcks_( 0 )
992  {;}
int numAcks_
Definition: testAsync.cpp:1037

Member Function Documentation

void Test::handleS0 ( )
inline

Definition at line 997 of file testAsync.cpp.

References numAcks_.

Referenced by testSharedMsg().

997  {
998  numAcks_++;
999  }
int numAcks_
Definition: testAsync.cpp:1037

+ Here is the caller graph for this function:

void Test::handleS1 ( const Eref e,
string  s 
)
inline

Definition at line 1001 of file testAsync.cpp.

References s0, s_, and SrcFinfo0::send().

Referenced by testSharedMsg().

1001  {
1002  s_ = s + s_;
1003  s0.send( e );
1004  }
string s_
Definition: testAsync.cpp:1034
static SrcFinfo0 s0("s0","")
void send(const Eref &e) const
Definition: SrcFinfo.cpp:70

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Test::handleS2 ( const Eref e,
int  i1,
int  i2 
)
inline

Definition at line 1006 of file testAsync.cpp.

References i1_, i2_, s0, and SrcFinfo0::send().

Referenced by testSharedMsg().

1006  {
1007  i1_ += 10 * i1;
1008  i2_ += 10 * i2;
1009  s0.send( e );
1010  }
static SrcFinfo0 s0("s0","")
int i1_
Definition: testAsync.cpp:1035
void send(const Eref &e) const
Definition: SrcFinfo.cpp:70
int i2_
Definition: testAsync.cpp:1036

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static const Cinfo* Test::initCinfo ( )
inlinestatic

Definition at line 1014 of file testAsync.cpp.

References sharedVec.

Referenced by testMsgSrcDestFields(), and testSharedMsg().

1015  {
1016  static SharedFinfo shared( "shared", "",
1017  sharedVec, sizeof( sharedVec ) / sizeof( const Finfo * ) );
1018  static Finfo * testFinfos[] = {
1019  &shared,
1020  };
1021 
1022  static Dinfo< Test > dinfo;
1023  static Cinfo testCinfo(
1024  "Test",
1025  0,
1026  testFinfos,
1027  sizeof( testFinfos ) / sizeof( Finfo* ),
1028  &dinfo
1029  );
1030 
1031  return &testCinfo;
1032  }
static Finfo * sharedVec[6]
Definition: testAsync.cpp:1012
Definition: Dinfo.h:60
Definition: Cinfo.h:18
Definition: Finfo.h:12

+ Here is the caller graph for this function:

void Test::process ( const Eref e,
ProcPtr  p 
)
inline

Definition at line 994 of file testAsync.cpp.

995  {;}

Member Data Documentation

int Test::i1_

Definition at line 1035 of file testAsync.cpp.

Referenced by handleS2(), and testSharedMsg().

int Test::i2_

Definition at line 1036 of file testAsync.cpp.

Referenced by handleS2(), and testSharedMsg().

int Test::numAcks_

Definition at line 1037 of file testAsync.cpp.

Referenced by handleS0(), and testSharedMsg().

string Test::s_

Definition at line 1034 of file testAsync.cpp.

Referenced by handleS1(), and testSharedMsg().

Finfo * Test::sharedVec
static

Definition at line 1012 of file testAsync.cpp.

Referenced by initCinfo().


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