SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TFSet Class Reference

#include <bits.h>

Collaboration diagram for TFSet:

List of all members.

Public Member Functions

 TFSet ()
 TFSet (const TFSet &FSet)
 TFSet (const int &FlagN1, const int &FlagN2=-1, const int &FlagN3=-1, const int &FlagN4=-1, const int &FlagN5=-1, const int &FlagN6=-1, const int &FlagN7=-1, const int &FlagN8=-1, const int &FlagN9=-1)
 TFSet (const TFSet &FSet1, const TFSet &FSet2)
 ~TFSet ()
 TFSet (TSIn &SIn)
void Save (TSOut &SOut) const
TFSetoperator= (const TFSet &FSet)
bool operator== (const TFSet &FSet) const
TFSetoperator| (const int &FlagN)
TFSetoperator| (const TFSet &FSet)
void Clr ()
bool Empty () const
void Incl (const int &FlagN)
void Incl (const TFSet &FSet)
bool In (const int &FlagN) const

Static Public Attributes

static const TFSet EmptyFSet

Private Attributes

TUIntV B4V

Static Private Attributes

static const int B4s = 4
static const int Bits = TFSet::B4s*TB4Def::B4Bits

Detailed Description

Definition at line 119 of file bits.h.


Constructor & Destructor Documentation

TFSet::TFSet ( ) [inline]

Definition at line 125 of file bits.h.

: B4V(4, 4){}
TFSet::TFSet ( const TFSet FSet) [inline]

Definition at line 126 of file bits.h.

: B4V(FSet.B4V){}
TFSet::TFSet ( const int &  FlagN1,
const int &  FlagN2 = -1,
const int &  FlagN3 = -1,
const int &  FlagN4 = -1,
const int &  FlagN5 = -1,
const int &  FlagN6 = -1,
const int &  FlagN7 = -1,
const int &  FlagN8 = -1,
const int &  FlagN9 = -1 
)

Definition at line 109 of file bits.cpp.

References Incl().

                                                         :
  B4V(4, 4){
  if (FlagN1!=-1){Incl(FlagN1);}
  if (FlagN2!=-1){Incl(FlagN2);}
  if (FlagN3!=-1){Incl(FlagN3);}
  if (FlagN4!=-1){Incl(FlagN4);}
  if (FlagN5!=-1){Incl(FlagN5);}
  if (FlagN6!=-1){Incl(FlagN6);}
  if (FlagN7!=-1){Incl(FlagN7);}
  if (FlagN8!=-1){Incl(FlagN8);}
  if (FlagN9!=-1){Incl(FlagN9);}
}

Here is the call graph for this function:

TFSet::TFSet ( const TFSet FSet1,
const TFSet FSet2 
) [inline]

Definition at line 131 of file bits.h.

References Incl().

                                               :
    B4V(4, 4){Incl(FSet1); Incl(FSet2);}

Here is the call graph for this function:

TFSet::~TFSet ( ) [inline]

Definition at line 133 of file bits.h.

{}
TFSet::TFSet ( TSIn SIn) [inline]

Definition at line 134 of file bits.h.

: B4V(SIn){}

Member Function Documentation

void TFSet::Clr ( ) [inline]

Definition at line 143 of file bits.h.

References B4V.

            {
    B4V[0]=0; B4V[1]=0; B4V[2]=0; B4V[3]=0;}
bool TFSet::Empty ( ) const [inline]

Definition at line 145 of file bits.h.

References B4V.

Referenced by TILx::GetSym().

                     {
    return
     (uint(B4V[0])==0)&&(uint(B4V[1])==0)&&
     (uint(B4V[2])==0)&&(uint(B4V[3])==0);}

Here is the caller graph for this function:

void TFSet::Incl ( const int &  FlagN) [inline]

Definition at line 149 of file bits.h.

References Assert, TB4Def::B4Bits, TB4Def::B4Def, TB4Def::B4P2T, B4V, and Bits.

Referenced by operator|(), and TFSet().

                             {
    Assert((0<=FlagN)&&(FlagN<Bits));
    B4V[FlagN/TB4Def::B4Def.B4Bits]|=
     TB4Def::B4Def.B4P2T[FlagN%TB4Def::B4Def.B4Bits];}

Here is the caller graph for this function:

void TFSet::Incl ( const TFSet FSet) [inline]

Definition at line 153 of file bits.h.

References B4V.

                              {
    B4V[0]|=FSet.B4V[0]; B4V[1]|=FSet.B4V[1];
    B4V[2]|=FSet.B4V[2]; B4V[3]|=FSet.B4V[3];}
TFSet& TFSet::operator= ( const TFSet FSet) [inline]

Definition at line 137 of file bits.h.

References B4V.

                                     {
    if (this!=&FSet){B4V=FSet.B4V;} return *this;}
bool TFSet::operator== ( const TFSet FSet) const [inline]

Definition at line 139 of file bits.h.

References B4V.

{return B4V==FSet.B4V;}
TFSet& TFSet::operator| ( const int &  FlagN) [inline]

Definition at line 140 of file bits.h.

References Incl().

{Incl(FlagN); return *this;}

Here is the call graph for this function:

TFSet& TFSet::operator| ( const TFSet FSet) [inline]

Definition at line 141 of file bits.h.

References Incl().

{Incl(FSet); return *this;}

Here is the call graph for this function:

void TFSet::Save ( TSOut SOut) const [inline]

Definition at line 135 of file bits.h.

References B4V, and TVec< TVal, TSizeTy >::Save().

Referenced by TGStatVec::Save().

{B4V.Save(SOut);}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

const int TFSet::B4s = 4 [static, private]

Definition at line 121 of file bits.h.

TUIntV TFSet::B4V [private]

Definition at line 123 of file bits.h.

Referenced by Clr(), Empty(), In(), Incl(), operator=(), operator==(), and Save().

const int TFSet::Bits = TFSet::B4s*TB4Def::B4Bits [static, private]

Definition at line 122 of file bits.h.

Referenced by In(), and Incl().

const TFSet TFSet::EmptyFSet [static]

Definition at line 161 of file bits.h.


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