B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Switchable< ObjT > Class Template Reference

#include <b2b_platform.h>

+ Collaboration diagram for Switchable< ObjT >:

Public Member Functions

void do_switch (ObjT *obj)
 
ObjT get_obj_copy ()
 
ObjT * get_obj_nolock ()
 
rwlockget_switch_lock ()
 
void init_switch (ObjT *obj)
 
 Switchable ()
 
 ~Switchable ()
 

Public Attributes

int curr_
 
ObjT * objCurr_
 
ObjT * objs_ [2]
 
rwlock objUse_lock_
 

Constructor & Destructor Documentation

template<class ObjT >
Switchable< ObjT >::Switchable ( )
inline
template<class ObjT >
Switchable< ObjT >::~Switchable ( )
inline

Member Function Documentation

template<class ObjT >
void Switchable< ObjT >::do_switch ( ObjT *  obj)
inline
template<class ObjT >
ObjT Switchable< ObjT >::get_obj_copy ( )
inline
template<class ObjT >
ObjT* Switchable< ObjT >::get_obj_nolock ( )
inline
template<class ObjT >
rwlock& Switchable< ObjT >::get_switch_lock ( )
inline
template<class ObjT >
void Switchable< ObjT >::init_switch ( ObjT *  obj)
inline

Member Data Documentation

template<class ObjT >
int Switchable< ObjT >::curr_
template<class ObjT >
ObjT* Switchable< ObjT >::objCurr_
template<class ObjT >
ObjT* Switchable< ObjT >::objs_[2]
template<class ObjT >
rwlock Switchable< ObjT >::objUse_lock_