VectorEntity  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Attributes
vctl::MCEntitieS< ENTITY_TYPE > Class Template Reference

Container of entities derived from MCEntity. More...

#include <mcentities.h>

Inheritance diagram for vctl::MCEntitieS< ENTITY_TYPE >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef MCList< ENTITY_TYPE > MT_LIST
 List of entities (= container).
typedef MCQueue< double,
ENTITY_TYPE > 
MT_QUEUE
 Queue for sorting entities in the container.

Public Member Functions

virtual void ClearAll ()
 Clears all entities currently stored in the container.
MT_QUEUEGetQueue ()
 Returns pointer to the sorting queue.
 MCEntitieS ()
 Defautl constructor.
void Sort (ENTITY_TYPE *_entita)
 Adds a given entity to the sorting queue.
void SortAll ()
 Sorts all entities in the container against the value attribute.
void UnSort (ENTITY_TYPE *_entita)
 Removes a given entity form the sorting queue.
virtual ~MCEntitieS ()
 Destructor.

Protected Attributes

MT_QUEUE fronta
 Queue for sorting entities.

Detailed Description

template<typename ENTITY_TYPE>
class vctl::MCEntitieS< ENTITY_TYPE >

Container of entities derived from MCEntity.


Member Typedef Documentation

template<typename ENTITY_TYPE>
typedef MCList<ENTITY_TYPE> vctl::MCEntitieS< ENTITY_TYPE >::MT_LIST

List of entities (= container).

template<typename ENTITY_TYPE>
typedef MCQueue<double, ENTITY_TYPE> vctl::MCEntitieS< ENTITY_TYPE >::MT_QUEUE

Queue for sorting entities in the container.


Constructor & Destructor Documentation

template<typename ENTITY_TYPE>
vctl::MCEntitieS< ENTITY_TYPE >::MCEntitieS ( ) [inline]

Defautl constructor.

template<typename ENTITY_TYPE>
virtual vctl::MCEntitieS< ENTITY_TYPE >::~MCEntitieS ( ) [inline, virtual]

Destructor.


Member Function Documentation

template<typename ENTITY_TYPE>
virtual void vctl::MCEntitieS< ENTITY_TYPE >::ClearAll ( ) [inline, virtual]

Clears all entities currently stored in the container.

Reimplemented in vctl::MCTriS, vctl::MCVerticeS, and vctl::MCEdgeS.

template<typename ENTITY_TYPE>
MT_QUEUE* vctl::MCEntitieS< ENTITY_TYPE >::GetQueue ( ) [inline]

Returns pointer to the sorting queue.

template<typename ENTITY_TYPE>
void vctl::MCEntitieS< ENTITY_TYPE >::Sort ( ENTITY_TYPE *  _entita) [inline]

Adds a given entity to the sorting queue.

  • The value attribute must be set!
template<typename ENTITY_TYPE>
void vctl::MCEntitieS< ENTITY_TYPE >::SortAll ( ) [inline]

Sorts all entities in the container against the value attribute.

  • It uses the internal sorting queue.
template<typename ENTITY_TYPE>
void vctl::MCEntitieS< ENTITY_TYPE >::UnSort ( ENTITY_TYPE *  _entita) [inline]

Removes a given entity form the sorting queue.

  • The value attribute must be set!

Member Data Documentation

template<typename ENTITY_TYPE>
MT_QUEUE vctl::MCEntitieS< ENTITY_TYPE >::fronta [protected]

Queue for sorting entities.


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