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 |
|---|---|---|---|---|---|
/* -*- 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/netanim/examples/star-animation.cc | C++ | gpl2 | 4,150 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
obj = bld.create_ns3_program('dumbbell-animation',
['netanim', 'applications', 'point-to-point-layout'])
obj.source = 'dumbbell-animation.cc'
obj = bld.create_ns3_program('g... | zy901002-gpsr | src/netanim/examples/wscript | Python | gpl2 | 636 |
/* -*- 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/netanim/helper/animation-interface-helper.h | C++ | gpl2 | 5,268 |
/* -*- 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/netanim/helper/animation-interface-helper.cc | C++ | gpl2 | 2,589 |
## -*-Mode : python; py-indent-offset : 4; indent-tabs-mode : nil; coding : utf-8; -*-
def build (bld) :
bld.install_files('${PREFIX}/include/ns3', '../../ns3/netanim-config.h')
module = bld.create_ns3_module ('netanim', ['internet', 'mobility', 'wimax', 'wifi', 'csma'])
module.includes = '.'
module.source ... | zy901002-gpsr | src/netanim/wscript | Python | gpl2 | 945 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/emu/model/emu-net-device.cc | C++ | gpl2 | 37,160 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/emu/model/emu-net-device.h | C++ | gpl2 | 15,250 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 program ... | zy901002-gpsr | src/emu/model/emu-encode-decode.cc | C++ | gpl2 | 2,960 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 program ... | zy901002-gpsr | src/emu/model/emu-sock-creator.cc | C++ | gpl2 | 8,425 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/emu/model/emu-encode-decode.h | C++ | gpl2 | 1,056 |
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/emu/bindings/modulegen__gcc_ILP32.py | Python | gpl2 | 314,699 |
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/emu/bindings/modulegen__gcc_LP64.py | Python | gpl2 | 314,699 |
callback_classes = [
['bool', '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'],
['bool', 'ns3::Ptr<ns3::NetDevice>', 'ns3::Ptr<ns3::Packet const>', 'unsigned short', ... | zy901002-gpsr | src/emu/bindings/callbacks_list.py | Python | gpl2 | 625 |
import os
def post_register_types(root_module):
enabled_features = os.environ['NS3_ENABLED_FEATURES'].split(',')
if 'EmuNetDevice' not in enabled_features:
for clsname in ['EmuNetDevice', 'EmuHelper']:
root_module.classes.remove(root_module['ns3::%s' % clsname])
root_module.enums.r... | zy901002-gpsr | src/emu/bindings/modulegen_customizations.py | Python | gpl2 | 380 |
#! /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/emu/test/examples-to-run.py | Python | gpl2 | 643 |
/* -*- 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/emu/examples/emu-udp-echo.cc | C++ | gpl2 | 5,800 |
/* -*- 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/emu/examples/emu-ping.cc | C++ | gpl2 | 8,217 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
env = bld.env
if env['ENABLE_EMU']:
obj = bld.create_ns3_program('emu-udp-echo', ['emu', 'internet', 'applications'])
obj.source = 'emu-udp-echo.cc'
obj = bld.create_ns3_program('emu-pin... | zy901002-gpsr | src/emu/examples/wscript | Python | gpl2 | 396 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/emu/helper/emu-helper.cc | C++ | gpl2 | 7,697 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/emu/helper/emu-helper.h | C++ | gpl2 | 5,531 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
import os.path
def configure(conf):
if conf.env['ENABLE_THREADING']:
conf.env['ENABLE_EMU'] = conf.check_nonfatal(header_name='netpacket/packet.h',
define_name='HAVE_PACKET_H')
... | zy901002-gpsr | src/emu/wscript | Python | gpl2 | 2,000 |
#! /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/template/test/examples-to-run.py | Python | gpl2 | 568 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
// An essential include is test.h
#include "ns3/test.h"
// Do not put your test classes in namespace ns3. You may find it useful
// to use the using directive to access the ns3 namespace directly
using namespace ns3;
// This is an example TestCase.
c... | zy901002-gpsr | src/template/test/sample-test-suite.cc | C++ | gpl2 | 1,696 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
# Don't build any examples unless they are enabled.
if not bld.env['ENABLE_EXAMPLES']:
return;
# Uncomment these lines to build this C++ example program.
#program = bld.create_ns3_program('sampl... | zy901002-gpsr | src/template/examples/wscript | Python | gpl2 | 538 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
# Create the module with the appropriate name and the list of
# modules it depends on.
module = bld.create_ns3_module('template', ['core'])
# Set the C++ source files for this module.
module.source ... | zy901002-gpsr | src/template/wscript | Python | gpl2 | 1,787 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2009 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/core/model/calendar-scheduler.h | C++ | gpl2 | 3,069 |
/* -*- 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/core/model/uinteger.cc | C++ | gpl2 | 2,613 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 NICTA
*
* 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/core/model/fatal-impl.cc | C++ | gpl2 | 3,567 |
/* -*- 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/core/model/system-mutex.h | C++ | gpl2 | 3,620 |
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2004 Keith Packard
*
* 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 dist... | zy901002-gpsr | src/core/model/cairo-wideint.c | C | gpl2 | 18,812 |
#include "callback.h"
namespace ns3 {
CallbackValue::CallbackValue ()
: m_value ()
{
}
CallbackValue::CallbackValue (const CallbackBase &base)
: m_value (base)
{
}
CallbackValue::~CallbackValue ()
{
}
void
CallbackValue::Set (CallbackBase base)
{
m_value = base;
}
Ptr<AttributeValue>
CallbackValue::Copy (void) ... | zy901002-gpsr | src/core/model/callback.cc | C++ | gpl2 | 1,885 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2006,2007 INRIA, 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 prog... | zy901002-gpsr | src/core/model/breakpoint.cc | C++ | gpl2 | 1,404 |
/* -*- 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/core/model/integer.cc | C++ | gpl2 | 2,622 |
/* -*- 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/core/model/unix-system-mutex.cc | C++ | gpl2 | 3,302 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2009 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/core/model/names.cc | C++ | gpl2 | 19,116 |
/* -*- 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/core/model/system-path.h | C++ | gpl2 | 2,728 |
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2004 Keith Packard
*
* 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 dist... | zy901002-gpsr | src/core/model/cairo-wideint-private.h | C | gpl2 | 14,760 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2009 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/core/model/test.cc | C++ | gpl2 | 21,952 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/list-scheduler.cc | C++ | gpl2 | 2,103 |
/* -*- 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/core/model/attribute-accessor-helper.h | C++ | gpl2 | 8,132 |
/* -*- 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/core/model/enum.h | C++ | gpl2 | 4,554 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2006 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/core/model/map-scheduler.cc | C++ | gpl2 | 2,456 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
//
// Copyright (c) 2006 Georgia Tech Research Corporation
//
// 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;
//
//... | zy901002-gpsr | src/core/model/random-variable.h | C++ | gpl2 | 26,471 |
/* -*- 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 d... | zy901002-gpsr | src/core/model/traced-value.h | C++ | gpl2 | 14,564 |
#ifndef NS3_DEPRECATED_H
#define NS3_DEPRECATED_H
#if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ > 1)
#define NS_DEPRECATED __attribute__ ((deprecated))
#else
#define NS_DEPRECATED
#endif
#endif /* NS3_DEPRECATED_H */
| zy901002-gpsr | src/core/model/deprecated.h | C | gpl2 | 233 |
#include "make-event.h"
namespace ns3 {
EventImpl * MakeEvent (void (*f)(void))
{
// zero arg version
class EventFunctionImpl0 : public EventImpl
{
public:
typedef void (*F)(void);
EventFunctionImpl0 (F function)
: m_function (function)
{
}
virtual ~EventFunctionImpl0 ()
{
}
p... | zy901002-gpsr | src/core/model/make-event.cc | C++ | gpl2 | 496 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/core/model/synchronizer.h | C++ | gpl2 | 11,453 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2006 INRIA, 2010 NICTA
*
* 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/core/model/assert.h | C++ | gpl2 | 3,696 |
/* -*- 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/core/model/enum.cc | C++ | gpl2 | 6,312 |
/* -*- 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/core/model/object-factory.h | C++ | gpl2 | 5,702 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/system-wall-clock-ms.h | C++ | gpl2 | 2,421 |
/* -*- 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/core/model/object-factory.cc | C++ | gpl2 | 5,044 |
#ifndef NS3_STRING_H
#define NS3_STRING_H
#include <string>
#include "attribute-helper.h"
namespace ns3 {
/**
* \ingroup attribute
*
* \class ns3::StringValue
* \brief hold variables of type string
*
* This class can be used to hold variables of type string,
* that is, either char * or std::string.
*/
ATTRI... | zy901002-gpsr | src/core/model/string.h | C++ | gpl2 | 490 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 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 ... | zy901002-gpsr | src/core/model/unix-fd-reader.cc | C++ | gpl2 | 5,323 |
/* -*- 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/core/model/system-thread.h | C++ | gpl2 | 6,579 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/core/model/system-condition.h | C++ | gpl2 | 3,394 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 distributed... | zy901002-gpsr | src/core/model/vector.h | C++ | gpl2 | 2,929 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/core/model/wall-clock-synchronizer.cc | C++ | gpl2 | 15,223 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007 INRIA, Mathieu Lacage
*
* 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 progra... | zy901002-gpsr | src/core/model/object-ptr-container.h | C++ | gpl2 | 5,649 |
#include "string.h"
namespace ns3 {
ATTRIBUTE_CHECKER_IMPLEMENT_WITH_NAME (String, "std::string");
ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME (std::string, String);
} // namespace ns3
| zy901002-gpsr | src/core/model/string.cc | C++ | gpl2 | 180 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2011 Mathieu Lacage
*
* 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 di... | zy901002-gpsr | src/core/model/attribute-construction-list.h | C++ | gpl2 | 1,543 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2006 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/core/model/map-scheduler.h | C++ | gpl2 | 1,736 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005,2006 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 distri... | zy901002-gpsr | src/core/model/event-impl.h | C++ | gpl2 | 2,058 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 distributed... | zy901002-gpsr | src/core/model/watchdog.h | C++ | gpl2 | 6,023 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/list-scheduler.h | C++ | gpl2 | 1,655 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 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/core/model/unix-fd-reader.h | C++ | gpl2 | 3,060 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/core/model/realtime-simulator-impl.h | C++ | gpl2 | 3,816 |
#ifndef INT_TO_TYPE_H
#define INT_TO_TYPE_H
namespace ns3 {
/**
* This trivial template is extremely useful, as explained in
* "Modern C++ Design", p29, section 2.4,
* "Mapping Integral Constants to Types"
*/
template <int v>
struct IntToType
{
enum v_e { value = v};
};
} // namespace ns3
#endif /* INT_TO_TY... | zy901002-gpsr | src/core/model/int-to-type.h | C++ | gpl2 | 328 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 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/core/model/synchronizer.cc | C++ | gpl2 | 2,463 |
/* -*- 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/core/model/trace-source-accessor.h | C++ | gpl2 | 4,583 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/event-impl.cc | C++ | gpl2 | 1,150 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005,2006 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 distri... | zy901002-gpsr | src/core/model/default-simulator-impl.h | C++ | gpl2 | 2,637 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/simulator.h | C++ | gpl2 | 44,101 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 distributed... | zy901002-gpsr | src/core/model/timer-impl.h | C++ | gpl2 | 26,329 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 distributed... | zy901002-gpsr | src/core/model/singleton.h | C++ | gpl2 | 1,623 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/scheduler.h | C++ | gpl2 | 3,888 |
/* -*- 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/core/model/global-value.h | C++ | gpl2 | 5,148 |
/* -*- 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/core/model/object-base.h | C++ | gpl2 | 5,894 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#ifndef TYPE_NAME_H
#define TYPE_NAME_H
#include <stdint.h>
#include <string>
namespace ns3 {
template <typename T>
std::string TypeNameGet (void)
{
return "unknown";
}
#define DEF_TYPE(x) \
template <> ... | zy901002-gpsr | src/core/model/type-name.h | C++ | gpl2 | 641 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2009 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/core/model/test.h | C++ | gpl2 | 46,420 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 distributed... | zy901002-gpsr | src/core/model/timer.h | C++ | gpl2 | 8,915 |
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; -*- */
/*
* Copyright (c) 1997 David Wetherall
* Copyright (c) 2005 David Wei
* Copyright (c) 2009 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 ... | zy901002-gpsr | src/core/model/ns2-calendar-scheduler.cc | C++ | gpl2 | 14,068 |
/* -*- 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/core/model/command-line.h | C++ | gpl2 | 4,330 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/heap-scheduler.h | C++ | gpl2 | 2,763 |
/* -*- 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/core/model/unix-system-thread.cc | C++ | gpl2 | 4,268 |
#ifndef DEFAULT_DELETER_H
#define DEFAULT_DELETER_H
namespace ns3 {
/**
* \brief a template used to delete objects
* by the *RefCount<> templates when the
* last reference to an object they manage
* disappears.
*
* \sa ns3::SimpleRefCount
*/
template <typename T>
struct DefaultDeleter
{
... | zy901002-gpsr | src/core/model/default-deleter.h | C++ | gpl2 | 438 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 distributed... | zy901002-gpsr | src/core/model/simulation-singleton.h | C++ | gpl2 | 2,114 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
//
// Copyright (c) 2006 Georgia Tech Research Corporation
//
// 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;
//
//... | zy901002-gpsr | src/core/model/random-variable.cc | C++ | gpl2 | 50,523 |
/* -*- 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/core/model/integer.h | C++ | gpl2 | 2,608 |
/* -*- 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/core/model/uinteger.h | C++ | gpl2 | 2,715 |
/* -*- 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/core/model/pointer.cc | C++ | gpl2 | 1,584 |
#ifndef INT64X64_H
#define INT64X64_H
#include "ns3/core-config.h"
#if defined (INT64X64_USE_DOUBLE) || defined (PYTHON_SCAN)
#include "int64x64-double.h"
#elif defined (INT64X64_USE_CAIRO)
#include "int64x64-cairo.h"
#elif defined (INT64X64_USE_128)
#include "int64x64-128.h"
#endif
#include <iostream>
namespace ns... | zy901002-gpsr | src/core/model/int64x64.h | C++ | gpl2 | 4,373 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 INRIA, 2010 NICTA
*
* 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/core/model/abort.h | C++ | gpl2 | 5,104 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
//
// Copyright (C) 2001 Pierre L'Ecuyer (lecuyer@iro.umontreal.ca)
//
// 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 Founda... | zy901002-gpsr | src/core/model/rng-stream.h | C++ | gpl2 | 2,475 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 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 distributed... | zy901002-gpsr | src/core/model/watchdog.cc | C++ | gpl2 | 1,450 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/event-id.cc | C++ | gpl2 | 1,938 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#include "type-name.h"
namespace ns3 {
#define DEF_TYPE(x) \
template <> \
std::string TypeNameGet<x> (void) \
{ \
return #... | zy901002-gpsr | src/core/model/type-name.cc | C++ | gpl2 | 584 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005 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/core/model/win32-system-wall-clock-ms.cc | C++ | gpl2 | 4,073 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
//
// Copyright (C) 2001 Pierre L'Ecuyer (lecuyer@iro.umontreal.ca)
//
// 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 Founda... | zy901002-gpsr | src/core/model/rng-stream.cc | C++ | gpl2 | 15,241 |
/* -*- 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/core/model/type-id.h | C++ | gpl2 | 12,073 |