msbGrid  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msbGrid::Block< EntityT > Class Template Reference

#include <block.hh>

Public Types

enum  { dim = Entity :: dim }
 
typedef EntityT Entity
 
typedef Block< EntityThisT
 
typedef Entity::Scalar Scalar
 
typedef Entity::Color Color
 

Public Member Functions

 Block ()
 
 ~Block ()
 
const std::vector< Entity > & vEnt () const
 
std::vector< Entity > & vEnt ()
 
const int size () const
 
const bool empty () const
 
const int & Id () const
 
int & Id ()
 
const int putId (const int &Id0=1)
 
const int entId (const int &Id0=1)
 
const bool hasId () const
 
const bool & mark () const
 
bool & mark ()
 
const Scalardeclination () const
 
Scalardeclination ()
 
void add (const Entity &ent0)
 
void add (const std::vector< Entity > &vEnt0)
 
void add (const ThisT &bl0)
 
void cleanUp ()
 
void clear ()
 
void translate (const std::vector< Scalar > &dx)
 
template<typename PointT >
void rotate (const Scalar &_angle, const PointT &mc)
 
void rotate (const Scalar &_angle)
 
void infos (const std::string &name0="")
 

Private Attributes

int Id_
 
bool mark_
 
Scalar declination_
 
std::vector< EntityvEnt_
 

Detailed Description

template<typename EntityT>
class msbGrid::Block< EntityT >

Definition at line 29 of file block.hh.

Member Typedef Documentation

template<typename EntityT>
typedef Entity :: Color msbGrid::Block< EntityT >::Color

Definition at line 41 of file block.hh.

template<typename EntityT>
typedef EntityT msbGrid::Block< EntityT >::Entity

Definition at line 36 of file block.hh.

template<typename EntityT>
typedef Entity :: Scalar msbGrid::Block< EntityT >::Scalar

Definition at line 40 of file block.hh.

template<typename EntityT>
typedef Block< Entity > msbGrid::Block< EntityT >::ThisT

Definition at line 37 of file block.hh.

Member Enumeration Documentation

template<typename EntityT>
anonymous enum
Enumerator
dim 

Definition at line 39 of file block.hh.

Constructor & Destructor Documentation

template<typename EntityT>
msbGrid::Block< EntityT >::Block ( )
inline

Definition at line 51 of file block.hh.

template<typename EntityT>
msbGrid::Block< EntityT >::~Block ( )
inline

Definition at line 60 of file block.hh.

Member Function Documentation

template<typename EntityT>
void msbGrid::Block< EntityT >::add ( const Entity ent0)
inline

Definition at line 121 of file block.hh.

template<typename EntityT>
void msbGrid::Block< EntityT >::add ( const std::vector< Entity > &  vEnt0)
inline

Definition at line 124 of file block.hh.

template<typename EntityT>
void msbGrid::Block< EntityT >::add ( const ThisT bl0)
inline

Definition at line 131 of file block.hh.

template<typename EntityT>
void msbGrid::Block< EntityT >::cleanUp ( )
inline

remove marked entities

Definition at line 134 of file block.hh.

template<typename EntityT>
void msbGrid::Block< EntityT >::clear ( )
inline

Definition at line 150 of file block.hh.

template<typename EntityT>
const Scalar& msbGrid::Block< EntityT >::declination ( ) const
inline

Definition at line 115 of file block.hh.

template<typename EntityT>
Scalar& msbGrid::Block< EntityT >::declination ( )
inline

Definition at line 118 of file block.hh.

template<typename EntityT>
const bool msbGrid::Block< EntityT >::empty ( ) const
inline

Definition at line 71 of file block.hh.

template<typename EntityT>
const int msbGrid::Block< EntityT >::entId ( const int &  Id0 = 1)
inline

Definition at line 93 of file block.hh.

template<typename EntityT>
const bool msbGrid::Block< EntityT >::hasId ( ) const
inline

Definition at line 106 of file block.hh.

template<typename EntityT>
const int& msbGrid::Block< EntityT >::Id ( ) const
inline

Definition at line 74 of file block.hh.

template<typename EntityT>
int& msbGrid::Block< EntityT >::Id ( )
inline

Definition at line 77 of file block.hh.

template<typename EntityT>
void msbGrid::Block< EntityT >::infos ( const std::string &  name0 = "")
inline

Definition at line 177 of file block.hh.

template<typename EntityT>
const bool& msbGrid::Block< EntityT >::mark ( ) const
inline

Definition at line 109 of file block.hh.

template<typename EntityT>
bool& msbGrid::Block< EntityT >::mark ( )
inline

Definition at line 112 of file block.hh.

template<typename EntityT>
const int msbGrid::Block< EntityT >::putId ( const int &  Id0 = 1)
inline

Definition at line 80 of file block.hh.

template<typename EntityT>
template<typename PointT >
void msbGrid::Block< EntityT >::rotate ( const Scalar _angle,
const PointT &  mc 
)
inline

Definition at line 163 of file block.hh.

template<typename EntityT>
void msbGrid::Block< EntityT >::rotate ( const Scalar _angle)
inline

Definition at line 170 of file block.hh.

template<typename EntityT>
const int msbGrid::Block< EntityT >::size ( ) const
inline

Definition at line 68 of file block.hh.

template<typename EntityT>
void msbGrid::Block< EntityT >::translate ( const std::vector< Scalar > &  dx)
inline

Definition at line 153 of file block.hh.

template<typename EntityT>
const std :: vector< Entity >& msbGrid::Block< EntityT >::vEnt ( ) const
inline

Definition at line 62 of file block.hh.

template<typename EntityT>
std :: vector< Entity >& msbGrid::Block< EntityT >::vEnt ( )
inline

Definition at line 65 of file block.hh.

Member Data Documentation

template<typename EntityT>
Scalar msbGrid::Block< EntityT >::declination_
private

Definition at line 46 of file block.hh.

template<typename EntityT>
int msbGrid::Block< EntityT >::Id_
private

Definition at line 44 of file block.hh.

template<typename EntityT>
bool msbGrid::Block< EntityT >::mark_
private

Definition at line 45 of file block.hh.

template<typename EntityT>
std :: vector< Entity > msbGrid::Block< EntityT >::vEnt_
private

Definition at line 48 of file block.hh.


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