Public Member Functions | Private Attributes | Friends

BitString Class Reference

#include <ocsBitString.hh>

List of all members.

Public Member Functions

 BitString (ifstream *InFile, RanNumGen *RNG2)
 BitString (BitString &oBitString)
 BitString (BitString &BitString1, BitString &BitString2, RanNumGen *RNG3)
BitStringoperator= (BitString &RHS_BitString)
 ~BitString ()
void DeleteMemory (void)
void ReallocateMemory (void)
string WriteTypeBitString (void)
int GetStringLength (void)
int GetNumChannels (void)
void SetNumChannels (int value)
int GetChannelPhysicalIndex (int ChannelArrayIndex)
int GetChannelArrayIndex (int ChannelPhysicalIndex)
void SetBit (int ChannelArrayIndex, int BitSlot, int BitValue)
int GetBit (int ChannelArrayIndex, int BitSlot)
void WriteBitString (void)
string WriteBitString (int ChannelArrayIndex)
void GetRandomString ()
void SetAllZeros (int ChannelArrayIndex)
void SetAllOnes (int ChannelArrayIndex)
void SetSingleOne (int ChannelArrayIndex)
void SetStringToSingleMarkPerChannel (void)
void ReduceToSingleChannelBitString (int ChannelArrayIndex)
void ReduceToSingleChannelBitString (BitString *SCBitString)
void AddBitStringBM (BitString &BitString2)
string ReadString (string ParameterName, ifstream *InFile)
void SetRandomString (int ChannelArrayIndex)
void SetPseudoRandomString (int ChannelArrayIndex)
void SetUserDefined (ifstream *InFile)
void AllocateBitStringArray (int NumChannels2)
void ReleaseBitStringArray (void)

Private Attributes

typeBitString TypeBitString
int NumChannels
int StringLength
int * BitStringArray
RanNumGenRNG
int DebugLevel

Friends

void AddBitStrings (BitString *BitString1, BitString *BitString2, BitString *BitString3)

Constructor & Destructor Documentation

BitString::BitString ( ifstream *  InFile,
RanNumGen RNG2 
)
BitString::BitString ( BitString oBitString  ) 
BitString::BitString ( BitString BitString1,
BitString BitString2,
RanNumGen RNG3 
)
BitString::~BitString (  ) 

References BitStringArray.

Referenced by OptSignal::~OptSignal().


Member Function Documentation

void BitString::AddBitStringBM ( BitString BitString2  ) 

USE THE FOLLOWING WITH CAUTION. It was written for a specific application by Brian Marks

The following was written for a specific application by Brian Marks. USE WITH EXTREME CAUTION!

References AllocateBitStringArray(), DebugLevel, GetBit(), GetStringLength(), NumChannels, SetBit(), StringLength, and WriteBitString().

Referenced by OptSignal::AddSignalBM().

void BitString::AllocateBitStringArray ( int  NumChannels2  ) 
void BitString::DeleteMemory ( void   ) 
int BitString::GetBit ( int  ChannelArrayIndex,
int  BitSlot 
)

References BitStringArray, and StringLength.

