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

Simple class for describing packet (and other types) of fields. More...

#include <AftField.h>

Public Member Functions

 AftField (std::string newName)
 Default constructor for fields. More...
 
const std::string name () const
 
bool operator== (const AftField &field) const
 Comparator for fields. More...
 

Protected Attributes

std::string _name
 Name of field.
 

Friends

std::ostream & operator<< (std::ostream &os, const AftField &field)
 Define << class operator to append description to an output stream. More...
 

Detailed Description

Simple class for describing packet (and other types) of fields.

Constructor & Destructor Documentation

AftField::AftField ( std::string  newName)
inline

Default constructor for fields.

Parameters
[in]newNameField name

Member Function Documentation

const std::string AftField::name ( ) const
inline
Returns
Field name
bool AftField::operator== ( const AftField field) const
inline

Comparator for fields.

Parameters
[in]keyReference to key to compare against

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const AftField field 
)
friend

Define << class operator to append description to an output stream.

Parameters
[in]osReference to output stream to append to
[in]fieldReference to field to append description of to stream

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