RaftLib
0.3a
C++ Stream Processing Template Library
|
#include <portbase.hpp>
Public Member Functions | |
virtual FIFO & | operator[] (const std::string &&port_name)=0 |
virtual bool | hasPorts ()=0 |
virtual PortIterator | begin ()=0 |
virtual PortIterator | end ()=0 |
portbase.hpp - Interface for port types. Ensures that all port sub-classes have at least the functions listed below.
Copyright 2014 Jonathan Beard
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
pure virtual |
begin - returns a forward iterator to the port list, implementations should be thread safe so that auto- parallelized code can function properly.
Implemented in Port.
|
pure virtual |
end - returns one past the end of the iterator, should be suitable for usage in a for( xxx : xxx ) loop just as in any other meaningful usage of a forward iterator.
Implemented in Port.
|
pure virtual |
hasPorts - should return false if this port object is empty.
Implemented in Port.
|
pure virtual |
operator[] - enables lookup of ports by name, which in turn enables the user to name each port something that is telling of the underlying function.
port_name | - name of the port you wish to get |
- | should throw a PortNotFoundException if port_name doesn't exist. |
Implemented in Port.