AFI
Advanced Forwarding Interface
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
AftPortTable Class Reference

Master class for managing either input or output ports. More...

#include <AftPortTable.h>

Public Member Functions

void insert (const AftPortEntryPtr &port)
 
void insert (const AftPortPtr &port)
 
AftIndex size ()
 
void setMaxIndex (const AftIndex newMaxIndex)
 Set the maximum index value of the port table. More...
 
const AftIndex maxIndex () const
 
bool portForIndex (AftIndex portIndex, AftPortEntryPtr &port)
 
bool portForName (std::string name, AftPortEntryPtr &port)
 
bool tokenForIndex (AftIndex portIndex, AftNodeToken &token)
 
bool tokenForName (std::string name, AftNodeToken &token)
 
std::ostream & description (std::ostream &os) const
 

Static Public Member Functions

static std::shared_ptr
< AftPortTable
create ()
 Factory convenience creator for shared_ptr to port table.
 

Protected Attributes

AftPortIndexMap _ports
 Underlying map used to hold port entries.
 
AftIndex _maxIndex
 Maximum index allowed in port table.
 

Detailed Description

Master class for managing either input or output ports.

Member Function Documentation

const AftIndex AftPortTable::maxIndex ( ) const
inline
Returns
Maximum index allowed in port table
void AftPortTable::setMaxIndex ( const AftIndex  newMaxIndex)
inline

Set the maximum index value of the port table.

Parameters
[in]maxIndexMaximum index the port table will take

The documentation for this class was generated from the following file: