- Timestamp:
- May 25, 2015, 5:37:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/network/FunctionCall.cc
r10475 r10478 69 69 } 70 70 71 void FunctionCall::setCall( uint32_t networkID, uint32_t objectID, const MultiType * mt1, const MultiType* mt2, const MultiType* mt3, const MultiType* mt4, const MultiType*mt5){71 void FunctionCall::setCall( uint32_t networkID, uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5){ 72 72 73 73 // first determine the size that has to be reserved for this call 74 74 uint32_t callsize = 3*sizeof(uint32_t); //size for network-function-id and nrOfArguments and the objectID 75 75 uint32_t nrOfArguments = 0; 76 if( mt1)76 if(!mt1.null()) 77 77 { 78 78 nrOfArguments++; 79 callsize += mt1 ->getNetworkSize();80 this->arguments_.push_back( *mt1);81 if( mt2)79 callsize += mt1.getNetworkSize(); 80 this->arguments_.push_back(mt1); 81 if(!mt2.null()) 82 82 { 83 83 nrOfArguments++; 84 callsize += mt2 ->getNetworkSize();85 this->arguments_.push_back( *mt2);86 if( mt3)84 callsize += mt2.getNetworkSize(); 85 this->arguments_.push_back(mt2); 86 if(!mt3.null()) 87 87 { 88 88 nrOfArguments++; 89 callsize += mt3 ->getNetworkSize();90 this->arguments_.push_back( *mt3);91 if( mt4)89 callsize += mt3.getNetworkSize(); 90 this->arguments_.push_back(mt3); 91 if(!mt4.null()) 92 92 { 93 93 nrOfArguments++; 94 callsize += mt4 ->getNetworkSize();95 this->arguments_.push_back( *mt4);96 if( mt5)94 callsize += mt4.getNetworkSize(); 95 this->arguments_.push_back(mt4); 96 if(!mt5.null()) 97 97 { 98 98 nrOfArguments++; 99 callsize += mt5 ->getNetworkSize();100 this->arguments_.push_back( *mt5);99 callsize += mt5.getNetworkSize(); 100 this->arguments_.push_back(mt5); 101 101 } 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.