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

#include <b2b_platform.h>

Public Member Functions

template<typename StringWithLengthT >
void assign (const StringWithLengthT &rhs)
 
void assign (const DynShortStr< StringLength > &rhs)
 
void assign (const char *data_rhs, size_t len)
 
void clear () throw ()
 
void ctor () throw ()
 
char * data () throw ()
 
void dtor ()
 
bool empty () throw ()
 
int length () throw ()
 
int size () throw ()
 

Public Attributes

struct {
   short   isOnHeap_:1
 
   short   length_:15
 
}; 
 
union {
   short   allocLength_
 
   char   data_ [StringLength+1]
 
   char *   dataPtr_
 
}; 
 

Static Public Attributes

static const int MAX_DYN_LEN = 0x7ffe
 
static const int MAX_LEN = StringLength
 

Member Function Documentation

template<short StringLength>
template<typename StringWithLengthT >
void DynShortStr< StringLength >::assign ( const StringWithLengthT &  rhs)
inline
template<short StringLength>
void DynShortStr< StringLength >::assign ( const DynShortStr< StringLength > &  rhs)
inline
template<short StringLength>
void DynShortStr< StringLength >::assign ( const char *  data_rhs,
size_t  len 
)
inline
template<short StringLength>
void DynShortStr< StringLength >::clear ( )
throw (
)
inline
template<short StringLength>
void DynShortStr< StringLength >::ctor ( )
throw (
)
inline
template<short StringLength>
char* DynShortStr< StringLength >::data ( )
throw (
)
inline
template<short StringLength>
void DynShortStr< StringLength >::dtor ( )
inline
template<short StringLength>
bool DynShortStr< StringLength >::empty ( )
throw (
)
inline
template<short StringLength>
int DynShortStr< StringLength >::length ( )
throw (
)
inline
template<short StringLength>
int DynShortStr< StringLength >::size ( )
throw (
)
inline

Member Data Documentation

struct { ... }
union { ... }
template<short StringLength>
short DynShortStr< StringLength >::allocLength_
template<short StringLength>
char DynShortStr< StringLength >::data_[StringLength+1]
template<short StringLength>
char* DynShortStr< StringLength >::dataPtr_
template<short StringLength>
short DynShortStr< StringLength >::isOnHeap_
template<short StringLength>
short DynShortStr< StringLength >::length_
template<short StringLength>
const int DynShortStr< StringLength >::MAX_DYN_LEN = 0x7ffe
static
template<short StringLength>
const int DynShortStr< StringLength >::MAX_LEN = StringLength
static