MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Private Attributes | List of all members
GroupBin Class Reference

Define group a cell or surface bin. More...

#include <Tally.hxx>

Inheritance diagram for GroupBin:
TallyBin

Public Member Functions

 GroupBin (const GroupBin &b)
 Copy constructor. More...
 
 GroupBin (Cell *C)
 Build a Group Bin of type Cell. More...
 
 GroupBin (Shape_ptr S)
 Build a Group Bin of type Surface. More...
 
 GroupBin (TallyBin *theTallyBin)
 Build a Group Bin of type of TallyBin. More...
 
 GroupBin (int universe)
 Build a Group Bin based on the universe shorthand, for cell type only. More...
 
TallyBinClone ()
 Clone method. More...
 
 ~GroupBin ()
 Destructor. More...
 
bool IsGroupBin ()
 This is a GroupBin. More...
 
void Add (Cell *C)
 Add a Cell to a Cell type GroupBin. More...
 
void Add (Shape_ptr S)
 Add a Surface to a Surface type GroupBin. More...
 
void Add (TallyBin *theTallyBin)
 Add a TallyBin to a GroupBin if type are compatible. More...
 
void Add (int universe)
 Add a universe shortcut as bin to a GroupBin if type are compatible. More...
 
string Print (int BeforeRparenthesis=0)
 Print the GroupBin in MCNP. More...
 
bool IsInBin (int num)
 whether or not the cell/suface "num" is in the bin More...
 
- Public Member Functions inherited from TallyBin
 TallyBin (const TallyBin &b)
 Copy constructor. More...
 
 TallyBin ()
 Normal Construcator. More...
 
virtual ~TallyBin ()
 
virtual bool IsSimpleBin ()
 if the TallyBin is a SimpleBin More...
 
virtual bool IsLatticeBin ()
 
int GetCellType ()
 returns -1, 0, 1 in function of the bin type. More...
 
virtual string PrintVolume ()
 Print the Volume of the bin in MCNP. More...
 
virtual bool NeedVolume ()
 
vector< double > GetVolume ()
 retruns the bin volume vector. More...
 
double GetVolume (int i)
 retruns the ith bin volume vector. More...
 
double GetSurface ()
 retruns the bin surface More...
 
int GetNumberOfVolume ()
 
void SetSurface (double S, bool Inc=false)
 Set the bin surface. More...
 
void SetVolume (double V, int i=0, bool Inc=false)
 set the bin volume of ith partial bin. More...
 
void SetBinVolume (vector< double > V)
 Set volume(s) to bin(s) More...
 

Private Attributes

vector< TallyBin * > fBin
 the TallyBin vector More...
 

Additional Inherited Members

- Protected Member Functions inherited from TallyBin
 TallyBin (int celltype, vector< double > vol, double surf)
 used by Copy constructor of daugthers classes More...
 
- Protected Attributes inherited from TallyBin
int fCellType
 type of the bin (-1=unknown, 0=surface, 1=cell) More...
 
vector< double > fVolume
 bin volume vector (1 value except for LatticeBin or Universe) More...
 
double fSurface
 bin surface More...
 

Detailed Description

Define group a cell or surface bin.

That is to say, only one bin for a list of Cells or Surfaces.

Note that a GroupBin is either a Cell type either a Surface type but not both. Their is no default constructor!

Author
PTO
Version
1.0

Constructor & Destructor Documentation

GroupBin::GroupBin ( const GroupBin b)

Copy constructor.

GroupBin::GroupBin ( Cell C)

Build a Group Bin of type Cell.

GroupBin::GroupBin ( Shape_ptr  S)

Build a Group Bin of type Surface.

GroupBin::GroupBin ( TallyBin theTallyBin)

Build a Group Bin of type of TallyBin.

GroupBin::GroupBin ( int  universe)

Build a Group Bin based on the universe shorthand, for cell type only.

GroupBin::~GroupBin ( )

Destructor.

Member Function Documentation

void GroupBin::Add ( Cell C)

Add a Cell to a Cell type GroupBin.

void GroupBin::Add ( Shape_ptr  S)

Add a Surface to a Surface type GroupBin.

void GroupBin::Add ( TallyBin theTallyBin)

Add a TallyBin to a GroupBin if type are compatible.

void GroupBin::Add ( int  universe)

Add a universe shortcut as bin to a GroupBin if type are compatible.

TallyBin* GroupBin::Clone ( )
inlinevirtual

Clone method.

Reimplemented from TallyBin.

bool GroupBin::IsGroupBin ( )
inlinevirtual

This is a GroupBin.

Reimplemented from TallyBin.

bool GroupBin::IsInBin ( int  num)
virtual

whether or not the cell/suface "num" is in the bin

Reimplemented from TallyBin.

string GroupBin::Print ( int  BeforeRparenthesis = 0)
virtual

Print the GroupBin in MCNP.

Reimplemented from TallyBin.

Member Data Documentation

vector<TallyBin*> GroupBin::fBin
private

the TallyBin vector


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

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014