types.hh (9180:ee8d7a51651d) types.hh (9184:a1a8f137b796)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 75 unchanged lines hidden (view full) ---

84 /** Member holding the actual value. */
85 uint64_t c;
86
87 public:
88
89 /** Explicit constructor assigning a value. */
90 explicit Cycles(uint64_t _c) : c(_c) { }
91
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 75 unchanged lines hidden (view full) ---

84 /** Member holding the actual value. */
85 uint64_t c;
86
87 public:
88
89 /** Explicit constructor assigning a value. */
90 explicit Cycles(uint64_t _c) : c(_c) { }
91
92 /** Default constructor for parameter classes. */
93 Cycles() : c(0) { }
94
92#ifndef SWIG // keep the operators away from SWIG
93
94 /** Converting back to the value type. */
95 operator uint64_t() const { return c; }
96
97 /** Prefix increment operator. */
98 Cycles& operator++()
99 { ++c; return *this; }

--- 66 unchanged lines hidden ---
95#ifndef SWIG // keep the operators away from SWIG
96
97 /** Converting back to the value type. */
98 operator uint64_t() const { return c; }
99
100 /** Prefix increment operator. */
101 Cycles& operator++()
102 { ++c; return *this; }

--- 66 unchanged lines hidden ---