MultiAgentDecisionProcess
TypeCluster Class Reference

TypeCluster is a class that represents a cluster of Types. More...

#include <TypeCluster.h>

Public Types

typedef std::set< Type * >
::const_iterator 
type_ci
 
typedef std::set< Type * >
::iterator 
type_i
 

Public Member Functions

void AddType (Type *t)
 Add type t to this cluster. More...
 
type_ci begin () const
 
type_i begin ()
 
void clear ()
 
type_ci end () const
 
type_i end ()
 
Index GetIndex () const
 
void Merge (TypeCluster *tc)
 
TypeClusteroperator= (const TypeCluster &o)
 Copy assignment operator. More...
 
void SetIndex (Index i)
 
std::string SoftPrint () const
 
 TypeCluster (Index i)
 (default) Constructor More...
 
 TypeCluster (const TypeCluster &a)
 Copy constructor. More...
 
 ~TypeCluster ()
 Destructor. More...
 

Private Attributes

Index _m_i
 The index of this TypeCluster within the TypeClusterList of the relevant agent. More...
 
std::set< Type * > _m_types
 the set of tuples that form this cluster type. More...
 

Detailed Description

TypeCluster is a class that represents a cluster of Types.

This is in particular used in a BayesianGameWithClusterInfo.

Member Typedef Documentation

typedef std::set< Type* >::const_iterator TypeCluster::type_ci
typedef std::set< Type* >::iterator TypeCluster::type_i

Constructor & Destructor Documentation

TypeCluster::TypeCluster ( Index  i)

(default) Constructor

TypeCluster::TypeCluster ( const TypeCluster a)

Copy constructor.

check that this calles the derived class copy constructor!

References _m_types, and Type::Clone().

TypeCluster::~TypeCluster ( )

Destructor.

References _m_types.

Member Function Documentation

void TypeCluster::AddType ( Type t)
inline
type_i TypeCluster::begin ( )
inline
void TypeCluster::clear ( )
inline
type_i TypeCluster::end ( )
inline
Index TypeCluster::GetIndex ( ) const
inline
void TypeCluster::Merge ( TypeCluster tc)
inline
TypeCluster & TypeCluster::operator= ( const TypeCluster o)

Copy assignment operator.

check that this calles the derived class copy constructor!

References _m_i, _m_types, and Type::Clone().

void TypeCluster::SetIndex ( Index  i)
inline
string TypeCluster::SoftPrint ( void  ) const

References _m_i, and _m_types.

Referenced by Type_PointerTuple::SoftPrint().

Member Data Documentation

Index TypeCluster::_m_i
private

The index of this TypeCluster within the TypeClusterList of the relevant agent.

Referenced by GetIndex(), operator=(), and SoftPrint().

std::set< Type* > TypeCluster::_m_types
private

the set of tuples that form this cluster type.

Referenced by operator=(), SoftPrint(), TypeCluster(), and ~TypeCluster().