Referenced by AddBitStringBM(), AddBitStrings(), BitString(), OptSignal::ComputeAverageChirpOfMarks(), ElecSignalStat::ComputeAveragePDFs(), GaussianReceiver::ComputeAveragePDFs(), ChiSquareReceiver::ComputeAveragePDFs(), OptSignal::ComputeAverageSigmaMarks(), ChiSquareReceiver::ComputeGaussianPDFsAndBER(), PulseEvolutionAnalyzer::ComputePulseEnergyStats(), OptSignal::EOM_GeneratePerfectRectBinaryElecData(), OptSignal::EOM_GenerateRaisedCosineBinaryElecData(), OptSignal::EOM_GenerateSmoothedRectBinaryElecDataArctanh(), OptSignal::EOM_GenerateSmoothedRectBinaryElecDataSuperGauss(), MachZehnder::GeneratePerfectRectBinaryElecData(), OptSignal::GenerateSignalStringGaussianOrSech(), OptSignal::GenerateSignalStringGaussianOrSechWithPhaseShift(), OptSignal::GenerateSignalStringQPSK_CW(), OptSignal::GenerateSignalStringQPSK_Gaussian(), OptSignal::GenerateSignalStringRaisedCosines(), OptSignal::GenerateSignalStringRaisedCosinesWithPhaseShift(), OptSignal::GenerateSignalStringRZGaussianPattern(), OptSignal::GenerateSignalStringUsingInputSequence(), ElecSignalStat::GetBit(), ElecSignalStat::GetBitFromString(), ElecFilter::GetClockRecoveryTime(), ElecSignalStat::GetMeanCurrentIsolatedBit0(), ElecSignalStat::GetMeanCurrentIsolatedBit1(), ElecSignalStat::GetTargetIndexTimeBestMinEyeOpening(), ElecSignalStat::GetTargetIndexTimeBestQ_Factor(), OptSignal::ImportOptSignal(), OptSignal::InitializeFirstOrderPMDSignal(), operator=(), PolarizBeamSplitter::PolarizSplitOptSignal(), PulseEvolutionAnalyzer::PulseEvolutionAnalyzer(), ReduceToSingleChannelBitString(), BeamSplitter::SplitOptSignalScalar(), ElecSignalStat::UpdateEqualizedPerformanceStatistics(), ElecSignalStat::UpdateMoments(), ElecSignalStat::UpdatePatternStats(), ElecSignalStat::UpdatePerformanceStatistics(), and WriteBitString().

int BitString::GetChannelArrayIndex ( int  ChannelPhysicalIndex  ) 

References NumChannels.

Referenced by OptSignal::GetChannelArrayIndex().

int BitString::GetChannelPhysicalIndex ( int  ChannelArrayIndex  ) 
int BitString::GetNumChannels ( void   )  [inline]
void BitString::GetRandomString ( void   ) 
int BitString::GetStringLength ( void   )  [inline]
BitString & BitString::operator= ( BitString RHS_BitString  ) 
string BitString::ReadString ( string  ParameterName,
ifstream *  InFile 
)

References LogFile.

Referenced by SetUserDefined().

void BitString::ReallocateMemory ( void   ) 
void BitString::ReduceToSingleChannelBitString ( int  ChannelArrayIndex  ) 
void BitString::ReduceToSingleChannelBitString ( BitString SCBitString  ) 

References GetBit(), SetBit(), and StringLength.

void BitString::ReleaseBitStringArray ( void   )  [inline]
void BitString::SetAllOnes ( int  ChannelArrayIndex  ) 

References SetBit(), and StringLength.

Referenced by BitString().

void BitString::SetAllZeros ( int  ChannelArrayIndex  ) 

References SetBit(), and StringLength.

Referenced by BitString(), and SetSingleOne().

void BitString::SetBit ( int  ChannelArrayIndex,
int  BitSlot,
int  BitValue 
)
void BitString::SetNumChannels ( int  value  )  [inline]
void BitString::SetPseudoRandomString ( int  ChannelArrayIndex  ) 

References log(), SetBit(), and StringLength.

Referenced by GetRandomString().

void BitString::SetRandomString ( int  ChannelArrayIndex  ) 
void BitString::SetSingleOne ( int  ChannelArrayIndex  ) 

References DebugLevel, LogFile, SetAllZeros(), SetBit(), and StringLength.

Referenced by BitString().

void BitString::SetStringToSingleMarkPerChannel ( void   ) 

References NumChannels, SetBit(), and StringLength.

void BitString::SetUserDefined ( ifstream *  InFile  ) 
string BitString::WriteBitString ( int  ChannelArrayIndex  ) 

References GetBit(), and StringLength.

void BitString::WriteBitString ( void   ) 
string BitString::WriteTypeBitString ( void   ) 

Friends And Related Function Documentation

void AddBitStrings ( BitString BitString1,
BitString BitString2,
BitString BitString3 
) [friend]

Member Data Documentation

int* BitString::BitStringArray [private]
int BitString::DebugLevel [private]
int BitString::NumChannels [private]
int BitString::StringLength [private]

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