OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librtcltools/] [RtclSetList.hpp] - Blame information for rev 36

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 29 wfjm
// $Id: RtclSetList.hpp 631 2015-01-09 21:36:51Z mueller $
2 19 wfjm
//
3 29 wfjm
// Copyright 2013-2015 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 19 wfjm
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
// 
14
// Revision History: 
15
// Date         Rev Version  Comment
16 29 wfjm
// 2015-01-08   631   1.1    add Clear()
17 19 wfjm
// 2013-02-12   487   1.0    Initial version
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22 29 wfjm
  \version $Id: RtclSetList.hpp 631 2015-01-09 21:36:51Z mueller $
23 19 wfjm
  \brief   Declaration of class \c RtclSetList.
24
*/
25
 
26
#ifndef included_Retro_RtclSetList
27
#define included_Retro_RtclSetList 1
28
 
29
#include "tcl.h"
30
 
31
#include <cstdint>
32
#include <string>
33
#include <map>
34
 
35
#include "boost/utility.hpp"
36
#include "boost/function.hpp"
37
 
38
#include "RtclSet.hpp"
39
#include "librtcltools/RtclArgs.hpp"
40
 
41
namespace Retro {
42
 
43
  class RtclSetList : private boost::noncopyable {
44
    public:
45
                    RtclSetList();
46
      virtual      ~RtclSetList();
47
 
48
      void          Add(const std::string& name, RtclSetBase* pset);
49
 
50
      template <class TP>
51
      void          Add(const std::string& name,
52
                        const boost::function<void(TP)>& set);
53
 
54 29 wfjm
      void          Clear();
55 19 wfjm
      int           M_set(RtclArgs& args);
56
 
57
    protected:
58
      typedef std::map<std::string, RtclSetBase*> map_t;
59
      typedef map_t::iterator         map_it_t;
60
      typedef map_t::const_iterator   map_cit_t;
61
      typedef map_t::value_type       map_val_t;
62
 
63
      map_t         fMap;
64
  };
65
 
66
} // end namespace Retro
67
 
68
#include "RtclSetList.ipp"
69
 
70
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.