GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GranOO3::Core::Mapped< T > Class Template Reference

#include <Mapped.hpp>

Public Types

typedef std::map< const std::string, T * > Map
 

Public Member Functions

const std::string & get_ID () const
 
void set_ID (const std::string &)
 

Static Public Member Functions

static T & get (const std::string &id)
 
static const T & get_const (const std::string &id)
 
static bool exist (const std::string &id)
 
static Mapget_map ()
 

Protected Member Functions

 Mapped (const std::string &id)
 
virtual ~Mapped ()
 
 Mapped ()
 

Private Member Functions

template<class Archive >
void save (Archive &, const unsigned int) const
 
template<class Archive >
void load (Archive &, const unsigned int)
 
 BOOST_SERIALIZATION_SPLIT_MEMBER ()
 

Private Attributes

std::string _ID
 

Friends

class boost::serialization::access
 

Member Typedef Documentation

◆ Map

template<class T >
typedef std::map<const std::string, T* > GranOO3::Core::Mapped< T >::Map

Constructor & Destructor Documentation

◆ Mapped() [1/2]

template<typename T >
GranOO3::Core::Mapped< T >::Mapped ( const std::string &  id)
protected

◆ ~Mapped()

template<typename T >
GranOO3::Core::Mapped< T >::~Mapped
protectedvirtual

◆ Mapped() [2/2]

template<typename T >
GranOO3::Core::Mapped< T >::Mapped
protected

Member Function Documentation

◆ BOOST_SERIALIZATION_SPLIT_MEMBER()

template<class T >
GranOO3::Core::Mapped< T >::BOOST_SERIALIZATION_SPLIT_MEMBER ( )
private

◆ exist()

template<typename T >
bool GranOO3::Core::Mapped< T >::exist ( const std::string &  id)
static

◆ get()

template<typename T >
T & GranOO3::Core::Mapped< T >::get ( const std::string &  id)
static

◆ get_const()

template<typename T >
const T & GranOO3::Core::Mapped< T >::get_const ( const std::string &  id)
static

◆ get_ID()

template<typename T >
const std::string & GranOO3::Core::Mapped< T >::get_ID

◆ get_map()

template<typename T >
Mapped< T >::Map & GranOO3::Core::Mapped< T >::get_map
static

◆ load()

template<typename T >
template<class Archive >
void GranOO3::Core::Mapped< T >::load ( Archive &  ar,
const unsigned int   
)
private

◆ save()

template<typename T >
template<class Archive >
void GranOO3::Core::Mapped< T >::save ( Archive &  ar,
const unsigned int   
) const
private

◆ set_ID()

template<typename T >
void GranOO3::Core::Mapped< T >::set_ID ( const std::string &  id)

Friends And Related Function Documentation

◆ boost::serialization::access

template<class T >
friend class boost::serialization::access
friend

Member Data Documentation

◆ _ID

template<class T >
std::string GranOO3::Core::Mapped< T >::_ID
private

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