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

#include <Pair.hpp>

Inheritance diagram for GranOO3::Core::Pair< type >:
Inheritance graph
[legend]

Public Member Functions

 Pair (type &p1, type &p2)
 
 ~Pair ()
 
type & get_item1 ()
 
const type & get_item1 () const
 
type & get_item2 ()
 
const type & get_item2 () const
 
type & item1 ()
 
type & item2 ()
 
std::ostream & write_ascii (std::ostream &out) const
 
std::istream & read_ascii (std::istream &in)
 
std::string info () const
 
void draw ()
 
void draw ()
 
void draw ()
 
- Public Member Functions inherited from GranOO3::Core::Base
virtual ~Base ()
 
size_t numID () const
 
size_t uID () const
 
void set_numID (size_t val)
 
void clear_numID ()
 
Physic::Materialget_mat () const
 
void set_mat (Physic::Material *)
 
Baseitem ()
 
const Baseitem () const
 
bool is_same (const Base &) const
 
template<class T >
T & cast_to ()
 
template<class T >
const T & cast_to () const
 
template<class T >
bool is () const
 
virtual bool is (size_t) const
 
virtual const std::string & get_ID () const
 
virtual Baseclone ()
 
template<class T >
T & clone_to ()
 
virtual std::ostream & export_to_povray (std::ostream &out) const
 
Signal< Base & > & deleted_signal ()
 
- Public Member Functions inherited from GranOO3::Core::Null
 Null ()
 
virtual ~Null ()
 
- Public Member Functions inherited from GranOO3::Core::Drawable
 Drawable ()
 
virtual ~Drawable ()
 
virtual void draw_edge ()
 
virtual void init_default_color ()
 
virtual std::ostream & get_info (std::ostream &os) const
 
virtual const Colordefault_color () const
 
Colorget_color ()
 
const Colorget_color () const
 
virtual void set_color (const Color &)
 
virtual void set_alpha (float alpha)
 
void apply_color () const
 
void apply_edge_color () const
 
void apply_default_color ()
 
void apply_selected_color ()
 
void set_line_width (float)
 
float get_line_width () const
 
float & get_line_width ()
 
void apply_line_width () const
 
bool is_visible () const
 
void set_visible (bool)
 
void paint ()
 
void paint_edge ()
 
unsigned int get_item_glkey () const
 
- Public Member Functions inherited from GranOO3::Core::Register< Base >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< Base > &set) const
 
std::list< SetOf< Base > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 
- Public Member Functions inherited from GranOO3::Core::PropClass< Pair< type > >
 PropClass ()
 
virtual ~PropClass ()
 
T & new_object ()
 
T & get ()
 
const T & get () const
 
bool prop_exist () const
 
void add_prop (Core::Prop< Pair< type > > *)
 
void remove_prop (Core::Prop< Pair< type > > *)
 
std::string info () const
 
- Public Member Functions inherited from GranOO3::Core::Register< Pair< type > >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< Pair< type > > &set) const
 
std::list< SetOf< Pair< type > > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 

Static Public Member Functions

static void update_connectivity_map ()
 
static SetOfBase< Pair< type > > & get_connection_for (const type &)
 
static unsigned int get_number_of_connection_for (const type &item)
 
- Static Public Member Functions inherited from GranOO3::Core::Base
static Baseget_by_numID (size_t)
 
static void clear_all_numID ()
 
static unsigned int get_sub_class_number ()
 
- Static Public Member Functions inherited from GranOO3::Core::Drawable
static Drawableget_drawable_item_by_glkey (int)
 
static void set_draw_precision (unsigned int p)
 
static void increase_draw_precision ()
 
static void decrease_draw_precision ()
 
static unsigned int get_draw_precision ()
 

Protected Attributes

type & item1_
 
type & item2_
 
- Protected Attributes inherited from GranOO3::Core::PropClass< Pair< type > >
std::vector< Core::Prop< Pair< type > > * > _prop
 

Private Member Functions

 Pair (const Pair &)=delete
 
