torc-master
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
NetDelay.cpp
Go to the documentation of this file.
1
// Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2
// $HeadURL$
3
// $Id$
4
5
// This program is free software: you can redistribute it and/or modify it under the terms of the
6
// GNU General Public License as published by the Free Software Foundation, either version 3 of the
7
// License, or (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11
// the GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License along with this program. If
14
// not, see <http://www.gnu.org/licenses/>.
15
16
#include "
torc/generic/NetDelay.hpp
"
17
18
namespace
torc {
19
namespace
generic {
20
21
/**
22
* Set derivation
23
*
24
* @param[in] value Derivation value
25
*/
26
void
NetDelay::setDerivation
(
const
Derivation
& value) {
27
mDerivation
= value;
28
}
29
30
/**
31
* Set delay value
32
*
33
* @param[in] value Delay value. Must be Value::MiNoMax
34
*/
35
void
NetDelay::setDelay
(
const
Value::MiNoMax
& value) {
36
mDelay
= value;
37
}
38
39
/**
40
* Set the pointer to logic state value(transition/becomes).
41
*
42
* @param[in] inSource Pointer to logic state value(transition/becomes).
43
*/
44
void
NetDelay::setTransition
(
const
LogicElementSharedPtr
& inSource) {
45
mTransition
= inSource;
46
}
47
48
NetDelay::NetDelay
() : mDerivation(
eDerivationUndefined
), mDelay(), mTransition() {}
49
50
NetDelay::~NetDelay
() throw () {}
51
52
NetDelay::NetDelay
(
const
NetDelay
& source) :
53
mDerivation(source.mDerivation), mDelay(source.mDelay), mTransition(source.mTransition) {}
54
55
NetDelay
&
NetDelay::operator=
(
const
NetDelay
& source) {
56
if
(
this
!= &source) {
57
mDerivation
= source.
mDerivation
;
58
mDelay
= source.
mDelay
;
59
mTransition
= source.
mTransition
;
60
}
61
return
*
this
;
62
}
63
64
}
// namespace generic
65
}
// namespace torc
torc::generic::NetDelay::mDelay
Value::MiNoMax mDelay
Definition:
NetDelay.hpp:86
torc::generic::NetDelay::mTransition
LogicElementSharedPtr mTransition
Definition:
NetDelay.hpp:87
torc::generic::LogicElementSharedPtr
boost::shared_ptr< LogicElement > LogicElementSharedPtr
Definition:
PointerTypes.hpp:70
torc::generic::eDerivationUndefined
Definition:
Derivation.hpp:28
torc::generic::NetDelay::NetDelay
NetDelay()
Definition:
NetDelay.cpp:48
torc::generic::NetDelay::~NetDelay
~NetDelay()
Definition:
NetDelay.cpp:50
torc::generic::NetDelay
Represents the netDelay attribute of Net.
Definition:
NetDelay.hpp:32
torc::generic::NetDelay::setDerivation
void setDerivation(const Derivation &value)
Definition:
NetDelay.cpp:26
torc::generic::Value::MiNoMax
Definition:
Value.hpp:122
torc::generic::NetDelay::operator=
NetDelay & operator=(const NetDelay &source)
Definition:
NetDelay.cpp:55
NetDelay.hpp
torc::generic::NetDelay::mDerivation
Derivation mDerivation
Definition:
NetDelay.hpp:85
torc::generic::NetDelay::setDelay
void setDelay(const Value::MiNoMax &value)
Definition:
NetDelay.cpp:35
torc::generic::NetDelay::setTransition
void setTransition(const LogicElementSharedPtr &inSource)
Definition:
NetDelay.cpp:44
torc::generic::Derivation
Derivation
Definition:
Derivation.hpp:27
src
torc
generic
NetDelay.cpp
Generated on Thu Dec 18 2014 16:30:37 for torc-master by
1.8.6