CBlock Class Reference

#include <block.h>

Inheritance diagram for CBlock:

Inheritance graph
Collaboration diagram for CBlock:

Collaboration graph

List of all members.

Public Member Functions

virtual ~CBlock ()
virtual void AddEntity (const CSmartPtr< IEntity > &Entity)
virtual void Purge ()
virtual void Play () const
virtual EEntityType Type () const
const ushortLoops () const
void Loops (const ushort Loops)
const uintTempo () const
void Tempo (const uint Tempo)
const TEntitiesEntities () const
const uint NbNotes () const
const uint NbPauses () const
const uintNbBlocks () const

Static Public Member Functions

static CSmartPtr< CBlockCreate (const ushort Loops, const uint Tempo)
static ushort DefaultLoops ()

Private Types

typedef std::vector< CSmartPtr
< IEntity > > 
typedef TEntities::iterator TEntitiesIt
typedef TEntities::const_iterator TEntitiesCIt

Private Member Functions

 CBlock (const ushort Loops, const uint Tempo)

Private Attributes

ushort m_Loops
uint m_Tempo
uint m_NbNotes
uint m_NbPauses
uint m_NbBlocks
std::vector< CSmartPtr< IEntity > > m_Entities


class DefaultSPStorage< CBlock >

Detailed Description

Definition at line 29 of file block.h.

Member Typedef Documentation

typedef std::vector<CSmartPtr<IEntity> > CBlock::TEntities [private]

Definition at line 38 of file block.h.

typedef TEntities::iterator CBlock::TEntitiesIt [private]

Definition at line 39 of file block.h.

typedef TEntities::const_iterator CBlock::TEntitiesCIt [private]

Definition at line 40 of file block.h.

Constructor & Destructor Documentation

CBlock::CBlock ( const ushort  Loops,
const uint  Tempo 
) [private]

virtual CBlock::~CBlock (  )  [virtual]

Member Function Documentation

static CSmartPtr<CBlock> CBlock::Create ( const ushort  Loops,
const uint  Tempo 
) [inline, static]

Definition at line 45 of file block.h.

00046         {
00047                 return new CBlock(Loops, Tempo);
00048         }

static ushort CBlock::DefaultLoops (  )  [inline, static]

Definition at line 52 of file block.h.

00053         {
00054                 return 1;
00055         }

virtual void CBlock::AddEntity ( const CSmartPtr< IEntity > &  Entity  )  [virtual]

Reimplemented from IEntity.

virtual void CBlock::Purge (  )  [virtual]

Reimplemented from IEntity.

virtual void CBlock::Play (  )  const [virtual]

Implements IEntity.

virtual EEntityType CBlock::Type (  )  const [virtual]

Implements IEntity.

const ushort& CBlock::Loops (  )  const

void CBlock::Loops ( const ushort  Loops  ) 

const uint& CBlock::Tempo (  )  const

void CBlock::Tempo ( const uint  Tempo  ) 

const TEntities& CBlock::Entities (  )  const

const uint CBlock::NbNotes (  )  const

const uint CBlock::NbPauses (  )  const

const uint& CBlock::NbBlocks (  )  const

Friends And Related Function Documentation

friend class DefaultSPStorage< CBlock > [friend]

Definition at line 31 of file block.h.

Member Data Documentation

Definition at line 34 of file block.h.

uint CBlock::m_Tempo [private]

Definition at line 35 of file block.h.

Definition at line 35 of file block.h.

Definition at line 35 of file block.h.

Definition at line 35 of file block.h.

std::vector<CSmartPtr<IEntity> > CBlock::m_Entities [private]

Definition at line 36 of file block.h.

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

Generated on Tue Aug 30 02:36:53 2011 for Smacky by  doxygen 1.5.8