Pairoperator= (const Pair &)=delete
 
template<class Archive >
void serialize (Archive &, const unsigned int)
 

Static Private Attributes

static std::map< const type *, SetOfBase< Pair< type > > > _connectivity_map = std::map<const type*, SetOfBase<Pair<type> > >()
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Static Public Attributes inherited from GranOO3::Core::Null
static Null null = Null()
 
- Protected Member Functions inherited from GranOO3::Core::Base
 Base ()
 
- Static Protected Member Functions inherited from GranOO3::Core::Base
static unsigned int affect_class_rank_ID ()
 

Constructor & Destructor Documentation

◆ Pair() [1/2]

template<typename type >
GranOO3::Core::Pair< type >::Pair ( type &  p1,
type &  p2 
)

◆ ~Pair()

template<typename type >
GranOO3::Core::Pair< type >::~Pair

◆ Pair() [2/2]

template<typename type >
GranOO3::Core::Pair< type >::Pair ( const Pair< type > &  )
privatedelete

Member Function Documentation

◆ draw() [1/3]

template<typename type >
void GranOO3::Core::Pair< type >::draw
virtual

Reimplemented from GranOO3::Core::Drawable.

◆ draw() [2/3]

void GranOO3::Core::Pair< DEM::Element >::draw ( )
virtual

Reimplemented from GranOO3::Core::Drawable.

◆ draw() [3/3]

void GranOO3::Core::Pair< DEM::Element >::draw ( )
virtual

Reimplemented from GranOO3::Core::Drawable.

◆ get_connection_for()

template<typename type >
SetOfBase< Pair< type > > & GranOO3::Core::Pair< type >::get_connection_for ( const type &  item)
static

◆ get_item1() [1/2]

template<typename type >
type & GranOO3::Core::Pair< type >::get_item1

◆ get_item1() [2/2]

template<typename type >
const type & GranOO3::Core::Pair< type >::get_item1

◆ get_item2() [1/2]

template<typename type >
type & GranOO3::Core::Pair< type >::get_item2

◆ get_item2() [2/2]

template<typename type >
const type & GranOO3::Core::Pair< type >::get_item2

◆ get_number_of_connection_for()

template<typename type >
unsigned int GranOO3::Core::Pair< type >::get_number_of_connection_for ( const type &  item)
static

◆ info()

template<typename type >
std::string GranOO3::Core::Pair< type >::info
virtual

Reimplemented from GranOO3::Core::Base.

◆ item1()

template<typename type >
type & GranOO3::Core::Pair< type >::item1

◆ item2()

template<typename type >
type & GranOO3::Core::Pair< type >::item2

◆ operator=()

template<typename type >
Pair& GranOO3::Core::Pair< type >::operator= ( const Pair< type > &  )
privatedelete

◆ read_ascii()

template<typename type >
std::istream & GranOO3::Core::Pair< type >::read_ascii ( std::istream &  in)
virtual

Reimplemented from GranOO3::Core::Base.

◆ serialize()

template<typename type >
template<class Archive >
void GranOO3::Core::Pair< type >::serialize ( Archive &  ar,
const unsigned int   
)
inlineprivate

◆ update_connectivity_map()

template<typename type >
void GranOO3::Core::Pair< type >::update_connectivity_map
static

◆ write_ascii()

template<typename type >
std::ostream & GranOO3::Core::Pair< type >::write_ascii ( std::ostream &  out) const
virtual

Reimplemented from GranOO3::Core::Base.

Friends And Related Function Documentation

◆ boost::serialization::access

template<typename type >
friend class boost::serialization::access
friend

Member Data Documentation

◆ _connectivity_map

template<typename type >
std::map< const type *, SetOfBase< Pair< type > > > GranOO3::Core::Pair< type >::_connectivity_map = std::map<const type*, SetOfBase<Pair<type> > >()
staticprivate

◆ item1_

template<typename type >
type& GranOO3::Core::Pair< type >::item1_
protected

◆ item2_

template<typename type >
type& GranOO3::Core::Pair< type >::item2_
protected

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