cgate.h Source File¶
|
API
|
cgate.h
102 int vectorSize; // gate vector size, or -1 if scalar gate; actually allocated size is capacityFor(size)
111 const char *nameFor(Type t) const {return (t==INOUT||name->type!=INOUT) ? name->name.c_str() : t==INPUT ? name->namei.c_str() : name->nameo.c_str();}
118 void setInputGate(cGate *g) {ASSERT(getType()!=OUTPUT && !isVector()); input.gate=g; g->desc=this; g->pos=(-(1<<2));}
119 void setOutputGate(cGate *g) {ASSERT(getType()!=INPUT && !isVector()); output.gate=g; g->desc=this; g->pos=(-(1<<2))|1;}
120 void setInputGate(cGate *g, int index) {ASSERT(getType()!=OUTPUT && isVector()); input.gatev[index]=g; g->desc=this; g->pos=(index<<2);}
121 void setOutputGate(cGate *g, int index) {ASSERT(getType()!=INPUT && isVector()); output.gatev[index]=g; g->desc=this; g->pos=(index<<2)|1;}
122 static int capacityFor(int size) {return size<8 ? (size+1)&~1 : size<32 ? (size+3)&~3 : size<256 ? (size+15)&~15 : (size+63)&~63;}
130 int connectionId = -1; // uniquely identifies the connection between *this and *nextgatep; -1 if unconnected
Abstract base class for creating a channel of a given type.
Definition ccomponenttype.h:332
A transmission channel model that supports propagation delay, transmission duration computed from a d...
Definition cdataratechannel.h:70
const char * getNameSuffix() const
cChannel * reconnectWith(cChannel *channel, bool leaveUninitialized=false)
void setDeliverOnReceptionStart(bool d)
Definition cgate.h:395
int getIndex() const
cGate * getOtherHalf() const
cModule * getOwnerModule() const
cChannel * findTransmissionChannel() const
cGate * getPathStartGate() const
virtual cObject * getOwner() const override
int getId() const
int getVectorSize() const
bool isPathOK() const
virtual const char * getFullName() const override
void setDisplayString(const char *dispstr)
bool isConnectedInside() const
bool isGateHalf() const
cChannel * getIncomingTransmissionChannel() const
void setDeliverImmediately(bool d)
bool pathContains(cModule *module, int gateId=-1)
cChannel * findIncomingTransmissionChannel() const
bool isConnected() const
cProperties * getProperties() const
const char * getBaseName() const
cDisplayString & getDisplayString()
void disconnect()
bool isConnectedOutside() const
virtual const char * getName() const override
int getBaseId() const
cChannel * getTransmissionChannel() const
static const char * getTypeName(Type t)
virtual bool deliver(cMessage *msg, const SendOptions &options, simtime_t at)
virtual void forEachChild(cVisitor *v) override
virtual std::string str() const override
cGate * getPathEndGate() const
cChannel * connectTo(cGate *gate, cChannel *channel=nullptr, bool leaveUninitialized=false)
bool getDeliverOnReceptionStart() const
Definition cgate.h:401
Channel with zero propagation delay, zero transmission delay (infinite datarate), and always enabled.
Definition cchannel.h:327
The message class in OMNeT++. cMessage objects may represent events, messages, jobs or other entities...
Definition cmessage.h:96
Enables traversing the tree of (cObject-rooted) simulation objects.
Definition cvisitor.h:57
Lightweight string class, used internally in some parts of OMNeT++.
Definition opp_string.h:40
Options for the cSimpleModule::send() and cSimpleModule::sendDirect() calls.
Definition csimplemodule.h:82
Generated on for API by