src/core/attribute-test.cc File Reference

#include "test.h"
#include <list>
#include <string>
#include <utility>
#include <ostream>
#include <stdint.h>
#include <vector>
#include "ptr.h"
#include "attribute.h"
#include "type-id.h"
#include "callback.h"
#include "attribute-list.h"
#include "attribute-helper.h"
#include <limits>
#include "type-name.h"
#include "attribute-accessor-helper.h"
#include "string.h"
#include <algorithm>
#include <istream>
#include "object.h"
#include "integer.h"
#include "uinteger.h"
#include "boolean.h"
#include "double.h"
#include "enum.h"
Include dependency graph for attribute-test.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns3::ValueClassTest
class  ns3::AttributeTest
class  ns3::Derived
class  ns3::AttributeObjectTest

Namespaces

namespace  ns3
 

Every class exported by the ns3 library is enclosed in the ns3 namespace.


Defines

#define CHECK_GET_STR(p, name, value)
#define CHECK_GET_PARAM(p, name, type, value)

Functions

bool ns3::operator!= (const ValueClassTest &a, const ValueClassTest &b)
std::ostream & ns3::operator<< (std::ostream &os, ValueClassTest v)
std::istream & ns3::operator>> (std::istream &is, ValueClassTest &v)
 ns3::ATTRIBUTE_HELPER_HEADER (ValueClassTest)
 ns3::ATTRIBUTE_HELPER_CPP (ValueClassTest)
 ns3::NS_OBJECT_ENSURE_REGISTERED (AttributeObjectTest)

Variables

static AttributeTest ns3::g_parameterTest

Define Documentation

#define CHECK_GET_PARAM ( p,
name,
type,
value   ) 
Value:
{                           \
    const type expected = value;            \
    type got;                                           \
    bool ok = p->GetAttributeFailSafe (name, got);      \
    NS_TEST_ASSERT (ok);                                \
    NS_TEST_ASSERT_EQUAL (got.Get (), expected.Get ()); \
  }

Definition at line 259 of file attribute-test.cc.

Referenced by ns3::AttributeTest::RunTests().

#define CHECK_GET_STR ( p,
name,
value   ) 
Value:
{                                                               \
    std::string expected = value;                                 \
    StringValue got;                                              \
    bool ok = p->GetAttributeFailSafe (name, got);                \
    NS_TEST_ASSERT (ok);                                          \
    NS_TEST_ASSERT_EQUAL (got.Get (), expected);                  \
  }

Definition at line 251 of file attribute-test.cc.

Referenced by ns3::AttributeTest::RunTests().

Generated on Thu Dec 3 14:06:21 2009 for NS-3 by  doxygen 1.6.3