30 #include "ns3/core-module.h" 
   31 #include "ns3/stats-module.h" 
   44   static TypeId GetTypeId (
void);
 
   47   void DoInitialize (
void);
 
   64     .AddTraceSource (
"Counter",
 
   75   m_var = CreateObject<ExponentialRandomVariable> ();
 
  103 int main (
int argc, 
char *argv[])
 
  106   cmd.
Parse (argc, argv);
 
  140   fileHelper.
Set2dFormat (
"Time (Seconds) = %.3e\tCount = %.0f");
 
  145                          "/Names/Probe/Output",
 
#define NS_LOG_FUNCTION(parameters)
 
TypeId AddConstructor(void)
 
static EventId Schedule(Time const &time, MEM mem_ptr, OBJ obj)
 
static TypeId GetTypeId(void)
 
static void Add(std::string name, Ptr< Object > object)
Add the association between the string "name" and the Ptr<Object> obj. 
 
virtual void ConnectByPath(std::string path)
connect to a trace source provided by a config path 
 
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
 
Helper class used to put data values into a file. 
 
Parse command-line arguments. 
 
static void Destroy(void)
 
TracedValue< double > m_counter
 
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
 
void ConfigureFile(const std::string &outputFileNameWithoutExtension, enum FileAggregator::FileType fileType=FileAggregator::SPACE_SEPARATED)
 
NS_LOG_COMPONENT_DEFINE("PacketLossCounter")
 
int main(int argc, char *argv[])
 
void SetName(std::string name)
Set the object's name. All spaces are replaced by underscores. 
 
#define NS_LOG_DEBUG(msg)
 
void WriteProbe(const std::string &typeId, const std::string &path, const std::string &probeTraceSource)
 
void Parse(int argc, char *argv[])
 
a base class which provides memory management and object aggregation 
 
a unique identifier for an interface. 
 
void Set2dFormat(const std::string &format)
Sets the 2D format string for the C-style sprintf() function.