code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
# /* # * This program is free software; you can redistribute it and/or modify # * it under the terms of the GNU General Public License version 2 as # * published by the Free Software Foundation # * # * This program is distributed in the hope that it will be useful, # * but WITHOUT ANY WARRANTY; without even the i...
zy901002-gpsr
src/bridge/examples/csma-bridge.py
Python
gpl2
5,276
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('csma-bridge', ['bridge', 'csma', 'internet']) obj.source = 'csma-bridge.cc' bld.register_ns3_script('csma-bridge.py', ['bridge', 'csma', 'internet']) obj = bld.create_ns3...
zy901002-gpsr
src/bridge/examples/wscript
Python
gpl2
427
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hop...
zy901002-gpsr
src/bridge/helper/bridge-helper.cc
C++
gpl2
1,926
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed...
zy901002-gpsr
src/bridge/helper/bridge-helper.h
C++
gpl2
2,566
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_module('bridge', ['network']) obj.source = [ 'model/bridge-net-device.cc', 'model/bridge-channel.cc', 'helper/bridge-helper.cc', ] headers = bld.new_task_...
zy901002-gpsr
src/bridge/wscript
Python
gpl2
619
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/gtk-config-store.h
C++
gpl2
1,207
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/attribute-iterator.cc
C++
gpl2
7,734
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/gtk-config-store.cc
C++
gpl2
4,890
#include "file-config.h" namespace ns3 { FileConfig::~FileConfig () { } NoneFileConfig::NoneFileConfig () { } NoneFileConfig::~NoneFileConfig () { } void NoneFileConfig::SetFilename (std::string filename) {} void NoneFileConfig::Default (void) {} void NoneFileConfig::Global (void) {} void NoneFileConfig::Attribut...
zy901002-gpsr
src/config-store/model/file-config.cc
C++
gpl2
353
#include "raw-text-config.h" #include "attribute-iterator.h" #include "attribute-default-iterator.h" #include "ns3/global-value.h" #include "ns3/string.h" #include "ns3/log.h" #include "ns3/config.h" NS_LOG_COMPONENT_DEFINE ("RawTextConfig"); namespace ns3 { RawTextConfigSave::RawTextConfigSave () : m_os (0) { } R...
zy901002-gpsr
src/config-store/model/raw-text-config.cc
C++
gpl2
3,930
#ifndef XML_CONFIG_STORE_H #define XML_CONFIG_STORE_H #include <string> #include <libxml/xmlwriter.h> #include <libxml/xmlreader.h> #include "file-config.h" namespace ns3 { /** * \ingroup configstore * */ class XmlConfigSave : public FileConfig { public: XmlConfigSave (); virtual ~XmlConfigSave (); virtual...
zy901002-gpsr
src/config-store/model/xml-config.h
C++
gpl2
871
#ifndef RAW_TEXT_CONFIG_H #define RAW_TEXT_CONFIG_H #include <string> #include <fstream> #include "file-config.h" namespace ns3 { /** * \ingroup configstore * */ class RawTextConfigSave : public FileConfig { public: RawTextConfigSave (); virtual ~RawTextConfigSave (); virtual void SetFilename (std::string f...
zy901002-gpsr
src/config-store/model/raw-text-config.h
C++
gpl2
881
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/attribute-default-iterator.h
C++
gpl2
2,068
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/display-functions.cc
C++
gpl2
19,550
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/model-node-creator.cc
C++
gpl2
3,454
#include "xml-config.h" #include "attribute-default-iterator.h" #include "attribute-iterator.h" #include "ns3/fatal-error.h" #include "ns3/log.h" #include "ns3/global-value.h" #include "ns3/string.h" #include "ns3/config.h" #include <libxml/encoding.h> #include <libxml/xmlwriter.h> NS_LOG_COMPONENT_DEFINE ("XmlConfig"...
zy901002-gpsr
src/config-store/model/xml-config.cc
C++
gpl2
9,465
#ifndef CONFIG_STORE_H #define CONFIG_STORE_H #include "ns3/object-base.h" #include "file-config.h" namespace ns3 { /** * \defgroup configstore Config-Store * * \brief Store and load simulation attribute configuration * * While it is possible to generate a sample config file and lightly * edit it to change a c...
zy901002-gpsr
src/config-store/model/config-store.h
C++
gpl2
1,704
#ifndef FILE_CONFIG_H #define FILE_CONFIG_H #include <string> namespace ns3 { /** * \ingroup configstore * */ class FileConfig { public: virtual ~FileConfig (); virtual void SetFilename (std::string filename) = 0; virtual void Default (void) = 0; virtual void Global (void) = 0; virtual void Attributes (...
zy901002-gpsr
src/config-store/model/file-config.h
C++
gpl2
669
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/attribute-default-iterator.cc
C++
gpl2
3,571
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/model-typeid-creator.cc
C++
gpl2
2,096
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/model-node-creator.h
C++
gpl2
2,328
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/display-functions.h
C++
gpl2
5,401
#include "config-store.h" #include "raw-text-config.h" #include "ns3/abort.h" #include "ns3/string.h" #include "ns3/log.h" #include "ns3/simulator.h" #include "ns3/attribute-construction-list.h" #include "ns3/enum.h" #include "ns3/config-store-config.h" #ifdef HAVE_LIBXML2 #include "xml-config.h" #endif #include <stri...
zy901002-gpsr
src/config-store/model/config-store.cc
C++
gpl2
3,349
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/model-typeid-creator.h
C++
gpl2
2,439
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be u...
zy901002-gpsr
src/config-store/model/attribute-iterator.h
C++
gpl2
2,734
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/config-store/bindings/modulegen__gcc_ILP32.py
Python
gpl2
54,509
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/config-store/bindings/modulegen__gcc_LP64.py
Python
gpl2
54,509
callback_classes = [ ]
zy901002-gpsr
src/config-store/bindings/callbacks_list.py
Python
gpl2
23
import os def post_register_types(root_module): enabled_features = os.environ['NS3_ENABLED_FEATURES'].split(',') # if GtkConfigStore support is disabled, disable the class wrapper if 'GtkConfigStore' not in enabled_features: try: root_module.classes.remove(root_module['ns3::GtkConfigSto...
zy901002-gpsr
src/config-store/bindings/modulegen_customizations.py
Python
gpl2
368
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
src/config-store/test/examples-to-run.py
Python
gpl2
395
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('config-store-save', ['core', 'config-store']) obj.source = 'config-store-save.cc'
zy901002-gpsr
src/config-store/examples/wscript
Python
gpl2
222
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ #include "ns3/core-module.h" #include "ns3/config-store-module.h" #include <iostream> using namespace ns3; class A : public Object { public: static TypeId GetTypeId (void) { static TypeId tid = TypeId ("ns3::A") .SetParent<Object> () ...
zy901002-gpsr
src/config-store/examples/config-store-save.cc
C++
gpl2
2,587
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def configure(conf): have_gtk = conf.pkg_check_modules('GTK_CONFIG_STORE', 'gtk+-2.0 >= 2.12', mandatory=False) conf.env['ENABLE_GTK_CONFIG_STORE'] = have_gtk conf.report_optional_feature("GtkConfigStore", "GtkConfigStore",...
zy901002-gpsr
src/config-store/wscript
Python
gpl2
2,154
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007 INRIA, 2008 Timo Bingmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pr...
zy901002-gpsr
src/tools/model/gnuplot.h
C++
gpl2
11,952
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007 INRIA, 2008 Timo Bingmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pr...
zy901002-gpsr
src/tools/model/gnuplot.cc
C++
gpl2
16,418
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2009 IITP RAS * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distribu...
zy901002-gpsr
src/tools/model/average.h
C++
gpl2
3,296
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007 INESC Porto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distr...
zy901002-gpsr
src/tools/model/event-garbage-collector.h
C++
gpl2
1,886
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007 INESC Porto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distr...
zy901002-gpsr
src/tools/model/event-garbage-collector.cc
C++
gpl2
2,283
#include "delay-jitter-estimation.h" #include "ns3/tag.h" #include "ns3/simulator.h" #include "ns3/string.h" namespace ns3 { class DelayJitterEstimationTimestampTag : public Tag { public: DelayJitterEstimationTimestampTag (); static TypeId GetTypeId (void); virtual TypeId GetInstanceTypeId (void) const; vir...
zy901002-gpsr
src/tools/model/delay-jitter-estimation.cc
C++
gpl2
2,823
#ifndef DELAY_JITTER_ESTIMATION_H #define DELAY_JITTER_ESTIMATION_H #include "ns3/nstime.h" #include "ns3/packet.h" namespace ns3 { /** * \ingroup tools * * \brief quick and dirty delay and jitter estimation * */ class DelayJitterEstimation { public: DelayJitterEstimation (); /** * \param packet the pac...
zy901002-gpsr
src/tools/model/delay-jitter-estimation.h
C++
gpl2
1,464
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/tools/bindings/modulegen__gcc_ILP32.py
Python
gpl2
172,830
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/tools/bindings/modulegen__gcc_LP64.py
Python
gpl2
172,830
callback_classes = [ ]
zy901002-gpsr
src/tools/bindings/callbacks_list.py
Python
gpl2
23
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007 INESC Porto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distr...
zy901002-gpsr
src/tools/test/event-garbage-collector-test-suite.cc
C++
gpl2
2,363
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
src/tools/test/examples-to-run.py
Python
gpl2
612
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): if not bld.env['ENABLE_EXAMPLES']: return; obj = bld.create_ns3_program('gnuplot-example', ['tools']) obj.source = 'gnuplot-example.cc'
zy901002-gpsr
src/tools/examples/wscript
Python
gpl2
260
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2011 University of Washington * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
zy901002-gpsr
src/tools/examples/gnuplot-example.cc
C++
gpl2
7,461
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): module = bld.create_ns3_module('tools', ['network']) module.source = [ 'model/event-garbage-collector.cc', 'model/gnuplot.cc', 'model/delay-jitter-estimation.cc', ] module_t...
zy901002-gpsr
src/tools/wscript
Python
gpl2
828
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
src/topology-read/model/orbis-topology-reader.cc
C++
gpl2
2,919
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
src/topology-read/model/inet-topology-reader.h
C++
gpl2
2,549
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Hajime Tazaki * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is dis...
zy901002-gpsr
src/topology-read/model/rocketfuel-topology-reader.cc
C++
gpl2
10,588
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
src/topology-read/model/topology-reader.h
C++
gpl2
5,990
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
src/topology-read/model/topology-reader.cc
C++
gpl2
3,412
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
src/topology-read/model/inet-topology-reader.cc
C++
gpl2
3,342
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
src/topology-read/model/orbis-topology-reader.h
C++
gpl2
2,307
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Hajime Tazaki * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is dis...
zy901002-gpsr
src/topology-read/model/rocketfuel-topology-reader.h
C++
gpl2
2,879
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/topology-read/bindings/modulegen__gcc_ILP32.py
Python
gpl2
156,678
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/topology-read/bindings/modulegen__gcc_LP64.py
Python
gpl2
156,678
callback_classes = [ ['void', 'ns3::Ptr<ns3::NetDevice>', 'ns3::Ptr<ns3::Packet const>', 'unsigned short', 'ns3::Address const&', 'ns3::Address const&', 'ns3::NetDevice::PacketType', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ]
zy901002-gpsr
src/topology-read/bindings/callbacks_list.py
Python
gpl2
232
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
src/topology-read/test/examples-to-run.py
Python
gpl2
684
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Hajime Tazaki * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is dis...
zy901002-gpsr
src/topology-read/test/rocketfuel-topology-reader-test-suite.cc
C++
gpl2
2,561
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
src/topology-read/examples/topology-example-sim.cc
C++
gpl2
6,846
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('topology-read', ['topology-read', 'internet', 'nix-vector-routing', 'point-to-point', 'applications']) obj.source = 'topology-example-sim.cc'
zy901002-gpsr
src/topology-read/examples/wscript
Python
gpl2
281
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
src/topology-read/helper/topology-reader-helper.cc
C++
gpl2
2,378
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Universita' di Firenze, Italy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
src/topology-read/helper/topology-reader-helper.h
C++
gpl2
1,882
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_module('topology-read', ['network']) obj.source = [ 'model/topology-reader.cc', 'model/inet-topology-reader.cc', 'model/orbis-topology-reader.cc', 'model/rocketfu...
zy901002-gpsr
src/topology-read/wscript
Python
gpl2
991
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/data-output-interface.cc
C++
gpl2
1,531
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/data-calculator.cc
C++
gpl2
2,811
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/data-output-interface.h
C++
gpl2
2,640
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/omnet-data-output.h
C++
gpl2
2,396
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/omnet-data-output.cc
C++
gpl2
7,418
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/data-collector.cc
C++
gpl2
3,270
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/time-data-calculators.cc
C++
gpl2
2,268
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/time-data-calculators.h
C++
gpl2
1,867
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/sqlite-data-output.h
C++
gpl2
2,557
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/data-calculator.h
C++
gpl2
2,932
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/basic-data-calculators.h
C++
gpl2
6,030
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/packet-data-calculators.h
C++
gpl2
1,977
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/sqlite-data-output.cc
C++
gpl2
7,804
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/data-collector.h
C++
gpl2
2,658
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Drexel University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is...
zy901002-gpsr
src/stats/model/packet-data-calculators.cc
C++
gpl2
3,237
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/stats/bindings/modulegen__gcc_ILP32.py
Python
gpl2
237,449
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/stats/bindings/modulegen__gcc_LP64.py
Python
gpl2
237,449
callback_classes = [ ]
zy901002-gpsr
src/stats/bindings/callbacks_list.py
Python
gpl2
23
import os def post_register_types(root_module): enabled_features = os.environ['NS3_ENABLED_FEATURES'].split(',') # if no sqlite, the class SqliteDataOutput is disabled if 'SqliteDataOutput' not in enabled_features: try: root_module.classes.remove(root_module['ns3::SqliteDataOutput']) ...
zy901002-gpsr
src/stats/bindings/modulegen_customizations.py
Python
gpl2
362
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2011 University of Washington * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
zy901002-gpsr
src/stats/test/basic-data-calculators-test-suite.cc
C++
gpl2
7,708
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def configure(conf): conf.env['SQLITE_STATS'] = conf.check_nonfatal(lib='sqlite3', define_name='SQLITE3', uselib_store='SQLITE3') if not conf.env['SQLITE_STATS']: conf.env['SQLITE_STATS'] = conf.pkg_check_modules('SQLITE3',...
zy901002-gpsr
src/stats/wscript
Python
gpl2
1,647
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006,2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is ...
zy901002-gpsr
src/propagation/model/propagation-loss-model.h
C++
gpl2
18,182
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007,2008, 2009 INRIA, UDcast * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
zy901002-gpsr
src/propagation/model/cost231-propagation-loss-model.h
C++
gpl2
3,274
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006,2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is ...
zy901002-gpsr
src/propagation/model/propagation-delay-model.cc
C++
gpl2
3,156
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006,2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is ...
zy901002-gpsr
src/propagation/model/propagation-delay-model.h
C++
gpl2
2,655
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006,2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is ...
zy901002-gpsr
src/propagation/model/jakes-propagation-loss-model.cc
C++
gpl2
8,649
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006,2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is ...
zy901002-gpsr
src/propagation/model/jakes-propagation-loss-model.h
C++
gpl2
4,230
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006,2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is ...
zy901002-gpsr
src/propagation/model/propagation-loss-model.cc
C++
gpl2
25,528
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007,2008, 2009 INRIA, UDcast * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
zy901002-gpsr
src/propagation/model/cost231-propagation-loss-model.cc
C++
gpl2
5,330
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/propagation/bindings/modulegen__gcc_ILP32.py
Python
gpl2
136,118
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
zy901002-gpsr
src/propagation/bindings/modulegen__gcc_LP64.py
Python
gpl2
136,118
callback_classes = [ ]
zy901002-gpsr
src/propagation/bindings/callbacks_list.py
Python
gpl2
23
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2009 The Boeing Company * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program i...
zy901002-gpsr
src/propagation/test/propagation-loss-model-test-suite.cc
C++
gpl2
15,382
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
src/propagation/test/examples-to-run.py
Python
gpl2
617