src/core/bindings/scan-header.h
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 20 Jul 2011 16:02:32 +0100
changeset 7375 5ccbfab63589
parent 7169 358f71a624d8
permissions -rw-r--r--
Rescan all python bindings for all modules
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6893
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     1
// -*- c++ -*-
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     2
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     3
#include "ns3/core-module.h"
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     4
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     5
using namespace ns3;
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     6
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     7
namespace 
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     8
{
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     9
7169
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    10
static inline Ptr<Object>
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    11
__dummy_function_to_force_template_instantiation (Ptr<Object> obj, TypeId typeId)
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    12
{
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    13
  return obj->GetObject<Object> (typeId);
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    14
}
6893
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    15
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    16
7169
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    17
static inline void
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    18
__dummy_function_to_force_template_instantiation_v2 ()
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    19
{
7375
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    20
  Time t1 = Seconds (1), t2 = Seconds (2), t3 = Seconds (3);
7169
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    21
  t1 = t2 + t3;
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    22
  t1 = t2 - t3;
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    23
  t1 < t2;
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    24
  t1 <= t2;
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    25
  t1 == t2;
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    26
  t1 != t2;
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    27
  t1 >= t2;
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    28
  t1 > t2;
7375
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    29
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    30
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    31
  int64x64_t s1(2), s2(3), s3;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    32
  s1 = s2 + s3;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    33
  s1 = s2 - s3;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    34
  s1 < s2;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    35
  s1 <= s2;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    36
  s1 == s2;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    37
  s1 != s2;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    38
  s1 >= s2;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    39
  s1 > s2;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    40
  
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    41
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    42
  
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    43
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    44
  s3 = t1*s1;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    45
  s3 = t1/s1;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    46
  s3 = s1*t1;
5ccbfab63589 Rescan all python bindings for all modules
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7169
diff changeset
    47
  s3 = t1/t2;
6893
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    48
}
5dccd86f90cf Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    49
7169
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    50
}
358f71a624d8 core coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 7049
diff changeset
    51