move channel.cc channel.h to node directory; merge ns-3-tracing from mathieu

This commit is contained in:
Tom Henderson committed 2007-03-18 14:06:51 -07:00
1 parent 50c4686482
commit b5d1d295d6
69 files changed
+3001 -982

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007 INRIA
* All rights reserved.
*
* 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 implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors:
* Mathieu Lacage <mathieu.lacage@sophia.inria.fr>,
*/
#ifndef NODE_LIST_H
#define NODE_LIST_H
#include <vector>
#include <string>
#include "ns3/array-trace-resolver.h"
namespace ns3 {
class Node;
class CallbackBase;
class TraceResolver;
class TraceContext;
class NodeList
{
public:
typedef ArrayTraceResolver<Node>::Index NodeIndex;
typedef std::vector<Node *>::iterator Iterator;
static void Add (Node *node);
static Iterator Begin (void);
static Iterator End (void);
static TraceResolver *CreateTraceResolver (TraceContext const &context);
static Node *GetNode (uint32_t n);
private:
static std::vector<Node *> *GetNodes (void);
static uint32_t GetNNodes (void);
};
}//namespace ns3
#endif /* NODE_LIST_H */