Bitstream Interpretation Library (BIL)  0.1
Public Member Functions | Friends
bil::PIPControlSet Class Reference

A set of interdependent PIPs. More...

#include <mappingdb/PIPControlSet.hpp>

List of all members.

Public Member Functions

 PIPControlSet ()
 Constructs a new PIPControlSet instance.
BitPositionsbitPositions ()
 Gets the positions of associated configuration bits.
const BitPositionsbitPositions () const
 Gets the positions of associated configuration bits read only.
PIPBitValuespipBitValues ()
 Gets values of all bits for every PIP.
const PIPBitValuespipBitValues () const
 Gets values of all bits for every PIP read only.
void clear ()
 Resets all properties to default values.

Friends

void writeBinary (const PIPControlSet &data, std::ostream &outputStream)
 Writes data from a PIPControlSet into a binary stream.
void readBinary (PIPControlSet &data, std::istream &inputStream)
 Reads data into a PIPControlSet from a binary stream.

Detailed Description

A set of interdependent PIPs.

A PIPControlSet contains a set of interdependent PIPs, that share configuration bits (instead of having one bit for one PIP). The PIPControlSet contains two lists: A list with its PIPs and their bit values, and a list containing the positions of used configuration bits.

Definition at line 27 of file PIPControlSet.hpp.


Constructor & Destructor Documentation

PIPControlSet::PIPControlSet ( )

Constructs a new PIPControlSet instance.

Definition at line 11 of file PIPControlSet.cpp.


Member Function Documentation

BitPositions & PIPControlSet::bitPositions ( )

Gets the positions of associated configuration bits.

Returns:
The bit positions.

Definition at line 19 of file PIPControlSet.cpp.

const BitPositions & PIPControlSet::bitPositions ( ) const

Gets the positions of associated configuration bits read only.

Returns:
The bit positions.

Definition at line 25 of file PIPControlSet.cpp.

PIPBitValues & PIPControlSet::pipBitValues ( )

Gets values of all bits for every PIP.

Returns:
The bit values.

Definition at line 31 of file PIPControlSet.cpp.

const PIPBitValues & PIPControlSet::pipBitValues ( ) const

Gets values of all bits for every PIP read only.

Returns:
The bit values.

Definition at line 37 of file PIPControlSet.cpp.

void PIPControlSet::clear ( )

Resets all properties to default values.

Definition at line 43 of file PIPControlSet.cpp.


Friends And Related Function Documentation

void writeBinary ( const PIPControlSet data,
std::ostream &  outputStream 
)
friend

Writes data from a PIPControlSet into a binary stream.

Parameters:
dataThe PIPControlSet to write.
outputStreamThe stream to write into.
Exceptions:
.
void readBinary ( PIPControlSet data,
std::istream &  inputStream 
)
friend

Reads data into a PIPControlSet from a binary stream.

Parameters:
dataThe PIPControlSet to read into.
inputStreamThe stream to read from.
Exceptions:
.

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